Claude Code
CVE-2026-25725
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeploy malicious code in Claude Code workspace
-
DeliveryExecute code inside sandbox environment
-
ExploitCreate .claude/settings.json with injected hooks
-
ExecutionRestart Claude Code instance
-
ImpactExecute persistent hooks with host privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V14 - Data Protection Trust boundary enforcement
|
| Exploitation Conditions | Claude Code version prior to 2.1.2 with .claude/settings.json file absent at startup. The parent .claude directory must be mounted as writable in the bubblewrap sandbox. No authentication required; exploitation occurs through malicious code execution within the sandbox environment. |
| Impact | CVSS 10.0 — maximum severity. Sandbox escape on developer workstations provides access to source code, credentials, SSH keys, and CI/CD pipeline secrets. |
| Exploit ScenarioDerived | Malicious code running within Claude Code's sandbox exploits the bubblewrap escape to access the host filesystem, steal SSH keys, API tokens, and source code from the developer's machine. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 12, 2026
Claude Code prior to version 2.1.2 has a CVSS 10.0 sandbox escape in the bubblewrap sandboxing mechanism, allowing code execution outside the intended sandbox boundary.
Earlier versions of this analysis (1)
CVSS 10.0 bubblewrap sandbox escape in Claude Code enables unrestricted code execution.
RemediationAI
Update Claude Code to 2.1.2+ immediately.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Claude Code < 2.1.2 has a CWE-501 trust boundary violation in its bubblewrap sandboxing mechanism that allows code executed within the sandbox to escape and run with the full privileges of the Claude Code process.
Know when Claude Code gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
Claude Code is an agentic coding tool. 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. This issue has been patched in version 2.1.2.
Executive ViewAI
Claude Code versions prior to 2.1.2 contain a critical sandbox escape vulnerability (CVSS 10.0) that could allow attackers to access sensitive configuration data and potentially execute arbitrary code on affected systems. Organizations using Claude Code must immediately assess deployment scope and implement containment measures, as no vendor patch is currently available.
Disable Claude Code until patch availability is confirmed; isolate affected systems from production networks and sensitive data; restrict Claude Code execution to dedicated, non-privileged user accounts; implement strict file system access controls to protect .claude/settings.json and related directories; monitor for unauthorized access attempts; consider air-gapping systems running vulnerable versions; implement application-level access controls to limit Claude Code functionality to essential operations only.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)GitHub Advisory
More in Claude Code
View allOS command injection in Anthropic Claude Code CLI and Agent SDK for Python allows remote, unauthenticated attackers to e
Code injection in Anthropic's Claude Code CLI before version 1.0.111 allows malicious code embedded in a project directo
OS command injection in Anthropic Claude Code CLI and Claude Agent SDK for Python allows local attackers to execute arbi
OS command injection in Anthropic Claude Code CLI and Claude Agent SDK for Python enables arbitrary command execution vi
Claude Code is an agentic coding tool. Prior to 1.0.93, Due to errors in parsing shell commands related to $IFS and shor
Claude Code prior to version 2.0.57 failed to properly validate MCP tool inputs, allowing malicious MCP servers to injec
Claude Code versions before 2.0.72 allow authenticated attackers to execute arbitrary commands by exploiting a command p
Claude Code is an agentic coding tool. Rated high severity (CVSS 8.7), this vulnerability is remotely exploitable, no au
Sandbox escape and code execution in Anthropic's Claude Code CLI (versions 2.1.38 through 2.1.162) lets a malicious repo
Claude Code is an agentic coding tool. Rated high severity (CVSS 7.7), this vulnerability is remotely exploitable, no au
Sandbox escape in Claude Code versions prior to 2.1.64 enables arbitrary file writes outside the workspace by exploiting
Claude Code is an agentic coding tool. Rated high severity (CVSS 7.7), this vulnerability is remotely exploitable, no au
GHSA-ff64-7w26-62rf
NVD
CVE.org
EPSS
VulDB
Exploit-DB