CVE-2025-54794 Claude Code Research Preview has a Path Restriction Bypass which could allow unauthorized file access
HighCVSS 7.7
EPSS 1.5%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Anthropic claude code | < 0.2.111 | 0.2.111 | Fixed |
| anthropic-ai @anthropic-ai/claude-code(npm) | < 0.2.111 | 0.2.111 | Fixed |
| anthropics claude-code | = < 0.2.111 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| anthropic-ai @anthropic-ai/claude-code(npm) | < 0.2.111 | 0.2.111 |
| anthropics claude-code | = < 0.2.111 | No fix listed |
| Anthropic claude code | < 0.2.111 | 0.2.111 |
References
- https://github.com/anthropics/claude-code/security/advisories/GHSA-pmw4-pwvc-3hx2 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product