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

CVE-2025-54795: Anthropic Claude Code RCE Vulnerability

CVE-2025-54795 is a remote code execution flaw in Anthropic Claude Code that allows attackers to bypass confirmation prompts and execute untrusted commands. This article covers technical details, affected versions, and mitigations.

Published: March 11, 2026

CVE-2025-54795 Overview

CVE-2025-54795 is a command injection vulnerability (CWE-78) affecting Anthropic Claude Code, an agentic coding tool. In versions below 1.0.20, an error in command parsing makes it possible to bypass the Claude Code confirmation prompt to trigger execution of an untrusted command. Reliably exploiting this requires the ability to add untrusted content into a Claude Code context window. This vulnerability has been addressed in version 1.0.20.

Critical Impact

Successful exploitation allows attackers to bypass security confirmation prompts and execute arbitrary commands on the target system, potentially leading to complete system compromise, data exfiltration, or lateral movement within the network.

Affected Products

  • Anthropic Claude Code versions prior to 1.0.20
  • Claude Code Node.js implementations (cpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:*)

Discovery Timeline

  • 2025-08-05 - CVE-2025-54795 published to NVD
  • 2025-10-24 - Last updated in NVD database

Technical Details for CVE-2025-54795

Vulnerability Analysis

This vulnerability stems from improper command parsing logic within Claude Code's execution flow. When Claude Code processes user inputs and prepares to execute system commands, a confirmation prompt normally provides a security checkpoint requiring user approval before potentially dangerous operations proceed. However, a flaw in the parsing mechanism allows specially crafted input to circumvent this protective measure entirely.

The vulnerability requires an attacker to inject untrusted content into the Claude Code context window. In agentic coding environments, context windows can aggregate content from multiple sources including project files, documentation, external APIs, and user inputs. If any of these sources contain malicious payloads, the command parsing error can be triggered to bypass confirmation and execute arbitrary commands.

Root Cause

The root cause is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), commonly known as OS Command Injection. The command parsing logic fails to properly validate and sanitize command structures before determining whether user confirmation is required. This creates a gap where maliciously formatted commands can slip through the confirmation check while still being valid for execution.

Attack Vector

The attack vector is network-based, requiring user interaction. An attacker must first establish a way to inject untrusted content into the Claude Code context window. This could be achieved through:

  • Malicious content embedded in project files that Claude Code ingests
  • Poisoned external documentation or code snippets
  • Compromised API responses that feed into the context
  • Social engineering tactics to get users to paste malicious content

Once the malicious content reaches the context window, the parsing error allows commands to execute without the expected confirmation dialog, giving the attacker arbitrary command execution capabilities on the host system.

The vulnerability mechanism involves crafted input that exploits inconsistencies in how the confirmation prompt evaluates command safety versus how the execution engine interprets commands. For detailed technical analysis, refer to the GitHub Security Advisory GHSA-x56v-x2h6-7j34.

Detection Methods for CVE-2025-54795

Indicators of Compromise

  • Unexpected command executions occurring without corresponding confirmation prompt logs
  • Unusual process spawning from Claude Code parent processes
  • Presence of suspicious content within Claude Code context or session logs
  • Network connections or file system modifications that were not user-initiated

Detection Strategies

  • Monitor Claude Code process trees for child processes that indicate command execution without matching confirmation events
  • Implement logging on all Claude Code sessions to correlate user confirmations with actual command executions
  • Deploy endpoint detection rules to flag command execution patterns typical of injection attacks
  • Audit project files and external content sources for potentially malicious payloads

Monitoring Recommendations

  • Enable verbose logging in Claude Code installations to capture full context window contents
  • Set up alerts for version 1.0.19 and below installations within your environment
  • Monitor for behavioral anomalies such as commands executing with elevated privileges or accessing sensitive directories
  • Review and baseline normal Claude Code usage patterns to identify deviations

How to Mitigate CVE-2025-54795

Immediate Actions Required

  • Upgrade Claude Code to version 1.0.20 or later immediately
  • Audit recent Claude Code session logs for any signs of exploitation
  • Review all untrusted content sources that may feed into Claude Code context windows
  • Restrict Claude Code execution permissions using principle of least privilege

Patch Information

Anthropic has released version 1.0.20 which addresses this command parsing vulnerability. The fix ensures proper validation of command structures before bypass of confirmation prompts. Users should update to the latest version through their standard package management workflow. For additional details, consult the GitHub Security Advisory.

Workarounds

  • Limit Claude Code's ability to execute system commands by restricting its runtime environment
  • Manually review all external content before allowing it into Claude Code context windows
  • Run Claude Code in a sandboxed or containerized environment to limit blast radius of potential exploitation
  • Implement network segmentation to contain potential lateral movement if exploitation occurs
bash
# Upgrade Claude Code to patched version
npm update @anthropic/claude-code@1.0.20

# Verify installed version
npm list @anthropic/claude-code

# Alternative: Restrict command execution permissions in containerized environments
# Run Claude Code with limited shell access

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAnthropic Claude Code

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-39861: Anthropic Claude Code RCE Vulnerability

  • CVE-2025-66032: Anthropic Claude Code RCE Vulnerability

  • CVE-2025-65099: Anthropic Claude Code RCE Vulnerability

  • CVE-2025-58764: Anthropic Claude Code 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