CVE-2026-25725: anthropics claude-code · Trust Boundary Violation
Affects anthropics claude-codeSource CVE Database V5
Not known to be exploited · CVSS 7.7 High : upgrade to 2.1.2 soon.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 44% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.1.2
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 6 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade claude-code and anthropics/claude-code to 2.1.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| anthropicsclaude-code | Affected
| Fixed in
|
GitHubanthropics/claude-codepkg:github/anthropics/claude-codeOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately upgrade Claude Code to version 2.1.2 or later to apply the official patch that properly secures the settings.json file. Until patching is complete, implement strict file system monitoring on the .claude directory to detect unauthorized creation or modification of settings.json and related configuration files. Employ host-based intrusion detection systems (HIDS) to alert on suspicious file changes and process executions linked to Claude Code. Restrict write permissions on the parent directory and configuration files to the minimum necessary users and processes. Consider running Claude Code within additional containment layers such as virtual machines or hardened containers to limit host impact if sandbox escape occurs. Educate users about the risks of restarting the application after suspicious activity and enforce policies to validate code and scripts executed within Claude Code. Finally, integrate vulnerability scanning and software composition analysis into the development pipeline to detect outdated versions proactively.
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.