CVE-2026-25725 Details
Description
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.
A vulnerability in Claude Code prior to version 2.1.2 allows for a sandbox escape by improperly managing the .claude/settings.json file within its bubblewrap sandbox. When Claude Code is launched and this configuration file is absent, the sandbox fails to enforce proper protections. Although the parent directory is writable and .claude/settings.local.json is safeguarded with read-only restrictions, the settings.json file remains unprotected if missing. This oversight enables malicious code executed within the sandbox to generate the settings.json file and insert persistent commands, such as SessionStart hooks, which would run with host privileges upon restarting Claude Code. The issue has been resolved in version 2.1.2.
Users of Claude Code who utilize the standard auto-update feature have already received the patch in version 2.1.2. Those performing manual updates should upgrade to the latest version.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/anthropics/claude-code/security/advisories/GHSA-ff64-7w26-62rf | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-501 | Trust Boundary Violation | [email protected] |
| CWE-668 | Exposure of Resource to Wrong Sphere | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| anthropic claude code | < 2.1.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 9, 2026 | Initial Analysis | [email protected] |
| Feb 6, 2026 | New CVE Received | [email protected] |