Skip to content
CriticalVulnerabilityLLM-specific

CVE-2025-54794: Claude Code path validation flaw exposes files outside working directory

Identifier
CVE-2025-54794
Published
Record updated
View JSON
Affected
  • @anthropic-ai/claude-code < 0.2.111
Fixed in
0.2.111
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.4%

Summary

CVE-2025-54794 affects Claude Code versions below 0.2.111. A path validation flaw compares path prefixes instead of canonical paths, which lets an attacker bypass directory restrictions and access files outside the CWD. Exploitation requires a directory sharing the CWD's prefix that exists or can be created, plus the ability to add untrusted content into a Claude Code context window. GitHub, Inc. rates it CVSS 4.0 7.7 (High).

Mitigation

Fixed in version 0.2.111.