Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPlant prompt injection in untrusted content
-
DeliveryVictim's Cursor agent reads payload
-
ExploitBypass case-sensitive file-protection check
-
ExecutionOverwrite protected .cursor/mcp.json config
-
ImpactExecute arbitrary code on developer host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Case sensitivity handling
|
| Exploitation Conditions | Exploitation requires three concrete preconditions: (1) Cursor IDE at version 1.6.23 or below; (2) a case-insensitive filesystem - the default on Windows (NTFS) and macOS (APFS/HFS+), but NOT typical Linux ext4/xfs, which largely immunizes those hosts; and (3) the Cursor AI agent must process attacker-controlled content containing a prompt-injection payload (e.g., a malicious repository, source file, README/docs, or fetched web content). The injection then writes a case-variant of a protected path such as '.cursor/MCP.json', defeating Cursor's case-sensitive protection check (CWE-178) and causing arbitrary code execution via the tampered MCP configuration. Limiting factors: the victim must actually run the AI agent against the untrusted content, and the attack fails on case-sensitive filesystems, so the raw 9.8/AV:N/UI:N overstates reachability against hardened or Linux deployments. |
| Impact | Signals conflict sharply here. The input CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N) and 9.8 score portray a trivially remote, unauthenticated, no-interaction RCE - but the description makes clear exploitation is gated on prompt injection, meaning the victim's Cursor AI agent must first ingest attacker-controlled content, and the bypass only works on case-insensitive filesystems (Windows/macOS defaults, not typical Linux ext4). The UI:N and arguably S:U metrics therefore understate the real preconditions; realistically this behaves like a user-interaction-dependent, environment-dependent flaw rather than a wormable network RCE. The exploitation-probability signals agree with this tempering: EPSS is only 0.14% (34th percentile), there is no CISA KEV listing, and no public exploit code is indicated - so despite the 9.8, this is not currently an active mass-exploitation priority. It remains a genuinely serious issue for developer endpoints because the outcome is full RCE and prompt-injection delivery via malicious repos/files/docs is a well-understood, low-friction vector, but it should be prioritized as a patch-promptly developer-tooling risk, not a drop-everything internet-facing emergency. Key caveat to verify: CVSS indicates network vector with no user interaction, yet the description implies the AI agent must process attacker content on a case-insensitive filesystem - treat the headline 9.8 as optimistic for AV/UI. |
| Exploit ScenarioDerived | An attacker seeds a prompt-injection payload into content a developer's Cursor agent will read - e.g., a malicious open-source repository, a README, inline code comments, or fetched documentation. When the agent processes it, the injected instructions write to a case-variant of a protected path such as .cursor/MCP.json, slipping past Cursor's case-sensitive file-protection check on the victim's Windows or macOS (case-insensitive) filesystem, and the poisoned MCP configuration then yields remote code execution on the developer's host. No public exploit code is identified at time of analysis, but the prompt-injection delivery path is low-complexity. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 19, 2026
Remote code execution in Cursor IDE 1.6.23 and below can be triggered by prompt injection that abuses case-insensitive path handling to modify protected files such as .cursor/mcp.json. The assessed vector is AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H because exploitation requires the Cursor AI agent to process attacker-controlled content and the host to use a case-insensitive filesystem, the default on Windows and macOS; Linux ext4/xfs hosts are generally not affected. EPSS is 0.14% (34th percentile), no public exploit was identified at time of analysis, and version 1.7 fixes the issue.
Earlier versions of this analysis (1)
RemediationAI
Upgrade Cursor IDE to version 1.7 or later (vendor-released patch: 1.7) using the vendor advisory at https://github.com/cursor/cursor/security/advisories/GHSA-xcwh-rrwj-gxc7. If immediate upgrade is not possible, run Cursor only on a case-sensitive filesystem, such as Linux ext4/xfs or a case-sensitive APFS volume, because the bypass depends on case-insensitive path resolution; this has operational trade-offs and does not eliminate prompt-injection risk. Also avoid running the Cursor AI agent against untrusted repositories, README/docs, or fetched web content until patched, and audit project .cursor/mcp.json plus case-variant files for unauthorized MCP server definitions. Restricting write access to project .cursor directories can limit tampering but may break legitimate MCP configuration workflows.
Affected VersionsENISA
Affected Packages
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
The root cause is CWE-178, improper handling of case sensitivity, in Cursor's protection of sensitive files such as */.cursor/mcp.json. Cursor 1.6.23 and below performs case-sensitive checks when deciding whether a path is protected. On case-insensitive filesystems, including Windows NTFS and macOS APFS/HFS+, path variants such as .cursor/MCP.json or .CURSOR/mcp.json resolve to the same protected file but do not match the case-sensitive guard. If the Cursor AI agent processes attacker-controlled content containing a prompt-injection payload, the agent can be induced to write to that case-variant path, tampering with MCP configuration and causing arbitrary code execution when the configuration is consumed. The CPE cpe:2.3:a:anysphere:cursor:*:*:*:*:*:*:*:* identifies Anysphere Cursor, and EUVD lists affected versions as cursor < 1.7. The independent assessment's AC:H, UI:R, and S:C reflect the prompt-injection and filesystem preconditions rather than a directly reachable network flaw.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Prompt-injection delivery needs the victim to run the agent on attacker content (UI:R), success depends on a case-insensitive filesystem (AC:H), and bypassing IDE file protection to reach OS-level RCE crosses a scope boundary (S:C).
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
6DescriptionNVD
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.
Executive ViewAI
Cursor IDE versions 1.6.23 and below are vulnerable to remote code execution through case-sensitive file protection bypass, allowing attackers to inject malicious commands via prompt injection that modify sensitive configuration files on case-insensitive filesystems. Organizations using Cursor for development face direct code execution risk on affected workstations, potentially compromising source code, credentials, and development infrastructure.
Vendor-released patch: Cursor IDE version 1.7. Interim mitigations if upgrade cannot be deployed immediately: restrict Cursor to read-only environments, disable internet-connected AI features in Cursor settings, isolate affected development workstations from sensitive infrastructure, and monitor filesystem access to .cursor/mcp.json and similar protected files for unauthorized modifications.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Arbitrary code execution in Cursor for Windows 3.2.16 lets remote attackers run code on a developer's machine by plantin
Cursor AI code editor before 2.3 allows prompt injection to bypass the Agent's Allowlist mode. Shell built-ins can execu
Sandbox escape leading to non-sandboxed remote code execution in Cursor (the AI code editor) prior to version 3.0, where
Sandbox escape leading to non-sandboxed remote code execution affects the Cursor AI code editor prior to version 3.0, wh
Cursor is a code editor built for programming with AI. In versions 1.7 and below, automatic loading of project-specific
Remote code execution in Cursor CLI Agent 1.7 and earlier can be triggered by unauthenticated attackers through prompt i
Cursor is a code editor built for programming with AI. Rated high severity (CVSS 8.8), this vulnerability is remotely ex
Cursor is a code editor built for programming with AI. In versions 1.7 and below, when MCP uses OAuth authentication wit
Cursor is a code editor built for programming with AI. Rated high severity (CVSS 8.8), this vulnerability is remotely ex
Cursor is a code editor built for programming with AI. Rated high severity (CVSS 8.8), this vulnerability is remotely ex
Cursor is a code editor built for programming with AI. versions up to 2.0 is affected by os command injection.
Cursor is a code editor built for programming with AI. Rated high severity (CVSS 8.7), this vulnerability is remotely ex
EUVD-2025-33199
NVD
CVE.org
EPSS
GitHub
Exploit-DB