CVE-2025-54131
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-08-01

Last updated on: 2025-08-25

Assigner: GitHub, Inc.

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 Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-08-01
Last Modified
2025-08-25
Generated
2026-05-06
AI Q&A
2025-08-02
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
anysphere cursor to 1.3 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-77 The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in Cursor versions below 1.3, where an attacker can bypass the allow list in auto-run mode by using a backtick (`) or $(cmd). If a user has changed Cursor's default settings from requiring approval for every terminal call to using an allowlist, the attacker can execute arbitrary commands outside of the allowlist without user approval. This can be triggered if combined with indirect prompt injection. The issue is fixed in version 1.3.


How can this vulnerability impact me? :

The vulnerability allows an attacker to execute arbitrary commands on your system without your approval if you have configured Cursor to use an allowlist instead of requiring approval for every terminal call. This could lead to unauthorized actions, potentially compromising the confidentiality, integrity, and availability of your system.


What immediate steps should I take to mitigate this vulnerability?

Upgrade Cursor to version 1.3 or later, as this version fixes the vulnerability. Additionally, avoid using the allowlist mode for auto-run terminal calls or revert to the default settings that require approval for every terminal call to prevent arbitrary command execution.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart