banner logoJoin us at RSAC™ 2026 Conference, March 23–March 26 | North Expo, Booth N-5863Join us at RSAC™ 2026, March 23–March 26Learn More
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    • 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
    • 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-64755

CVE-2025-64755: Claude Code Privilege Escalation Flaw

CVE-2025-64755 is a privilege escalation vulnerability in Anthropic Claude Code that allows attackers to bypass read-only validation and write to arbitrary files. This article covers technical details, affected versions, and mitigation.

Published: March 11, 2026

CVE-2025-64755 Overview

CVE-2025-64755 is a command injection vulnerability affecting Anthropic Claude Code, an agentic coding tool. Prior to version 2.0.31, a flaw in sed command parsing allowed attackers to bypass the Claude Code read-only validation mechanism and write to arbitrary files on the host system. This vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), indicating a command injection weakness.

Critical Impact

Successful exploitation enables attackers to bypass security controls and achieve arbitrary file write capabilities on the host system, potentially leading to code execution, data tampering, or system compromise.

Affected Products

  • Anthropic Claude Code versions prior to 2.0.31
  • Claude Code for Node.js (all affected versions)

Discovery Timeline

  • 2025-11-21 - CVE-2025-64755 published to NVD
  • 2025-12-04 - Last updated in NVD database

Technical Details for CVE-2025-64755

Vulnerability Analysis

This vulnerability stems from improper handling of sed command parsing within Claude Code's security validation layer. The application implements a read-only validation mechanism designed to prevent write operations to the file system. However, due to flawed parsing logic when processing sed commands, attackers can craft malicious input that circumvents these protective controls.

The command injection vulnerability allows an attacker to escape the intended command context and inject arbitrary file write operations. Since Claude Code operates as an agentic coding tool with system access, the impact of bypassing its security boundaries is significant—attackers gain the ability to modify configuration files, inject malicious code, or compromise sensitive data on the host.

Root Cause

The root cause is an error in the sed command parsing implementation that fails to properly validate and sanitize user-controlled input before execution. The parsing logic does not correctly identify or neutralize special characters and command sequences that can be abused to break out of the read-only context. This allows attackers to inject commands that the validation layer does not recognize as write operations.

Attack Vector

The attack is network-based and requires user interaction. An attacker can exploit this vulnerability by providing specially crafted input to Claude Code that includes malicious sed command syntax. When the application processes this input through its flawed parser, the injected commands bypass the read-only validation and execute with write permissions on the host file system.

The exploitation flow involves:

  1. Attacker crafts input containing sed command injection payload
  2. Claude Code's parser fails to properly validate the malicious input
  3. The payload bypasses read-only validation checks
  4. Arbitrary file write operations execute on the host system

For detailed technical information about the vulnerability mechanism, see the GitHub Security Advisory.

Detection Methods for CVE-2025-64755

Indicators of Compromise

  • Unexpected file modifications in system directories or application paths
  • Unusual sed command execution patterns in process logs
  • Write operations to files that should be read-only under Claude Code's security model
  • Anomalous file system activity from Claude Code processes

Detection Strategies

  • Monitor Claude Code process activity for unexpected file write operations
  • Implement file integrity monitoring (FIM) on critical system and application files
  • Review application logs for malformed or suspicious sed command patterns
  • Deploy endpoint detection solutions capable of identifying command injection behavior

Monitoring Recommendations

  • Enable verbose logging for Claude Code operations where available
  • Establish baselines for normal Claude Code file system activity
  • Alert on file modifications outside expected working directories
  • Monitor for process spawning patterns indicative of command injection

How to Mitigate CVE-2025-64755

Immediate Actions Required

  • Upgrade Anthropic Claude Code to version 2.0.31 or later immediately
  • Audit systems running affected versions for signs of exploitation
  • Review file system for unauthorized modifications
  • Restrict network access to Claude Code instances until patched

Patch Information

Anthropic has addressed this vulnerability in Claude Code version 2.0.31. Organizations should update to this version or later to remediate the command injection flaw. The patch corrects the sed command parsing logic to properly validate input and enforce read-only restrictions.

For complete patch details and installation instructions, refer to the GitHub Security Advisory (GHSA-7mv8-j34q-vp7q).

Workarounds

  • Restrict Claude Code usage to trusted environments until the patch is applied
  • Implement network segmentation to limit exposure of affected systems
  • Use file system permissions to protect critical directories from write operations
  • Consider temporarily disabling Claude Code functionality that processes external input
bash
# Update Claude Code to patched version
npm update @anthropic/claude-code@2.0.31

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

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechAnthropic Claude Code

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.10%

  • 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-25725: Claude Code Privilege Escalation Flaw

  • CVE-2026-25723: Anthropic Claude Code Auth Bypass Flaw

  • CVE-2026-25724: Anthropic Claude Code Path Traversal

  • CVE-2025-59828: Claude Code Auth Bypass Vulnerability
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
  • English
  • 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