CVE-2025-62354 Command injection in cursor

Critical 9.8 Published Updated

An attacker can execute arbitrary commands outside the allowlist in Cursor, leading to arbitrary code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-62354?

CVE-2025-62354 is a critical command injection vulnerability in cursor, published on 26 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Improper neutralization of special elements used in an OS command ('command injection') in Cursor allows an unauthorized attacker to execute commands that are outside of those specified in the allowlist, resulting in arbitrary code execution.

Weakness: CWE-78

Which versions are affected by CVE-2025-62354?

How do I fix CVE-2025-62354?

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

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-62354 being exploited?

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

Sources

Also known as GHSA-fjwj-7prc-9qgm.

Is CVE-2025-62354 in your software?

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

Check your SBOMs for free