Skip to main content

Cursor CLI Agent CVE-2025-61593

| EUVDEUVD-2025-33203 HIGH
Code Injection (CWE-94)
2025-10-03 security-advisories@github.com
8.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Plant prompt-injection payload in agent-processed content
  2. Delivery
    Developer runs Cursor CLI Agent on content
  3. Exploit
    Injection overwrites */.cursor/cli.json
  4. Execution
    Tampered config loaded on case-insensitive filesystem
  5. Impact
    Execute arbitrary code as developer

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a developer to run the Cursor CLI Agent (version 1.7 or below) against attacker-influenced content, allowing prompt injection to overwrite the agent's trusted configuration file at */.cursor/cli.json. The RCE path is further gated on a case-insensitive filesystem - present by default on macOS and Windows but generally NOT on Linux - which both broadens exposure on the former and limits it on the latter. Limiting factors: mandatory user interaction (the victim must actively invoke the agent on the malicious input), the version ceiling (≤1.7), and the filesystem-case dependency. No specially privileged account is needed beyond the developer's own session.

Impact

Signals are mixed and lean toward moderate real-world priority despite the HIGH 8.8 base score. The CVSS vector (AV:N/AC:L/PR:N/UI:R) describes a network-reachable, unauthenticated code-injection flaw with full C/I/A impact, which drives the high score, but the UI:R flag is decisive: exploitation is not autonomous - a developer must actually run the Cursor CLI Agent against attacker-controlled content for the prompt injection to fire. EPSS is low at 0.12% (31st percentile), the vulnerability is NOT in CISA KEV, and no public exploit was identified in the provided data, so there is no evidence of active or at-scale exploitation. The description also adds a material precondition absent from the CVSS vector - the RCE path depends on a case-insensitive filesystem (default on macOS and Windows, but not typical Linux) - which the AC:L rating does not reflect; a stricter reading could justify AC:H. No SSVC decision data was provided. Net: a credible, vendor-acknowledged (GitHub Security Advisory) code-execution bug worth patching on developer workstations, but the low EPSS, absence of KEV/POC, and the required user action argue against treating it as an emergency relative to its 8.8 label.

Exploit ScenarioDerived

An attacker plants a prompt-injection payload in content a developer will feed to the Cursor CLI Agent (e.g., a repository file, issue, or document). When the developer runs the agent on it, the injected instructions cause the agent to overwrite the trusted */.cursor/cli.json configuration, and on a case-insensitive filesystem the tampered config is loaded and executes attacker-chosen commands as the developer. No public exploit code was identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Oct 19, 2026

Remote code execution in Cursor CLI Agent 1.7 and earlier can be triggered by unauthenticated attackers through prompt injection that overwrites the agent's trusted cli.json configuration on case-insensitive filesystems. Exploitation requires a developer to run the CLI agent against attacker-influenced content (CVSS UI:R), and the RCE path is gated on default case-insensitive filesystems such as macOS and Windows rather than typical Linux deployments. No public exploit identified at time of analysis, and EPSS is 0.12%, indicating low predicted exploitation likelihood.

Earlier versions of this analysis (1)
v1 Mar 13, 2026 - 19:29 CVSS 7.1

RemediationAI

Upstream fix available (commit 25b418f); a released patched version was not independently confirmed as of October 3, 2025, so track https://github.com/cursor/cursor/security/advisories/GHSA-x2vq-h6v6-jhc6 and upgrade Cursor CLI Agent to the first release containing that commit. Until then, avoid running Cursor CLI Agent 1.7 or earlier against untrusted repositories, prompts, or agent inputs, and prefer disabling the CLI Agent on macOS and Windows where case-insensitive filesystems make the RCE path viable; the trade-off is loss of agent functionality. Where feasible, run the agent in a case-sensitive filesystem or container, or restrict and monitor writes to */.cursor/cli.json using OS permissions or file-integrity monitoring; these are compensating controls only, and case-sensitive environments or restrictive permissions may break expected agent configuration updates.

Affected VersionsENISA

cursor ≤ 1.7

Affected Packages

