CVE-2026-25725
HIGH 7.7CVSS 4.0Claude Code has Sandbox Escape via Persistent Configuration Injection in settings.json
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.
- Published
- 6 Feb 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-501CWE-668
- Also known as
- GHSA-ff64-7w26-62rf
- Sources
- NVDJSONOSV GHSA-ff64-7w26-62rfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.7 | 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | anthropic | claude_codecpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:* |
< 2.1.2 | 2.1.2 |
| OSV | npm | @anthropic-ai/claude-code | < 2.1.2 | 2.1.2 |
References
- https://github.com/anthropics/claude-code/security/advisories/GHSA-ff64-7w26-62rf · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-25725 · ADVISORY
- https://github.com/anthropics/claude-code · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 6 Feb 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Feb 2026)