The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-64109

CVE-2025-64109: Cursor CLI Beta RCE Vulnerability

CVE-2025-64109 is a remote code execution flaw in Cursor CLI Beta that allows attackers to execute malicious code via MCP configuration files. This article covers technical details, affected versions, and mitigation.

Published: April 14, 2026

CVE-2025-64109 Overview

CVE-2025-64109 is a command injection vulnerability affecting the Cursor CLI Beta, a code editor built for programming with AI. The vulnerability allows an attacker to achieve remote code execution through the Model Context Protocol (MCP) server mechanism by uploading a malicious MCP configuration in a .cursor/mcp.json file within a GitHub repository. When a victim clones the project and opens it using Cursor CLI, the command to run the malicious MCP server is immediately executed without any warning, leading to potential code execution as soon as the command runs.

Critical Impact

Attackers can achieve remote code execution by distributing malicious repositories containing weaponized MCP configuration files, compromising developer workstations upon project opening.

Affected Products

  • Cursor CLI Beta versions prior to 2025.09.17-25b418f
  • Cursor code editor installations using vulnerable CLI versions
  • Development environments that clone and open untrusted repositories

Discovery Timeline

  • 2025-11-05 - CVE CVE-2025-64109 published to NVD
  • 2025-11-06 - Last updated in NVD database

Technical Details for CVE-2025-64109

Vulnerability Analysis

This vulnerability is classified under CWE-78 (Improper Neutralization of Special Elements used in an OS Command), commonly known as OS Command Injection. The core issue lies in the Cursor CLI's handling of MCP (Model Context Protocol) configuration files without proper validation or user consent.

When a user opens a project directory with Cursor CLI, the application automatically parses the .cursor/mcp.json configuration file and executes any MCP server commands defined within it. This automatic execution occurs without warning the user or requiring explicit approval, creating a dangerous attack surface where malicious actors can embed arbitrary commands that execute immediately upon project loading.

The attack requires user interaction in the form of cloning a malicious repository and opening it with Cursor CLI, but no additional permissions or warnings are presented to alert the user to the risk.

Root Cause

The root cause is insufficient input validation and the absence of security controls around the automatic execution of MCP server configurations. The Cursor CLI trusts configuration files within project directories without:

  1. Validating the source or integrity of the configuration
  2. Prompting the user before executing potentially dangerous commands
  3. Sandboxing or restricting the capabilities of MCP server processes
  4. Implementing an allowlist or security policy for executable commands

Attack Vector

The attack vector is network-based, requiring an attacker to craft a malicious repository containing a weaponized .cursor/mcp.json file. The attack flow proceeds as follows:

  1. Attacker creates a legitimate-looking GitHub repository with useful code
  2. Attacker adds a malicious .cursor/mcp.json file with embedded commands
  3. Victim clones the repository (via git clone or similar)
  4. Victim opens the project directory using Cursor CLI
  5. Cursor CLI automatically reads and executes the MCP configuration
  6. Malicious commands execute with the victim's user privileges

The vulnerability is particularly dangerous in software supply chain contexts where developers frequently clone open-source projects for review, testing, or contribution. For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2025-64109

Indicators of Compromise

  • Presence of suspicious .cursor/mcp.json files in recently cloned repositories
  • Unexpected process execution originating from Cursor CLI processes
  • Unusual network connections initiated after opening projects in Cursor
  • Modifications to system files or creation of persistence mechanisms following Cursor usage

Detection Strategies

  • Monitor for child processes spawned by Cursor CLI that execute shell commands or scripts
  • Implement file integrity monitoring on development workstations to detect unauthorized changes
  • Scan cloned repositories for .cursor/mcp.json files before opening with Cursor CLI
  • Use endpoint detection to identify suspicious command execution patterns from code editors

Monitoring Recommendations

  • Configure EDR solutions to alert on unusual process trees originating from Cursor CLI
  • Implement logging for all MCP server executions within Cursor environments
  • Monitor for repository cloning activities followed by immediate suspicious process activity
  • Review developer workstations for signs of compromise after opening untrusted repositories

How to Mitigate CVE-2025-64109

Immediate Actions Required

  • Update Cursor to version 2025.09.17-25b418f or later immediately
  • Audit recently opened projects for suspicious .cursor/mcp.json files
  • Review system logs for any signs of unauthorized command execution
  • Educate development teams about the risks of opening untrusted repositories

Patch Information

The vulnerability has been addressed in Cursor version 2025.09.17-25b418f. Users should update their Cursor installation to this version or later to remediate the vulnerability. The fix likely implements proper validation and user consent mechanisms before executing MCP server configurations. For additional details, see the GitHub Security Advisory.

Workarounds

  • Manually inspect .cursor/mcp.json files in repositories before opening projects with Cursor CLI
  • Remove or rename .cursor/mcp.json files from untrusted repositories before opening
  • Use alternative code editors for reviewing untrusted codebases until the patch is applied
  • Implement organizational policies requiring security review of third-party repositories before use
bash
# Remove potentially malicious MCP configuration before opening with Cursor
find /path/to/cloned/repo -name "mcp.json" -path "*/.cursor/*" -exec rm -i {} \;

# Verify Cursor version is patched
cursor --version
# Expected output should include: 2025.09.17-25b418f or later

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechCursor

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.13%

  • 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-78
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-31854: Cursor Code Editor RCE Vulnerability

  • CVE-2026-22708: Cursor AI Code Editor RCE Vulnerability

  • CVE-2024-48919: Cursor Code Editor RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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