Path traversal in Claude Code - CVE-2025-54794
Published: April 30, 2026
Claude Code
Anthropic
Description
The vulnerability allows a remote attacker to access unauthorized files outside the current working directory.
The vulnerability exists due to path traversal in path validation logic when processing file paths using prefix matching instead of canonical path comparison. A remote attacker can add untrusted content into a Claude Code context window to access unauthorized files outside the current working directory.
Successful exploitation depends on the presence of, or the ability to create, a directory with the same prefix as the current working directory.