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

CVE-2025-61592: Anysphere Cursor RCE Vulnerability

CVE-2025-61592 is a remote code execution vulnerability in Anysphere Cursor affecting versions 1.7 and below. Malicious repositories can exploit CLI configuration overrides to execute arbitrary code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: April 29, 2026

CVE-2025-61592 Overview

CVE-2025-61592 is a Remote Code Execution vulnerability affecting Cursor, an AI-powered code editor developed by Anysphere. The vulnerability exists in versions 1.7 and below, where automatic loading of project-specific CLI configuration from the current working directory (<project>/.cursor/cli.json) could override certain global configurations in the Cursor CLI. This flaw enables attackers to achieve Remote Code Execution through a combination of permissive configuration settings that allow shell commands and prompt injection delivered via project-specific Rules (<project>/.cursor/rules/rule.mdc) or other mechanisms.

Critical Impact

Users who clone and open malicious repositories in Cursor versions 1.7 and below are vulnerable to Remote Code Execution through crafted project configuration files that can override global security settings and execute arbitrary shell commands.

Affected Products

  • Anysphere Cursor versions 1.7 and below
  • Cursor CLI with project-specific configuration loading enabled
  • Development environments using .cursor/cli.json and .cursor/rules/ configurations

Discovery Timeline

  • October 3, 2025 - CVE-2025-61592 published to NVD
  • October 9, 2025 - Last updated in NVD database

Technical Details for CVE-2025-61592

Vulnerability Analysis

This vulnerability falls under CWE-829 (Inclusion of Functionality from Untrusted Control Sphere), highlighting a fundamental trust boundary violation in how Cursor handles project-level configurations. The core issue stems from the CLI's willingness to automatically load and apply configuration overrides from untrusted project directories without adequate validation or user consent.

The attack surface is particularly concerning given Cursor's AI-assisted development workflow. Developers routinely clone repositories from various sources to review code, contribute to open-source projects, or evaluate third-party libraries. By embedding malicious configuration files within a repository, an attacker can weaponize this common development practice.

The exploitation requires user interaction—specifically, the victim must open a malicious repository in Cursor. However, given the frequency with which developers clone and explore repositories, this represents a realistic and practical attack scenario. The vulnerability enables complete compromise of the development environment with the privileges of the running user.

Root Cause

The root cause lies in insufficient trust boundary enforcement when processing project-specific CLI configuration files. The Cursor CLI automatically loads configuration from <project>/.cursor/cli.json without adequately restricting which settings can be overridden or validating the security implications of those overrides. This permissive configuration loading, combined with support for shell command execution and the Rules system (<project>/.cursor/rules/rule.mdc), creates a chain that allows untrusted project files to execute arbitrary code.

Attack Vector

The attack leverages network-based delivery through malicious repositories. An attacker crafts a repository containing specially designed configuration files in the .cursor/ directory. When a victim clones this repository and opens it with Cursor, the CLI automatically loads the malicious configuration which can:

  1. Override global security configurations that normally restrict shell command execution
  2. Inject malicious prompts through the Rules system that leverage AI capabilities to execute commands
  3. Chain these capabilities together to achieve arbitrary code execution on the victim's system

The vulnerability mechanism relies on the automatic configuration loading behavior of the Cursor CLI. When a user opens a project directory, Cursor searches for and loads .cursor/cli.json without prompting the user or validating the security implications of the configuration directives. The permissive nature of these overrides allows attackers to enable dangerous capabilities that may be disabled in global settings. For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2025-61592

Indicators of Compromise

  • Presence of unexpected .cursor/cli.json files in recently cloned repositories with shell command configurations
  • Unusual .cursor/rules/rule.mdc files containing suspicious prompt injection patterns
  • Unexpected child processes spawned by the Cursor application
  • Anomalous network connections originating from the Cursor process

Detection Strategies

  • Monitor file system activity for creation or modification of .cursor/cli.json and .cursor/rules/ files in project directories
  • Implement endpoint detection rules to flag shell command execution originating from Cursor's process tree
  • Review repository contents before opening in Cursor, particularly the .cursor/ directory structure
  • Deploy application allowlisting to restrict unexpected executables launched by development tools

Monitoring Recommendations

  • Enable process creation logging to track child processes spawned by Cursor
  • Configure file integrity monitoring on development workstations to alert on .cursor/ directory modifications
  • Implement network monitoring for unusual outbound connections from development environments
  • Establish baseline behavior profiles for Cursor application to detect anomalous activity

How to Mitigate CVE-2025-61592

Immediate Actions Required

  • Update Cursor to patch version 2025.09.17-25b418f or later
  • Audit existing repositories for suspicious .cursor/cli.json and .cursor/rules/ files before opening
  • Review recently cloned repositories from untrusted sources for malicious configuration files
  • Consider restricting Cursor's ability to execute shell commands in organizational security policies

Patch Information

Anysphere has released patch 2025.09.17-25b418f to address this vulnerability. As of October 3, 2025, this fix is available as a patch but has not yet been incorporated into an official release version. Users should apply the patch immediately or monitor for the next release version that includes this fix. For the latest security information, consult the GitHub Security Advisory.

Workarounds

  • Manually inspect .cursor/ directories in cloned repositories before opening projects in Cursor
  • Remove or rename suspicious .cursor/cli.json and .cursor/rules/ files from untrusted repositories
  • Use sandboxed environments or containers when evaluating code from untrusted sources
  • Disable automatic project configuration loading if the option becomes available in settings
bash
# Configuration example - Inspect suspicious Cursor configuration files before opening repositories
# Check for potentially malicious configuration in cloned repositories
find /path/to/repository -name "cli.json" -path "*/.cursor/*" -exec cat {} \;
find /path/to/repository -name "*.mdc" -path "*/.cursor/rules/*" -exec cat {} \;

# Remove suspicious configuration files if found
rm -rf /path/to/repository/.cursor/

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

  • 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-829
  • 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