CVE-2025-54794
HIGH 7.7CVSS 4.0Claude Code Research Preview has a Path Restriction Bypass which could allow unauthorized file access
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.
- Published
- 5 Aug 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-pmw4-pwvc-3hx2
- Sources
- NVDJSONOSV GHSA-pmw4-pwvc-3hx2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.7 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | anthropic | claude_codecpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:* |
< 0.2.111 | 0.2.111 |
| OSV | npm | @anthropic-ai/claude-code | < 0.2.111 | 0.2.111 |
References
- https://github.com/anthropics/claude-code/security/advisories/GHSA-pmw4-pwvc-3hx2 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-54794 · ADVISORY
- https://github.com/anthropics/claude-code · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 5 Aug 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 4 Aug 2025)