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-61593

CVE-2025-61593: Anysphere Cursor RCE Vulnerability

CVE-2025-61593 is a remote code execution flaw in Anysphere Cursor affecting versions 1.7 and below. Attackers exploit prompt injection to modify sensitive CLI files. This article covers technical details, affected versions, and fixes.

Published: April 29, 2026

CVE-2025-61593 Overview

CVE-2025-61593 is a prompt injection vulnerability affecting Cursor, an AI-powered code editor developed by Anysphere. The vulnerability exists in versions 1.7 and below due to improper protection of sensitive configuration files, specifically the */.cursor/cli.json files used by the Cursor CLI Agent. Through prompt injection techniques, attackers can manipulate the AI component to modify these sensitive files, ultimately achieving remote code execution on systems with case-insensitive filesystems.

Critical Impact

This vulnerability allows attackers to leverage prompt injection to achieve full remote code execution by modifying sensitive Cursor configuration files, potentially compromising developer workstations and source code repositories.

Affected Products

  • Anysphere Cursor versions 1.7 and below
  • Cursor CLI Agent component
  • Systems running Cursor on case-insensitive filesystems (Windows, macOS)

Discovery Timeline

  • 2025-10-03 - CVE-2025-61593 published to NVD
  • 2025-10-09 - Last updated in NVD database

Technical Details for CVE-2025-61593

Vulnerability Analysis

This vulnerability falls under CWE-94 (Improper Control of Generation of Code), commonly known as Code Injection. The core issue lies in how the Cursor CLI Agent handles file path validation for its sensitive configuration files. The protection mechanism fails to account for case-insensitive filesystem behavior, creating an exploitable gap that attackers can leverage through prompt injection attacks against the AI component.

When the AI agent processes malicious prompts, it can be tricked into writing to configuration file paths using alternate casing (e.g., .Cursor/CLI.json instead of .cursor/cli.json). On case-insensitive filesystems like those used by Windows and macOS, these paths resolve to the same actual file, bypassing the intended security controls. The modified configuration can then be used to execute arbitrary code when the CLI agent processes the tampered settings.

Root Cause

The root cause is insufficient validation of file paths in case-insensitive filesystem environments combined with inadequate input sanitization in the AI prompt handling layer. The Cursor CLI Agent's file protection mechanism uses case-sensitive string comparisons to identify sensitive files, which fails to prevent access when alternate casing is used on filesystems that treat paths as case-insensitive.

Attack Vector

The attack requires user interaction, specifically that a victim must process a maliciously crafted prompt through the Cursor AI interface. The prompt injection payload is designed to manipulate the AI into generating file operations that modify the cli.json configuration file using alternate casing to bypass protections. Once the configuration is modified, the attacker-controlled code can execute in the context of the Cursor application with the privileges of the current user.

The attack chain typically involves:

  1. Delivering a malicious prompt to the victim (via shared code, documentation, or collaborative sessions)
  2. The AI processes the prompt and is manipulated into writing to configuration files
  3. Modified configuration enables execution of attacker-controlled code
  4. Full RCE is achieved on the victim's system

Detection Methods for CVE-2025-61593

Indicators of Compromise

  • Unexpected modifications to files in the .cursor directory or variations like .Cursor, .CURSOR
  • Changes to cli.json configuration files with suspicious content or executable paths
  • AI agent activity logs showing unusual file write operations to configuration directories
  • Process execution spawned from Cursor that doesn't match expected behavior

Detection Strategies

  • Monitor file system events for write operations to Cursor configuration directories using alternate casing patterns
  • Implement file integrity monitoring for cli.json and related configuration files
  • Review AI prompt logs for patterns indicative of prompt injection attempts
  • Deploy endpoint detection rules that flag unusual child processes spawned by Cursor

Monitoring Recommendations

  • Enable detailed logging for Cursor CLI Agent file operations
  • Configure alerts for any modifications to protected configuration paths regardless of casing
  • Monitor for unusual network connections or process spawning from the Cursor application
  • Implement behavioral analysis to detect deviation from normal Cursor usage patterns

How to Mitigate CVE-2025-61593

Immediate Actions Required

  • Update to a Cursor version containing commit 25b418f once officially released
  • Restrict access to Cursor configuration directories with appropriate filesystem permissions
  • Implement case-insensitive file path comparisons for any custom security controls
  • Review and audit existing .cursor/cli.json files for unexpected modifications

Patch Information

A fix has been implemented in commit 25b418f but has not yet been released in an official version as of October 3, 2025. Users should monitor the GitHub Security Advisory for release announcements and update immediately when the patched version becomes available.

Workarounds

  • Set the .cursor directory and its contents to read-only permissions where feasible
  • Use filesystem access controls to prevent modifications to Cursor configuration files
  • Exercise caution when processing prompts from untrusted sources or shared code repositories
  • Consider running Cursor in a sandboxed environment until the official patch is released
bash
# Configuration example - Restrict permissions on Cursor config directory
# For Unix/macOS systems:
chmod 500 ~/.cursor
chmod 400 ~/.cursor/cli.json

# For Windows systems, use icacls to restrict write access:
# icacls "%USERPROFILE%\.cursor" /deny Everyone:(W)

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.12%

  • 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-94
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-26268: Anysphere Cursor Sandbox Escape RCE Flaw

  • CVE-2025-64107: Anysphere Cursor RCE Vulnerability

  • CVE-2025-61591: Anysphere Cursor RCE Vulnerability

  • CVE-2025-59944: 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