Critical severity · published Aug 5, 2025
CVE-2025-54794
Claude Code Research Preview has a Path Restriction Bypass which could allow unauthorized file access
9.1
CVSS
1.4%
EPSS
No
On KEV
Description
Claude Code is an agentic coding tool. In versions below 0.2.111, a path validation flaw using prefix matching instead of canonical path comparison, makes it possible to bypass directory restrictions and access files outside the CWD. Successful exploitation depends on the presence of (or ability to create) a directory with the same prefix as the CWD and the ability to add untrusted content into a Claude Code context window. This is fixed in version 0.2.111.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.4% · higher than 72% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CL
claude-code · anthropics
< 0.2.111 · source: vendor
CC
Claude Code · Anthropic
before 0.2.111 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-54794
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-54794
Vendor Advisory
https://github.com/anthropics/claude-code/security/advisories/GHSA-pmw4-pwvc-3hx2
More from claude-code
10.0
CVE-2026-39861
Claude Code: Sandbox Escape via Symlink Following Allows Arbitrary File Write Outside Workspace
10.0
CVE-2026-25725
Claude Code Has Sandbox Escape via Persistent Configuration Injection in settings.json
9.8
CVE-2025-66032
Claude Code Command Validation Bypass Allows Arbitrary Code Execution
9.8
CVE-2025-64755
@anthropic-ai/claude-code has Sed Command Validation Bypass that Allows Arbitrary File Writes
9.8
CVE-2025-65099
Claude Code vulnerable to command execution prior to startup trust dialog
