CVE-2025-54065 GZDoom engine allows arbitrary code execution via ZScript actor states

High 7.8 Published Updated

Attackers can execute arbitrary code by crafting malicious ZScript actor states that manipulate JIT-compiled code sections in the GZDoom engine.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-54065?

CVE-2025-54065 is a high-severity code injection vulnerability in gzdoom, published on 3 Dec 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

GZDoom is a feature centric port for all Doom engine games. GZDoom is an open source Doom engine. In versions 4.14.2 and earlier, ZScript actor state handling allows scripts to read arbitrary addresses, write constants into the JIT-compiled code section, and redirect control flow through crafted FState and VMFunction structures. A script can copy FState structures into a writable buffer, modify function pointers and state transitions, and cause execution of attacker-controlled bytecode, leading to arbitrary code execution.

Weakness: CWE-913

Which versions are affected by CVE-2025-54065?

How do I fix CVE-2025-54065?

No fix has been published for CVE-2025-54065 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-54065 being exploited?

There is no known exploitation of CVE-2025-54065 in the wild and no public exploit code.

Sources

Also known as GHSA-prhc-chfw-32jg.

Is CVE-2025-54065 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free