{"id":"CVE-2026-25725","published":"2026-02-06T17:53:42Z","modified":"2026-02-06T19:15:02Z","title":"Claude Code Has Sandbox Escape via Persistent Configuration Injection in settings.json","vendor":"anthropics","product":"claude-code","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00748,"percentile":0.51061,"provenance":"source"},"cwes":[{"id":"CWE-501","name":"Trust Boundary Violation"},{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"}],"references":[{"url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-ff64-7w26-62rf","tags":["x_refsource_CONFIRM"]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":10.21},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"anthropics","affectedVersions":[{"vendor":"anthropics","product":"claude-code","versions":["< 2.1.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-02-06T19:04:47.766753Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@anthropic-ai/claude-code","vulnerableRanges":["<2.1.2"],"patched":["2.1.2"],"from":["GHSA-ff64-7w26-62rf"],"provenance":"source"}],"summary":{"text":"Claude Code (anthropics/claude-code), an agentic coding tool, fails to protect the .claude/settings.json file in its bubblewrap sandbox when that file does not exist at startup, even though the parent directory is writable and settings.local.json is read-only. Code running inside the sandbox can create settings.json and inject persistent hooks, such as SessionStart commands, that execute with host privileges on the next restart; this requires only that the attacker can run code inside the sandbox and some user interaction, such as restarting Claude Code.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:29Z"},"euvd":{"id":"EUVD-2026-5616","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-21852","published":"2026-01-21","fixed":"2.0.65","kev":false},{"cve":"CVE-2026-24887","published":"2026-02-03","fixed":"2.0.72","kev":false},{"cve":"CVE-2026-24053","published":"2026-02-03","fixed":"2.0.74","kev":false,"link":{"from":"CVE-2026-24053","to":"CVE-2026-25725","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@anthropic-ai/claude-code","fromFixed":"2.0.74","toFixed":"2.1.2","daysApart":3}]}},{"cve":"CVE-2026-25725","published":"2026-02-06","fixed":"2.1.2","kev":false},{"cve":"CVE-2026-25724","published":"2026-02-06","fixed":"2.1.7","kev":false,"link":{"from":"CVE-2026-25725","to":"CVE-2026-25724","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@anthropic-ai/claude-code","fromFixed":"2.1.2","toFixed":"2.1.7","daysApart":0}]}},{"cve":"CVE-2026-33068","published":"2026-03-20","fixed":"2.1.53","kev":false},{"cve":"CVE-2026-39861","published":"2026-04-21","fixed":"2.1.64","kev":false}],"package":"npm:@anthropic-ai/claude-code"}}