CVE-2025-64108
NixOS vulnerability analysis and mitigation

Overview

CVE-2025-64108 is a path traversal and sensitive file modification vulnerability in Cursor, an AI-powered code editor developed by Anysphere. NTFS path quirks (short path and data stream syntax) allow a prompt injection attacker to bypass Cursor's sensitive file protection mechanisms and overwrite files that normally require human approval. The vulnerability affects Cursor versions 1.7.44 and below and is limited to systems running NTFS file systems (i.e., Windows). It was published on November 4, 2025, and carries a CVSS v3.1 base score of 8.8 (High) (GitHub Advisory, Red Hat CVE).

Technical details

The root cause is improper limitation of a pathname to a restricted directory (CWE-22 / Path Traversal) combined with improper control of code generation (CWE-94 / Code Injection). Cursor implements guardrails requiring human approval before overwriting certain sensitive files; however, NTFS-specific path representations — such as 8.3 short path names and alternate data stream syntax — are not normalized before these guardrails are evaluated, allowing an attacker to reference a protected file via an alternate path form that bypasses the protection check. Exploitation must be chained with a prompt injection attack or a malicious AI model interaction that causes Cursor's AI agent to issue file-write operations using the crafted NTFS paths. The fix normalizes NTFS paths before applying guardrails (GitHub Advisory).

Impact

Successful exploitation allows an attacker to overwrite sensitive files within the Cursor application environment without triggering the required human approval prompt, bypassing an intended security control. Modification of certain protected files can lead to remote code execution (RCE), with high confidentiality, integrity, and availability impact on the affected system. The attack requires only low privileges and no user interaction beyond the initial prompt injection or malicious model attachment, making the potential blast radius significant for Windows-based developer workstations running Cursor (GitHub Advisory, Red Hat CVE).

Exploitability

As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (Red Hat CVE). The EPSS score is approximately 0.049%, reflecting a currently low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires chaining with a prompt injection or malicious AI model interaction, which adds complexity but is a realistic threat vector given the growing use of AI-assisted coding tools (GitHub Advisory).

Exploitation steps

  1. Identify target: Confirm the victim is running Cursor version 1.7.44 or below on a Windows (NTFS) system with an AI agent or model interaction enabled.
  2. Craft prompt injection payload: Prepare a malicious prompt or compromise/impersonate an AI model response that instructs Cursor's AI agent to write to a sensitive protected file (e.g., a configuration or startup file).
  3. Use NTFS path quirk: Reference the target sensitive file using an NTFS alternate representation — such as an 8.3 short filename (e.g., PROGRA~1\...) or an alternate data stream path — that bypasses Cursor's sensitive path detection logic.
  4. Trigger file write without approval: Because the NTFS path variant is not normalized before guardrail evaluation, Cursor's human-approval requirement is not triggered, and the AI agent overwrites the protected file silently.
  5. Achieve RCE: If the overwritten file is executed by Cursor or the OS at startup or during normal operation, the attacker's payload executes with the privileges of the Cursor process or the user (GitHub Advisory).

Indicators of compromise

  • File System: Unexpected modifications to Cursor configuration files, startup scripts, or extension files on Windows systems; file write timestamps inconsistent with user activity; presence of files referenced via 8.3 short names or alternate data streams in Cursor's working directories.
  • Logs: Cursor application logs showing AI agent file-write operations to sensitive paths without a corresponding human approval event; unusual file paths containing ~1, ~2, or :stream syntax in write operations.
  • Process: Unexpected processes spawned by Cursor or its child processes following a file modification event; unusual network connections initiated by Cursor after a file write.
  • Network: Outbound connections from the Cursor process to unexpected external hosts, potentially indicating a reverse shell or C2 callback following RCE (GitHub Advisory).

Mitigation and workarounds

The vendor has released a fix in Cursor version 2.0, which normalizes NTFS paths before applying sensitive file guardrails. All users on version 1.7.44 or below should upgrade to version 2.0 immediately. As interim mitigations, restrict network access to the Cursor application, apply the principle of least privilege to the user account running Cursor, implement strict monitoring for unexpected file modifications in Cursor's directories, and exercise caution with untrusted AI model sources or external prompts (GitHub Advisory, Red Hat CVE).

Community reactions

The vulnerability was credited to researcher Philts and disclosed via GitHub Security Advisories by Cursor maintainer hmwildermuth on November 3, 2025. Red Hat tracked the CVE as part of their standard advisory process. Community discussion has been limited, with no major media coverage or notable researcher commentary beyond the initial advisory (GitHub Advisory, Red Hat CVE).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-75874CRITICAL10
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74990CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74989CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74988CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74987CRITICAL9.8
  • NixOS logoNixOS
  • MozillaFirefox-branding-upstream
NoYesAug 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management