CVE-2026-25725
CVE-2026-25725 is a critical-severity vulnerability in Anthropic Claude Code with a CVSS 3.x base score of 10.0. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-501.
Key facts
- Severity: Critical (CVSS 3.x base score 10.0)
- CVSS v4: 7.7
- EPSS exploit prediction: 0% (34th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-5616
- Weakness: CWE-501
- Affected product: Anthropic Claude Code
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2026-25725?
- 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.
- How severe is CVE-2026-25725?
- CVE-2026-25725 has a CVSS 3.x base score of 10.0, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2026-25725 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (34th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-25725?
- CVE-2026-25725 affects Anthropic Claude Code. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-25725?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- Does CVE-2026-25725 have an EU (EUVD) identifier?
- Yes. CVE-2026-25725 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-5616.
- When was CVE-2026-25725 published?
- CVE-2026-25725 was published on 2026-02-06 and last updated on 2026-06-17.
References
Affected products (1)
- cpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:*
More vulnerabilities in Anthropic Claude Code
- CVE-2026-39861 — Critical (CVSS 10.0): Claude Code is an agentic coding tool. Prior to version 2.1.64, Claude Code's sandbox did not prevent sandboxed…
- CVE-2025-66032 — Critical (CVSS 9.8): Claude Code is an agentic coding tool. Prior to 1.0.93, Due to errors in parsing shell commands related to $IFS and…
- CVE-2025-64755 — Critical (CVSS 9.8): Claude Code is an agentic coding tool. Prior to version 2.0.31, due to an error in sed command parsing, it was possible…
- CVE-2025-65099 — Critical (CVSS 9.8): Claude Code is an agentic coding tool. Prior to version 1.0.39, when running on a machine with Yarn 3.0 or above,…
- CVE-2025-59828 — Critical (CVSS 9.8): Claude Code is an agentic coding tool. Prior to Claude Code version 1.0.39, when using Claude Code with Yarn versions…
- CVE-2025-59041 — Critical (CVSS 9.8): Claude Code is an agentic coding tool. At startup, Claude Code executed a command templated in with `git config…
All CVEs affecting Anthropic Claude Code →
Other CWE-501 vulnerabilities
- CVE-2025-48938 — Critical (CVSS 9.8): go-gh is a collection of Go modules to make authoring GitHub CLI extensions easier. A security vulnerability has been…
- CVE-2024-49050 — High (CVSS 8.8): Visual Studio Code Python Extension Remote Code Execution Vulnerability
- CVE-2023-28597 — High (CVSS 8.3): Zoom clients prior to 5.13.5 contain an improper trust boundary implementation vulnerability. If a victim saves a local…
- CVE-2024-23682 — High (CVSS 8.2): Artemis Java Test Sandbox versions before 1.8.0 are vulnerable to a sandbox escape when an attacker includes class…
- CVE-2026-33828 — High (CVSS 7.8): Trust boundary violation in Windows Attestation allows an authorized attacker to elevate privileges locally.
- CVE-2025-49714 — High (CVSS 7.8): Trust boundary violation in Visual Studio Code - Python extension allows an unauthorized attacker to execute code…