# CVE-2025-54794: Claude Code Research Preview has a Path Restriction Bypass which could allow unauthorized file access

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.45%, higher than 74% of CVEs (2026-12-01)
- Published: 2025-08-04T15:15:52.000Z
- Modified: 2026-06-17T09:40:43.057Z
- Also known as: GHSA-pmw4-pwvc-3hx2
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- anthropics claude-code: < 0.2.111
- @anthropic-ai/claude-code (npm): before 0.2.111
- anthropic claude_code: before 0.2.111

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## 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)

## Sources

- CVE List: [CVE-2025-54794](https://www.cve.org/CVERecord?id=CVE-2025-54794), CVE Terms of Use, modified 2025-08-05
- GitHub Advisory Database: [GHSA-pmw4-pwvc-3hx2](https://github.com/advisories/GHSA-pmw4-pwvc-3hx2), CC-BY-4.0, modified 2025-08-05
- NVD: [CVE-2025-54794](https://nvd.nist.gov/vuln/detail/CVE-2025-54794), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54794 · Whole record: https://cve.day/CVE-2025-54794.json · Rebuilt by cve.day 2026-11-25T22:59:02.042Z
