CVE-2025-61593

Cursor CLI Agent: Sensitive File Overwrite Bypass

State
Published
Severity
7.1 High
Published
Oct 3, 2025
Updated
Oct 3, 2025
Reserved
Sep 26, 2025

Read the record on cve.org

Description

Cursor is a code editor built for programming with AI. In versions 1.7 and below, 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. A prompt injection can lead to full RCE through modifying sensitive files on case-insensitive filesystems. This issue is fixed in a commit, 25b418f, but has yet to be released as of October 3, 2025.

Scores

CVSSScoreVectorSource
3.17.1 HighCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:HGitHub_M

Weaknesses

  • CWE-178 Improper Handling of Case Sensitivity
  • CWE-94 Improper Control of Generation of Code ('Code Injection')

Affected Products

ProductVersions
cursorcursor
  • <= 1.7Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.