Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-64107

CVE-2025-64107: Anysphere Cursor RCE Vulnerability

CVE-2025-64107 is a remote code execution flaw in Anysphere Cursor that allows attackers to overwrite sensitive editor files on Windows machines. This article covers technical details, affected versions, impact, and mitigation.

Published: April 22, 2026

CVE-2025-64107 Overview

CVE-2025-64107 is a path traversal vulnerability in Cursor, an AI-powered code editor developed by Anysphere. The vulnerability affects versions 1.7.52 and below, where improper validation of backslash characters in file paths allows attackers to bypass security controls and overwrite sensitive editor configuration files without user approval on Windows systems. When combined with prompt injection or other attack vectors, this flaw can lead to remote code execution (RCE).

Critical Impact

Attackers who achieve prompt injection or similar control over the editor can exploit this path traversal vulnerability to overwrite sensitive configuration files (such as mcp.json), potentially leading to arbitrary code execution on Windows machines without user approval.

Affected Products

  • Anysphere Cursor versions 1.7.52 and below on Windows
  • Cursor AI Code Editor for Windows platforms
  • Any deployment using vulnerable Cursor versions with MCP configuration files

Discovery Timeline

  • 2025-11-04 - CVE CVE-2025-64107 published to NVD
  • 2025-11-10 - Last updated in NVD database

Technical Details for CVE-2025-64107

Vulnerability Analysis

This vulnerability stems from inconsistent path validation within Cursor's internal file handling mechanisms. The editor implements security controls that detect path manipulation attempts using forward slashes (e.g., ./.cursor/./././././mcp.json), requiring human approval before allowing such operations to proceed. However, the same validation logic fails to account for Windows-style backslash path separators.

On Windows systems, both forward slashes and backslashes are valid path separators. By using backslash characters instead of forward slashes, an attacker can craft malicious paths that bypass the path manipulation detection entirely. This allows unauthorized modification of sensitive editor configuration files, including the mcp.json file that controls Model Context Protocol settings.

The vulnerability is classified under CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as Path Traversal. The attack requires user interaction (such as opening a malicious project or accepting a prompt injection payload), but once this prerequisite is met, the file overwrite occurs without additional approval dialogs.

Root Cause

The root cause is incomplete input validation in the path sanitization routine. While the developers correctly identified that forward slash-based path manipulation patterns (like ./) posed a security risk, they failed to apply the same defensive measures to backslash equivalents (.\). This is a common oversight in cross-platform applications where path handling differs between Unix-like systems and Windows.

The validation logic appears to use pattern matching or string inspection that specifically looks for forward slash sequences, leaving the backslash variant as an unguarded attack surface on Windows deployments.

Attack Vector

The attack requires an initial foothold, typically achieved through prompt injection against the AI assistant integrated into Cursor. Once an attacker can influence the editor's behavior through prompt injection or similar techniques, they can construct file operation requests using backslash-based path traversal sequences.

The attack path proceeds as follows:

  1. Attacker achieves prompt injection or gains some level of control over Cursor's AI-assisted operations
  2. Attacker crafts a malicious file path using backslash separators (e.g., .\.cursor\.\.\.\.\.\mcp.json)
  3. The path manipulation bypasses Cursor's forward-slash detection mechanism
  4. Sensitive configuration files are overwritten without triggering the human approval prompt
  5. Modified configuration enables code execution on subsequent editor operations

The vulnerability specifically targets the MCP (Model Context Protocol) configuration system, which governs how Cursor interacts with AI services and can be leveraged to execute arbitrary commands.

Detection Methods for CVE-2025-64107

Indicators of Compromise

  • Unexpected modifications to .cursor/mcp.json or other editor configuration files
  • File system audit logs showing backslash-based path traversal patterns in Cursor-related operations
  • Unusual AI-generated file operations targeting editor configuration directories
  • Modified MCP configurations containing unexpected tool definitions or command executions

Detection Strategies

  • Monitor file integrity of Cursor configuration directories, particularly mcp.json files
  • Implement endpoint detection rules that flag backslash-based path traversal patterns in application file operations
  • Review Cursor's internal logs for file operations that bypass the standard approval workflow
  • Deploy behavioral analysis to detect prompt injection attempts in AI-assisted coding sessions

Monitoring Recommendations

  • Enable file system auditing on Windows systems for the Cursor configuration directory (%APPDATA%\Cursor or similar paths)
  • Configure EDR solutions to alert on path traversal patterns containing sequences like .\..\ in file write operations
  • Implement application whitelisting for files that Cursor is permitted to modify without user approval
  • Establish baseline configurations for MCP settings and alert on deviations

How to Mitigate CVE-2025-64107

Immediate Actions Required

  • Upgrade Cursor to version 2.0 or later immediately on all Windows systems
  • Audit existing mcp.json and other configuration files for unauthorized modifications
  • Review recent AI-assisted file operations for signs of prompt injection exploitation
  • Consider temporarily disabling automated file operations until the upgrade is complete

Patch Information

Anysphere has addressed this vulnerability in Cursor version 2.0. The fix implements consistent path validation that properly handles both forward slash and backslash path separators on Windows systems. Users should upgrade immediately through Cursor's built-in update mechanism or by downloading the latest version from the official website.

For detailed information about the security fix, refer to the GitHub Security Advisory GHSA-2jr2-8wf5-v6pf.

Workarounds

  • If immediate upgrade is not possible, disable AI-assisted file operations temporarily
  • Implement strict file system permissions on Cursor configuration directories to prevent unauthorized modifications
  • Use application control policies to restrict which files Cursor can modify
  • Deploy network segmentation to limit exposure of vulnerable Cursor installations
  • Consider using Cursor on non-Windows platforms where backslash path traversal is not applicable
bash
# Configuration example - Restrict write access to Cursor configuration directory
# Run in PowerShell as Administrator on Windows systems
icacls "%APPDATA%\Cursor" /deny "Users:(OI)(CI)(W)" /T
# Note: This may break normal Cursor functionality - use only as temporary mitigation
# Restore with: icacls "%APPDATA%\Cursor" /remove:d "Users" /T

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAnysphere Cursor

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-26268: Anysphere Cursor Sandbox Escape RCE Flaw

  • CVE-2025-61591: Anysphere Cursor RCE Vulnerability

  • CVE-2025-59944: Anysphere Cursor RCE Vulnerability

  • CVE-2025-54133: Anysphere Cursor RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English