CVE-2025-64107
JSON

8.8high

Cursor is Vulnerable to Path Manipulation Using Backslashes on Windows

Severity
8.8high CVSS:3.1 by GitHub_M
Exploit likelihood
0.39% (higher than 35% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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.

Affected

Product or packageVersionsReported by
cursor cursor< 2.0CVE List
anysphere cursorbefore 2.0NVD

All scores

GitHub_M8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Cursor es un editor de código diseñado para programar con IA. En las versiones 1.7.52 e inferiores, la manipulación de la configuración interna puede conducir a RCE. Cursor detecta la manipulación de rutas a través de barras diagonales (./.cursor/./././././mcp.json, etc.), y requiere aprobación humana para completar la operación. Sin embargo, el mismo tipo de manipulación usando barras invertidas no fue detectado correctamente, permitiendo a un atacante que ya había logrado la inyección de prompts o algún otro nivel de control sobrescribir archivos sensibles del editor sin aprobación en máquinas Windows. Este problema está solucionado en la versión 2.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-64107 changed 2025-11-07CVE Terms of Use
NVDCVE-2025-64107 changed 2026-10-19Public domain