euvd cursor no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Cursor is an AI code editor, and its CLI Agent is designed to protect sensitive files such as */.cursor/cli.json. CVE-2025-61593 is a CWE-94 code-injection issue: prompt injection can cause the agent to treat attacker-influenced instructions as trusted and modify that configuration file. The case-insensitive filesystem dependency, default on macOS and Windows but generally not on Linux, indicates that alternate path casing can reach the same protected file and bypass the agent's file-protection handling; a successful overwrite of cli.json can then lead to code execution in the developer's session. The CVSS vector AV:N/AC:L/PR:N/UI:R means remote, low-complexity, unauthenticated exploitation is possible but requires the victim to interact with the agent. The CPE cpe:2.3:a:anysphere:cursor:*:*:*:*:*:*:*:* covers Cursor, with EUVD specifying affected versions <=1.7.

Know when Cursor gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Network-delivered prompt injection needs no privileges (PR:N) but requires the developer to run the agent (UI:R); successful config overwrite yields full code execution, so C/I/A:H.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Oct 19, 2026 - 17:23 NVD
7.1 (HIGH) 8.8 (HIGH)
CVE Published
Oct 03, 2025 - 18:15 nvd
HIGH 8.8
CVE Published
Oct 03, 2025 - 18:15 nvd
HIGH 7.1

DescriptionNVD

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.

Executive ViewAI

Why It Matters

Organizations using Cursor face moderate risk from CVE-2025-61593, a code injection vulnerability rated CVSS 7.1. Successful exploitation could allow attackers to execute arbitrary code or commands on affected systems, potentially leading to full system compromise. Organizations should apply vendor updates when available and consider compensating controls in the interim.

Business Impact: Moderate
Compensating Controls

Apply vendor patch. If immediate patching is not feasible: (1) Deploy WAF rules to block injection patterns; (2) Restrict network access to affected components; (3) Enable enhanced logging for suspicious activity.

Threat Intelligence Overview

EPSS Score
0.1%
Top 69% exploitable
Prevalence
Medium
popular AI code editor, but confined to developer workstations
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Cursor

View all
CVE-2026-63093 HIGH POC
8.7 Jul 17

Arbitrary code execution in Cursor for Windows 3.2.16 lets remote attackers run code on a developer's machine by plantin

CVE-2025-59944 CRITICAL
9.8 Oct 03

Remote code execution in Cursor IDE 1.6.23 and below can be triggered by prompt injection that abuses case-insensitive p

CVE-2026-22708 CRITICAL POC
9.8 Jan 14

Cursor AI code editor before 2.3 allows prompt injection to bypass the Agent's Allowlist mode. Shell built-ins can execu

CVE-2026-50549 CRITICAL POC
9.3 Jun 25

Sandbox escape leading to non-sandboxed remote code execution in Cursor (the AI code editor) prior to version 3.0, where

CVE-2026-50548 CRITICAL POC
9.3 Jun 25

Sandbox escape leading to non-sandboxed remote code execution affects the Cursor AI code editor prior to version 3.0, wh

CVE-2025-61592 HIGH
8.8 Oct 03

Cursor is a code editor built for programming with AI. In versions 1.7 and below, automatic loading of project-specific

CVE-2025-64108 HIGH
8.8 Nov 04

Cursor is a code editor built for programming with AI. Rated high severity (CVSS 8.8), this vulnerability is remotely ex

CVE-2025-61591 HIGH
8.8 Oct 03

Cursor is a code editor built for programming with AI. In versions 1.7 and below, when MCP uses OAuth authentication wit

CVE-2025-64106 HIGH
8.8 Nov 04

Cursor is a code editor built for programming with AI. Rated high severity (CVSS 8.8), this vulnerability is remotely ex

CVE-2025-64107 HIGH
8.8 Nov 04

Cursor is a code editor built for programming with AI. Rated high severity (CVSS 8.8), this vulnerability is remotely ex

CVE-2026-31854 HIGH POC
8.8 Mar 11

Cursor is a code editor built for programming with AI. versions up to 2.0 is affected by os command injection.

CVE-2025-64110 HIGH
8.7 Nov 05

Cursor is a code editor built for programming with AI. Rated high severity (CVSS 8.7), this vulnerability is remotely ex

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy