High severity · published Aug 1, 2025
CVE-2025-54131
Cursor bypasses its allow list to execute arbitrary commands
8.8
CVSS
0.5%
EPSS
No
On KEV
Description
Cursor is a code editor built for programming with AI. In versions below 1.3, an attacker can bypass the allow list in auto-run mode with a backtick (`) or $(cmd). If a user has swapped Cursor from its default settings (requiring approval for every terminal call) to an allowlist, an attacker can execute arbitrary command execution outside of the allowlist without user approval. An attacker can trigger this vulnerability if chained with indirect prompt injection. This is fixed in version 1.3.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 44% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CU
cursor · cursor
< 1.3 · source: vendor, NVD
Affected product
CU
cursor
cursor
More from cursor
9.9
CVE-2026-26268
Cursor sandbox escape via Git hooks
9.8
CVE-2026-50548
Cursor Desktop sandbox escape via agent-controlled working directory
9.8
CVE-2026-50549
Cursor Desktop sandbox escape via symlink and failed path canonicalization
9.8
CVE-2026-22708
Cursor has a Terminal Tool Allowlist Bypass via Environment Variables
9.8
CVE-2025-62354
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…