Skip to main content

Cursor IDE CVE-2025-59944

| EUVDEUVD-2025-33199 CRITICAL
Improper Handling of Case Sensitivity (CWE-178)
2025-10-03 security-advisories@github.com
9.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 in untrusted content
  2. Delivery
    Victim's Cursor agent reads payload
  3. Exploit
    Bypass case-sensitive file-protection check
  4. Execution
    Overwrite protected .cursor/mcp.json config
  5. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 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 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)
v1 Mar 13, 2026 - 19:29 CVSS 8.0

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

cursor < 1.7

Affected Packages

euvd cursor fix: 1.7

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

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

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).

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

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

6
Severity Changed
Oct 19, 2026 - 16:23 NVD
HIGH CRITICAL
CVSS changed
Oct 19, 2026 - 16:23 NVD
8.0 (HIGH) 9.8 (CRITICAL)
Analysis Updated
Apr 16, 2026 - 06:25 EUVD-patch-fix
executive summary
Patch available
Apr 16, 2026 - 05:29 EUVD
1.7
CVE Published
Oct 03, 2025 - 21:15 nvd
CRITICAL 9.8
CVE Published
Oct 03, 2025 - 21:15 nvd
HIGH 8.0

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 66% exploitable
Prevalence
Medium
popular AI code editor, but developer-workstation footprint, not server infrastructure
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

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

Attack Technique

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-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-61593 HIGH
8.8 Oct 03

Remote code execution in Cursor CLI Agent 1.7 and earlier can be triggered by unauthenticated attackers through prompt i

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