CVE-2025-64107
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-11-04

Last updated on: 2025-11-10

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-11-04
Last Modified
2025-11-10
Generated
2026-05-07
AI Q&A
2025-11-05
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
anysphere cursor to 2.0 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in Cursor code editor versions 1.7.52 and below, where manipulating internal settings using backslash path characters on Windows machines bypasses the editor's detection of path manipulation. While forward slash manipulations require human approval, backslash manipulations were not properly detected, allowing an attacker with some level of control (like prompt injection) to overwrite sensitive editor files without approval. This can lead to remote code execution (RCE).


How can this vulnerability impact me? :

If exploited, this vulnerability can allow an attacker to overwrite sensitive files in the Cursor editor without user approval, potentially leading to remote code execution. This means an attacker could execute arbitrary code on your system, compromising confidentiality, integrity, and availability of your environment.


What immediate steps should I take to mitigate this vulnerability?

Upgrade Cursor to version 2.0 or later, as this version fixes the vulnerability related to backslash path manipulation allowing unauthorized file overwrites on Windows machines.


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