CVE-2025-61592
Description
Cursor is a code editor built for programming with AI. In versions 1.7 and below, automatic loading of project-specific CLI configuration from the current working directory (<project>/.cursor/cli.json) could override certain global configurations in Cursor CLI. This allowed users running the CLI inside a malicious repository to be vulnerable to Remote Code Execution through a combination of permissive configuration (allowing shell commands) and prompt injection delivered via project-specific Rules (<project>/.cursor/rules/rule.mdc) or other mechanisms. The fix for this issue is currently available as a patch 2025.09.17-25b418f. As of October 3, 2025 there is no release version.
Description as published by the source, in English.
Key facts
- Published
- 2025-10-03
- Last modified
- 2026-10-19
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H- Scored by
- security-advisories@github.com
- Probability of exploitation
-
0.4 %
higher than 35 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Anysphere | Cursor | ≤ 1.7 | Affected |
Weakness type
-
CWE-829: Inclusion of Functionality from Untrusted Control Sphere
The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1055: Process Injection
- T1176: Software Extensions
- T1195.001: Compromise Software Dependencies and Development Tools
- T1505.004: IIS Components
- T1505.005: Terminal Services DLL
- T1574.006: Dynamic Linker Hijacking
- T1574.013: KernelCallbackTable
- T1620: Reflective Code Loading
References
Related at Berigo
Articles
-
Cursor can execute a malicious file from a repository
Same product
2026-07-14
Mindgard has shown that Cursor on Windows can execute a malicious git.exe placed in a repository root without prompting the user.
-
AI-assisted malware development used to evade EDR detection
Same product
2026-06-02
Sophos describes how a threat actor used AI tools to build and test malware and detection evasion techniques, with human operators still directing th…
-
CursorJack: deep links abused to trigger unwanted actions in Cursor
Same product
2026-03-17
Proofpoint describes CursorJack, a technique abusing deep links and custom URI handlers in the Cursor IDE to trigger actions the user never intended.
-
AI coding tools recommend extensions that can be spoofed
Same product
2026-01-05
Koi found that Windsurf, Cursor and Google Antigravity recommend VSCode extensions missing from OpenVSX, leaving the names open to hijacking.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.