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

Configuration 1 (hide)

cpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:*

History

09 Feb 2026, 14:51

Type Values Removed Values Added
References () https://github.com/anthropics/claude-code/security/advisories/GHSA-66q4-vfjg-2qhh - () https://github.com/anthropics/claude-code/security/advisories/GHSA-66q4-vfjg-2qhh - Vendor Advisory
CPE cpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:*
First Time Anthropic
Anthropic claude Code
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.1

06 Feb 2026, 18:15

Type Values Removed Values Added
New CVE

Information

Published : 2026-02-06 18:15

Updated : 2026-02-09 14:51


NVD link : CVE-2026-25722

Mitre link : CVE-2026-25722

CVE.ORG link : CVE-2026-25722


JSON object : View

Products Affected

anthropic

  • claude_code
CWE
CWE-20

Improper Input Validation

CWE-78

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')