CVE-2026-25722Improper Input Validation in Claude-code

Severity
7.7HIGHNVD
EPSS
0.1%
top 65.94%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedFeb 6

Description

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

CVSS vector

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

Affected Packages3 packages

NVDanthropic/claude_code< 2.0.57
CVEListV5anthropics/claude-code< 2.0.57

🔴Vulnerability Details

2
OSV
Claude Code Vulnerable to Command Injection via Directory Change Bypasses Write Protection2026-02-06
GHSA
Claude Code Vulnerable to Command Injection via Directory Change Bypasses Write Protection2026-02-06

🕵️Threat Intelligence

9
Wiz
CVE-2026-25723 Impact, Exploitability, and Mitigation Steps | Wiz
Wiz
CVE-2026-24053 Impact, Exploitability, and Mitigation Steps | Wiz
Wiz
CVE-2026-33068 Impact, Exploitability, and Mitigation Steps | Wiz
Wiz
CVE-2026-25722 Impact, Exploitability, and Mitigation Steps | Wiz
Wiz
CVE-2026-24052 Impact, Exploitability, and Mitigation Steps | Wiz