Skip to main content
CVE-2025-54794VulnerabilityPublished

CVE-2025-54794: anthropics claude-code · Path Traversal

Affects anthropics claude-codeSource CVE Database V5

0

Not known to be exploited · CVSS 7.7 High : upgrade to 0.2.111 soon.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 4.0 base score
7.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.3% chance of exploitation in 30 days – higher than 71% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.2.111
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Aug 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Upgrade anthropics claude-code to 0.2.111.

Affected software

ProductAffectedFixed in
anthropics claude-codeAffected
  • <0.2.111
Fixed in
  • 0.2.111

AI-suggested

European organizations should immediately upgrade anthropics claude-code to version 0.2.111 or later to remediate this vulnerability. Until upgrade is possible, restrict access to claude-code context windows to trusted users only and implement strict input validation and sanitization to prevent injection of malicious path content. Employ runtime monitoring to detect anomalous file access patterns indicative of path traversal attempts. Network segmentation and least privilege principles should be enforced to limit the impact of any potential exploitation. Additionally, organizations should audit existing deployments for unauthorized directory creation with prefixes matching the CWD and remove or isolate such directories. Security teams should also educate developers and users on the risks of injecting untrusted content into coding tools. Finally, integrating file integrity monitoring and endpoint detection can help identify exploitation attempts early.

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.

References

Community reviews

Loading reviews…