Claude Code Vulnerable to Command Injection via Directory Change Bypasses Write Protection
No sign of exploitation. No public exploitation artifact known so far.
Claude Code before version 2.0.57 allowed attackers to bypass file write protection by using directory change commands to access sensitive folders like .claude, then creating or modifying files without permission. This risk applies if untrusted content is added to the tool's context.
CWE-20 and CWE-78 vulnerability: improper input validation of directory navigation commands combined with insufficient access control on write operations. An attacker with ability to inject untrusted content into Claude Code's context window can use 'cd' commands to navigate into protected directories and write arbitrary files, bypassing intended protection mechanisms. Patched in version 2.0.57.