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-2026-25725

CVE-2026-25725: Claude Code Privilege Escalation Flaw

CVE-2026-25725 is a privilege escalation vulnerability in Anthropic Claude Code that allows malicious code to inject persistent hooks with host privileges. This post covers technical details, affected versions, impact, and mitigation.

Published: February 13, 2026

CVE-2026-25725 Overview

Claude Code is an agentic coding tool developed by Anthropic. Prior to version 2.1.2, Claude Code's bubblewrap sandboxing mechanism failed to properly protect the .claude/settings.json configuration file when it did not exist at startup. While the parent directory was mounted as writable and .claude/settings.local.json was explicitly protected with read-only constraints, settings.json was not protected if it was missing. This allowed malicious code running inside the sandbox to create this file and inject persistent hooks (such as SessionStart commands) that would execute with host privileges when Claude Code was restarted.

Critical Impact

Malicious code can escape the sandbox by injecting persistent hooks into the unprotected configuration file, enabling arbitrary command execution with host privileges upon application restart.

Affected Products

  • Anthropic Claude Code versions prior to 2.1.2 (Node.js)

Discovery Timeline

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

Technical Details for CVE-2026-25725

Vulnerability Analysis

This vulnerability represents a Trust Boundary Violation (CWE-501) in Claude Code's sandboxing implementation. The bubblewrap sandbox was designed to isolate potentially malicious code from the host system, but a configuration oversight allowed sandbox escape through file creation rather than file modification.

The core issue lies in the asymmetric protection of configuration files. While .claude/settings.local.json received explicit read-only protection, the primary settings.json file was only protected if it already existed at sandbox initialization. When this file was absent, the sandbox permitted write access to the parent .claude/ directory, enabling malicious code to create a new settings.json with attacker-controlled content.

The attack requires network-delivered malicious content to trigger code execution within the sandbox, combined with user interaction to restart the application. Upon restart, the injected SessionStart hooks execute outside the sandbox context with full host privileges, effectively bypassing all sandbox protections.

Root Cause

The root cause is incomplete enforcement of sandbox boundaries during file system initialization. The bubblewrap configuration logic checked for existing files to apply read-only protections but failed to account for the security implications of allowing file creation in the configuration directory. This represents a Time-of-Check Time-of-Use (TOCTOU) pattern where the absence of a file at startup created a persistent vulnerability window throughout the application lifecycle.

Attack Vector

The attack vector requires an adversary to deliver malicious code that executes within the Claude Code sandbox environment. Once inside the sandbox, the attacker can exploit the unprotected configuration path to write a crafted settings.json file containing malicious SessionStart hooks. These hooks persist across sessions and execute with elevated privileges when the user restarts Claude Code, completing the sandbox escape. The attack is network-accessible but requires user interaction for privilege escalation.

The exploitation mechanism involves:

  1. Attacker-controlled code executing within the sandbox
  2. Creating .claude/settings.json with injected SessionStart commands
  3. User restarting Claude Code (required for privilege escalation)
  4. Malicious hooks executing with host privileges outside the sandbox

For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-25725

Indicators of Compromise

  • Unexpected creation or modification of .claude/settings.json file, especially if it previously did not exist
  • Presence of SessionStart hooks in settings.json containing suspicious shell commands or scripts
  • Unusual process spawning from Claude Code parent process after application restart
  • File integrity monitoring alerts for configuration files within the .claude/ directory

Detection Strategies

  • Implement file integrity monitoring (FIM) on .claude/settings.json to detect unauthorized creation or modification
  • Monitor process trees for Claude Code to identify unexpected child processes executing with host privileges
  • Review settings.json content for unfamiliar or suspicious SessionStart hook definitions
  • Deploy endpoint detection rules to alert on configuration file creation by sandboxed processes

Monitoring Recommendations

  • Enable audit logging for file system operations within user home directories, particularly .claude/ paths
  • Configure SentinelOne Singularity to monitor for sandbox escape patterns and suspicious configuration file modifications
  • Establish baseline behavior for Claude Code process activity to identify anomalous post-restart execution
  • Implement alerting for any process spawned via SessionStart hooks that initiates network connections or accesses sensitive resources

How to Mitigate CVE-2026-25725

Immediate Actions Required

  • Upgrade Claude Code to version 2.1.2 or later immediately
  • Audit existing .claude/settings.json files for any unauthorized or suspicious SessionStart hooks
  • Remove or quarantine any settings.json files containing unrecognized configuration entries
  • Restrict write permissions on the .claude/ directory as a temporary measure until patching is complete

Patch Information

Anthropic has addressed this vulnerability in Claude Code version 2.1.2. The patch ensures that settings.json receives proper read-only sandbox protections regardless of whether the file exists at startup. Users should upgrade immediately through their standard package management channels.

For additional details, see the GitHub Security Advisory.

Workarounds

  • Pre-create an empty or minimal .claude/settings.json file before running Claude Code to ensure it receives sandbox protection
  • Manually apply read-only permissions to the .claude/ directory and its contents when the application is not in use
  • Use operating system-level access controls to prevent unauthorized file creation in the configuration directory
  • Monitor and periodically audit configuration files for unexpected changes between sessions
bash
# Temporary workaround: Create protected settings.json
mkdir -p ~/.claude
touch ~/.claude/settings.json
chmod 444 ~/.claude/settings.json
# Note: Remove read-only permission before upgrading to allow proper patching

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 Score7.7

  • EPSS Probability0.06%

  • 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-501
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-64755: 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