Skip to content
CriticalVulnerabilityLLM-specific

CVE-2026-25725: Claude Code bubblewrap sandbox escape by creating settings.json

Identifier
CVE-2026-25725
Published
Record updated
View JSON
Affected
  • @anthropic-ai/claude-code < 2.1.2
Fixed in
2.1.2
  • released January 8, 2026, 29 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

Claude Code, an agentic coding tool, prior to version 2.1.2 had a flaw in its bubblewrap sandboxing mechanism. When .claude/settings.json did not exist at startup, it was left unprotected, even though the parent directory was writable and .claude/settings.local.json was read-only. Code running inside the sandbox could create this file and inject persistent hooks, such as SessionStart commands, that ran with host privileges when Claude Code restarted.

Mitigation

Patched in version 2.1.2.