Skip to content
CriticalVulnerabilityLLM-specific

CVE-2026-25722: Claude Code write protection bypass via cd into protected directories

Identifier
CVE-2026-25722
Published
Record updated
View JSON
Affected
  • @anthropic-ai/claude-code < 2.0.57
Fixed in
2.0.57
  • released December 2, 2025, 65 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

Claude Code, an agentic coding tool, failed to properly validate directory changes before version 2.0.57. Using the cd command to enter protected directories such as .claude let an attacker bypass write protection and create or modify files without user confirmation. Reliable exploitation required the ability to add untrusted content into the Claude Code context window.

Mitigation

This issue has been patched in version 2.0.57.