CVE-2026-24053: high-severity vulnerability in anthropics claude-code
Cluade Code has a Path Restriction Bypass via ZSH Clobber which Allows Arbitrary File Writes
Published
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
Claude Code had a flaw that allowed writing files outside allowed directories by using special ZSH syntax, bypassing safety checks. This could let attackers modify system files without the user knowing.
The vulnerability exists in Claude Code's Bash command validation logic, which fails to properly parse ZSH clobber operators, allowing path traversal (CWE-22) and potential stored XSS (CWE-79) through arbitrary file writes. Exploitation requires ZSH environment and malicious input injected into the Claude Code context; impact includes unauthorized file modification outside restricted directories without user prompts.
In the same product, most dangerous first.