Path Traversal in Anthropic Claude Code

CVE-2025-54794

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.

Vulnerability class: Path Traversal (Directory Traversal)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.

EPSS exploit prediction

EPSS: 0.014 (70.6th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 71st percentile — 70.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2025-54794: held from 0.009 to 0.014.

EPSS over last 30 days · oldest: 0.009 · newest: 0.014 · change: +0.005

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2025-54794?
CVE-2025-54794 is a critical-severity vulnerability in Anthropic Claude Code, classified under Path Traversal. CVSS score: 9.1/10. Published 2025-08-05.
How severe is CVE-2025-54794?
Critical severity. CVSS v3 base score is 9.1 out of 10.
Is CVE-2025-54794 known to be exploited?
8 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.