CVE-2025-59944
JSON

8.1high

Cursor IDE: Sensitive File Overwrite Bypass is Possible

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

Description

Cursor is a code editor built for programming with AI. Versions 1.6.23 and below contain case-sensitive checks in the way Cursor IDE protects its sensitive files (e.g., */.cursor/mcp.json), which allows attackers to modify the content of these files through prompt injection and achieve remote code execution. A prompt injection can lead to full RCE through modifying sensitive files on case-insensitive fileystems. This issue is fixed in version 1.7.

Affected

Product or packageVersionsReported by
cursor cursor< 1.7CVE List
anysphere cursorup to 1.6.23NVD

All scores

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

Classification

CWE-178

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. Versions 1.6.23 and below contain case-sensitive checks in the way Cursor IDE protects its sensitive files (e.g., */.cursor/mcp.json), which allows attackers to modify the content of these files through prompt injection and achieve remote code execution. A prompt injection can lead to full RCE through modifying sensitive files on case-insensitive fileystems. This issue is fixed in version 1.7.

NVD (es)

Cursor es un editor de código diseñado para programar con IA. Las versiones 1.6.23 e inferiores contienen comprobaciones sensibles a mayúsculas y minúsculas en la forma en que Cursor IDE protege sus archivos sensibles (p. ej., */.cursor/mcp.json), lo que permite a los atacantes modificar el contenido de estos archivos mediante inyección de prompts y lograr ejecución remota de código. Una inyección de prompts puede conducir a una RCE completa mediante la modificación de archivos sensibles en sistemas de archivos que no distinguen entre mayúsculas y minúsculas. Este problema se ha solucionado en la versión 1.7.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-59944 changed 2025-10-03CVE Terms of Use
NVDCVE-2025-59944 changed 2026-10-19Public domain