gcdRadar
archive/Patch now/AIR-2025-0319
closedclosed 4 Aug 2025Patch now2 Disclosed vulnerabilityAI

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

Timeline · 2

  1. 4 Aug 2025CVE-2025-54794: Claude Code Research Preview has a Path Restriction Bypass which could allow unauthorized file access
  2. 5 Aug 2025CVE-2025-54794: Claude Code is an agentic coding tool.

Sources · 2

Advisories and databases

  1. 2025-08-04
  2. 2025-08-05
    CVE-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

AI role
Attack on AI
categories
Infrastructure vulnerabilityAgent hijack
severity
2 · Disclosed vulnerability
fix status
Fix status unknown
targets
Anthropic, Framework / tooling
dates
happened 4 Aug 2025 · first reported 4 Aug 2025
origin
GitHub Advisory Database
Vulnerability 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

  1. closed8.7
    Claude 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
  2. closed8.8
    Claude 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
  3. closed9.1
    Claude 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
  4. closed
    AI
  5. closed7.1
    Claude 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
  6. closed9.3
    AI