CVE-2025-64107: Cursor - Remote Code Execution
- Cve: CVE-2025-64107
- Name: Cursor - Remote Code Execution
- Description: Cursor is a code editor built for programming with AI. In versions 1.7.52 and below, manipulating internal settings may lead to RCE. Cursor detects path manipulation via forward slashes (./.cursor/./././././mcp.json etc.), and requires human approval to complete the operation. However, the same kind of manipulation using backslashes was not correctly detected, allowing an attacker who had already achieved prompt injection or some other level of control to overwrite sensitive editor files without approval on Windows machines. This issue is fixed in version 2.0.
- Impact: Attackers with prior control can overwrite sensitive editor files, leading to remote code execution and full system compromise.
- Remediation: Update to version 2.0 or later.
- Vulnerability type: remote_code_execution
- Vulnerability impact: remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker must have prior prompt injection or similar control
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.00391
- Epss percentile: 0.33736
- Assignee: [email protected]
- Published at: 2025-11-04T23:15:44Z
- Age in days: 385
- Modified at: 2026-10-19T13:10:00Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-64107
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/cursor/cursor/security/advisories/GHSA-2jr2-8wf5-v6pf | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| anysphere:cursor | < 2.0 | no | nvd | /v1/products/anysphere/cursor |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| cursor/cursor | security_advisory | yes | /v1/repositories/cursor/cursor |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts