Skip to content
OpenAdvisories
High · 7.7 Public exploit CVE-2025-54794 EUVD-2025-23572GHSA-pmw4-pwvc-3hx2

Claude Code Research Preview has a Path Restriction Bypass which could allow unauthorized file access

Published Aug 5, 2025 · Updated Aug 5, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
anthropics claude-code < 0.2.111 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm @anthropic-ai/claude-code < 0.2.111 0.2.111 GHSA-pmw4-pwvc-3hx2

References