PT-2026-6766 · Anthropic · Claude-Code
Edbr
·
Published
2026-02-06
·
Updated
2026-04-08
·
CVE-2026-25725
CVSS v3.1
10
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Claude Code versions prior to 2.1.2
Description
Claude Code, an agentic coding tool, had a flaw in its bubblewrap sandboxing mechanism. The mechanism did not adequately protect the
.claude/settings.json configuration file if it was absent at startup. The parent directory was writable, and .claude/settings.local.json was read-only, but .claude/settings.json lacked protection when missing. This allowed malicious code within the sandbox to create the file and inject persistent hooks, like SessionStart commands, which would then execute with host privileges upon restarting Claude Code. This issue affects container-based sandbox environments and was observed in similar tools from Google and OpenAI.Recommendations
Update to Claude Code version 2.1.2 or later.
Exploit
Fix
Exposure of Resource to Wrong Sphere
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Claude-Code