7.7high
Claude Code Research Preview has a Path Restriction Bypass which could allow unauthorized file access
- Severity
- 7.7high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 1.45% (higher than 74% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-pmw4-pwvc-3hx2
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| anthropics claude-code | < 0.2.111 | CVE List |
| @anthropic-ai/claude-code (npm) | before 0.2.111 | GitHub Advisory Database |
| anthropic claude_code | before 0.2.111 | NVD |
All scores
| GitHub_M | 7.7high 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 |
| GitHub | high 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 | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
Due to a path validation flaw using prefix matching instead of canonical path comparison, it was 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.
Users on standard Claude Code auto-update received this fix automatically after release. Current users of Claude Code are unaffected, as versions prior to 1.0.24 are deprecated and have been forced to update.
Thank you to Elad Beber (Cymulate) for reporting this issue!
NVD (es)
Claude Code es una herramienta de codificación agentica. En versiones anteriores a la 0.2.111, una falla de validación de rutas que utiliza la coincidencia de prefijos en lugar de la comparación de rutas canónicas permite eludir las restricciones de directorio y acceder a archivos fuera del CWD. Para que esta vulnerabilidad funcione, es necesario tener (o poder crear) un directorio con el mismo prefijo que el CWD y poder añadir contenido no confiable a una ventana de contexto de Claude Code. Esto se corrigió en la versión 0.2.111.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-54794 changed 2025-08-05 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pmw4-pwvc-3hx2 changed 2025-08-05 | CC-BY-4.0 |
| NVD | CVE-2025-54794 changed 2026-06-17 | Public domain |