Skip to content
CursorGHSA-x2vq-h6v6-jhc6

Cursor CLI Agent - Sensitive File Overwrite Bypass

High7.1CVE-2025-61593 · Published Oct 2, 2025

### Summary A vulnerability in the way Cursor CLI Agent protects its sensitive files (i.e. */.cursor/cli.json) allows attackers to modify the content of the files through prompt injection, thus achieving remote code execution. ### Impact A prompt injection can now lead to full RCE through modifying sensitive files on case-insensitive filesystems ### Remediations The sensitive file checks were fixed to respect the local filesystem.

GitHub advisory

Affected versions

PackageAffectedFixed in
Cursor CLI
Product
< 2025.09.17-25b418f2025.09.17-25b418f
Details and references
CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Severity from
GitHub (reviewed advisory)
Weakness
CWE-178

More Cursor advisories

All Cursor
Advisory
Sensitive File Protection Bypass - Path Manipulation Using Backslashes on Windows
High8.8Nov 3, 2025
Cursor IDE - Sensitive File Overwrite Bypass
High8.0Oct 2, 2025
Remote Code Execution in Cursor CLI via Cursor Agent MCP OAuth2 Communication
High8.8Oct 2, 2025
Arbitrary code execution Permissive CLI Config in Cursor CLI
High8.8Oct 2, 2025
RCE via .code-workspace files using Prompt Injection
High7.5Oct 2, 2025
Potential Information Leakage via Mermaid Diagram
Medium5.9Oct 2, 2025

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.