Path traversal in Claude Code - CVE-2026-24053
Published: April 30, 2026
Claude Code
Anthropic
Description
The vulnerability allows a remote attacker to write arbitrary files outside the restricted directory.
The vulnerability exists due to improper limitation of a pathname to a restricted directory in Bash command validation for ZSH clobber syntax when parsing untrusted content in a Claude Code context window. A remote attacker can supply crafted content that bypasses directory restrictions to write arbitrary files outside the restricted directory.
Exploitation requires the user to use ZSH, and untrusted content must be added into a Claude Code context window.