CVE-2025-54794: Claude Code Path Restriction Bypass Vulnerability
Claude Code
A path validation flaw in Claude Code allows unauthorized file access outside the current working directory using prefix matching. Exploitation requires injecting untrusted content into the context window alongside a directory with a matching prefix.
disclosed CVENo confirmed exploitation, so this record is tracked as a disclosed vulnerability and not counted as an incident. It moves into the counts if CISA or the vendor confirms exploitation. Why
- CVSS
- 7.7
- EPSS
- 0.01 · top 27% · 2026-11-13
- fix status
- Fix status unknown
- first report
- 4 Aug 2025
- last update
- 5 Aug 2025
- CVE ids
Timeline · 2
Sources · 2
Advisories and databases
- 2025-08-04CVE-2025-54794: Claude Code Research Preview has a Path Restriction Bypass which could allow unauthorized file accessGitHub Advisory Database · github.com/advisories/GHSA-pmw4-pwvc-3hx2
- 2025-08-05CVE-2025-54794: Claude Code is an agentic coding tool.NVD · nvd.nist.gov/vuln/detail/CVE-2025-54794
Titles and links belong to their publishers. The summary above is written by gcdRadar in its own words; data is CC BY-SA 4.0.
Classification
- lane
- Patch now
- AI role
- Attack on AI
- categories
- Infrastructure vulnerabilityAgent hijack
- severity
- 2 · Disclosed vulnerability
- fix status
- Fix status unknown
- targets
- Anthropic, Framework / tooling
- owasp llm top 10
- LLM03:2025 Supply ChainLLM06:2025 Excessive Agency
- mitre atlas
- AML.T0053 AI Agent Tool Invocation
- dates
- happened 4 Aug 2025 · first reported 4 Aug 2025
- origin
- GitHub Advisory DatabaseVulnerability record from NVD / the GitHub Advisory Database. This product uses the NVD API but is not endorsed or certified by the NVD.
- record
- confidence 0.95 · created 2026-10-18 07:00Z · updated 2026-10-18 10:04Z
Lane, AI role, categories and severity come from the classifier; the OWASP and ATLAS rows are derived from the categories. How these are assigned
Copy a brief
This record as a short Markdown brief, for a ticket, a chat or a coding agent.
the brief as text
# CVE-2025-54794: Claude Code Path Restriction Bypass Vulnerability https://gcdradar.vercel.app/incidents/cve-2025-54794-claude-code-path-restriction-bypass-vulnerabi · AIR-2025-0319 · closed 2025-08-04 - Lane: Patch now - Severity: 2 (Disclosed vulnerability) - Fix status: Fix status unknown - First reported: 2025-08-04 - AI role: Attack on AI - Products: Claude Code - CVE ids: CVE-2025-54794 - CVSS: 7.7 ## Summary A path validation flaw in Claude Code allows unauthorized file access outside the current working directory using prefix matching. Exploitation requires injecting untrusted content into the context window alongside a directory with a matching prefix. ## What to do No action recorded; read the sources below and the vendor's advisory. ## Latest updates - 2025-08-05: CVE-2025-54794: Claude Code is an agentic coding tool. (https://nvd.nist.gov/vuln/detail/CVE-2025-54794) - 2025-08-04: CVE-2025-54794: Claude Code Research Preview has a Path Restriction Bypass which could allow unauthorized file access (https://github.com/advisories/GHSA-pmw4-pwvc-3hx2) ## Sources - 2025-08-04 GitHub Advisory Database: CVE-2025-54794: Claude Code Research Preview has a Path Restriction Bypass which could allow unauthorized file access https://github.com/advisories/GHSA-pmw4-pwvc-3hx2 - 2025-08-05 NVD: CVE-2025-54794: Claude Code is an agentic coding tool. https://nvd.nist.gov/vuln/detail/CVE-2025-54794 Verify against the vendor's advisory before changing production. Data CC BY-SA 4.0, https://gcdradar.vercel.app.
Related
- closed8.7Claude Code + SDKs CVE-2025-54795: Claude Code Command Prompt Execution Bypass
Patch now · Disclosed · since 4 Aug 2025 · updated 5 Aug 2025 · CVE-2025-54795
AI - closed8.8Claude Code + SDKs CVE-2025-52882: Claude Code improper authorization via websocket connections
Patch now · Disclosed · since 23 Jun 2025 · updated 24 Jun 2025 · CVE-2025-52882
AI - closed9.1Claude Code + SDKs CVE-2026-54316: Claude Code Out-of-Band Data Exfiltration via WebFetch
Patch now · Disclosed · since 17 Jun 2026 · updated 23 Jun 2026 · CVE-2026-54316
AI - closedClaude Code + SDKs Claude Code Arbitrary Code Execution via Insufficient Startup Warning
Patch now · Disclosed · since 3 Sep 2025
AI - closed7.1Claude Code + SDKs CVE-2025-55284: Claude Code Allowlist Bypass Enables Unauthorized File Read
Patch now · Disclosed · since 18 Aug 2025 · updated 18 Aug 2025 · CVE-2025-55284
AI - closed9.3MCP servers & tools CVE-2025-34072: Data exfiltration vulnerability in Anthropic Slack MCP Server
Patch now · Disclosed · since 2 Jul 2025 · CVE-2025-34072
AI