# CVE-2026-25725: Claude Code Has Sandbox Escape via Persistent Configuration Injection in settings.json

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2026-02-06T17:53:42.543Z
- Modified: 2026-06-17T10:25:06.760Z
- Also known as: GHSA-ff64-7w26-62rf
- Weaknesses: CWE-501, CWE-668
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- anthropics claude-code: < 2.1.2
- @anthropic-ai/claude-code (npm): before 2.1.2
- anthropic claude_code: before 2.1.2

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## 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)

## Sources

- CVE List: [CVE-2026-25725](https://www.cve.org/CVERecord?id=CVE-2026-25725), CVE Terms of Use, modified 2026-02-06
- GitHub Advisory Database: [GHSA-ff64-7w26-62rf](https://github.com/advisories/GHSA-ff64-7w26-62rf), CC-BY-4.0, modified 2026-02-06
- NVD: [CVE-2026-25725](https://nvd.nist.gov/vuln/detail/CVE-2026-25725), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-25725 · Whole record: https://cve.day/CVE-2026-25725.json · Rebuilt by cve.day 2026-11-25T22:59:13.562Z
