A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
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
      Digital Forensics, IRR & Breach Readiness
    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-2026-25722

CVE-2026-25722: Anthropic Claude Code Path Traversal Flaw

CVE-2026-25722 is a path traversal vulnerability in Anthropic Claude Code that allows attackers to bypass write protection in sensitive directories. This article covers the technical details, affected versions, and mitigation steps.

Published: February 13, 2026

CVE-2026-25722 Overview

Claude Code is an agentic coding tool developed by Anthropic. Prior to version 2.0.57, a directory traversal vulnerability existed where Claude Code failed to properly validate directory changes when combined with write operations to protected folders. By using the cd command to navigate into sensitive directories like .claude, attackers could bypass write protection mechanisms and create or modify files without user confirmation.

Critical Impact

Successful exploitation allows unauthorized file creation and modification in protected directories, potentially leading to configuration tampering, credential theft, or arbitrary code execution through manipulated configuration files.

Affected Products

  • Anthropic Claude Code versions prior to 2.0.57
  • Claude Code for Node.js (all platforms)

Discovery Timeline

  • 2026-02-06 - CVE-2026-25722 published to NVD
  • 2026-02-09 - Last updated in NVD database

Technical Details for CVE-2026-25722

Vulnerability Analysis

This vulnerability is classified as CWE-20 (Improper Input Validation) and represents a critical flaw in the access control implementation of Claude Code's file system operations. The tool's write protection mechanism was designed to prevent modifications to sensitive directories such as .claude without explicit user confirmation. However, the validation logic failed to account for scenarios where directory navigation commands were chained with write operations.

The attack requires the ability to inject untrusted content into a Claude Code context window, which could occur through various vectors including malicious repository content, compromised project files, or social engineering attacks targeting developers using the tool. Once malicious content is present in the context, an attacker can craft requests that first navigate to a protected directory and then perform write operations that bypass the confirmation prompts.

Root Cause

The root cause lies in the improper validation of directory state during write operations. When the cd command was used to change the working directory, the write protection check did not re-evaluate the current path context before allowing file operations. This created a race condition between directory traversal and the security boundary enforcement, allowing attackers to circumvent the intended access controls.

The validation logic was implemented at the command level rather than at the file system operation level, meaning that sequential commands could exploit the gap between path resolution and permission checks.

Attack Vector

The attack vector is network-based and requires user interaction. An attacker must first achieve the ability to influence the content processed by Claude Code, typically through:

  1. Crafted repository content containing malicious prompts or instructions
  2. Compromised dependencies or project configuration files
  3. Social engineering to convince a user to process attacker-controlled content

Once untrusted content is present in the context window, the attacker can instruct the tool to navigate into protected directories using cd commands and subsequently perform write operations. The .claude directory is particularly sensitive as it may contain configuration files, credentials, or other security-relevant data that controls the behavior of the Claude Code tool itself.

The vulnerability mechanism involves chaining directory navigation with write operations in a way that bypasses the confirmation dialog. When the tool evaluates whether a write operation requires user confirmation, it fails to properly account for the current directory state after navigation commands have been executed.

Detection Methods for CVE-2026-25722

Indicators of Compromise

  • Unexpected files appearing in .claude or other protected directories
  • Modified configuration files in Claude Code installation directories without user action
  • Audit logs showing write operations to protected paths following directory navigation commands
  • Unusual Claude Code session activity involving sensitive directory access

Detection Strategies

  • Monitor file system events for write operations targeting .claude directories and similar protected paths
  • Implement application-level logging to track command sequences involving cd followed by file writes
  • Review Claude Code audit logs for suspicious patterns of directory traversal combined with file operations
  • Use endpoint detection solutions to alert on unauthorized modifications to development tool configurations

Monitoring Recommendations

  • Enable verbose logging in Claude Code to capture detailed command execution sequences
  • Configure file integrity monitoring (FIM) on sensitive Claude Code directories
  • Implement user behavior analytics to detect anomalous patterns in tool usage
  • Review context window contents for signs of prompt injection or malicious instructions

How to Mitigate CVE-2026-25722

Immediate Actions Required

  • Upgrade Anthropic Claude Code to version 2.0.57 or later immediately
  • Audit .claude directories and protected folders for unauthorized modifications
  • Review recent Claude Code sessions for signs of exploitation
  • Validate the integrity of any configuration files that may have been compromised

Patch Information

Anthropic has released version 2.0.57 of Claude Code which addresses this vulnerability. The patch implements proper path validation at the file system operation level, ensuring that write protection checks are performed based on the actual target path regardless of the current working directory state. Users should update their Claude Code installation immediately.

For detailed information about the security advisory and patch, refer to the GitHub Security Advisory GHSA-66q4-vfjg-2qhh.

Workarounds

  • Restrict Claude Code usage to trusted repositories and content sources until patching is complete
  • Implement network segmentation to limit exposure of development environments
  • Use containerized or sandboxed environments when working with untrusted content
  • Manually review and approve all file operations in sensitive directories
bash
# Upgrade Claude Code to patched version
npm update @anthropic-ai/claude-code@2.0.57

# Verify installed version
claude-code --version

# Audit .claude directory for unexpected modifications
ls -la ~/.claude/
git -C ~/.claude status

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechClaude Code

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.15%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/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-20
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-24053: Claude Code Path Traversal Vulnerability

  • CVE-2026-24052: Claude Code SSRF Vulnerability

  • CVE-2026-24887: Claude Code RCE Vulnerability

  • CVE-2026-21852: Claude Code Information Disclosure Flaw
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