RCE in Anthropic Claude Code
CVE-2026-25722
Claude Code is an agentic coding tool. Prior to version 2.0.57, Claude Code failed to properly validate directory changes when combined with write operations to protected folders. By using the cd command to navigate into sensitive directories like .claude, it was possible to bypass write protection and create or modify files without user confirmation. Reliably exploiting this required the ability to add untrusted content into a Claude Code context window. This issue has been patched in version 2.0.57.
Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H.
EPSS exploit prediction
EPSS: 0.006 (48.2th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 48th percentile — 48.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.006 · change: +0.003
Affected products
- Anthropic Claude Code
- Anthropics Claude-Code — versions < 2.0.57
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-25722?
- CVE-2026-25722 is a critical-severity vulnerability in Anthropic Claude Code, classified under Improper Input Validation. CVSS score: 9.1/10. Published 2026-02-06.
- How severe is CVE-2026-25722?
- Critical severity. CVSS v3 base score is 9.1 out of 10.