CVE 7.7 HIGH

Claude Code Research Preview has a Path Restriction Bypass which could allow unauthorized file access_CVE-2025-54794

7.7 / 10
HIGH
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

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.

Basic Information

ID CVE-2025-54794
Source GitHub_M
Published Aug 5, 2025 at 00:08
Modified Aug 5, 2025 at 14:17

Affected Product

Vendor anthropics
Product claude-code
Version < 0.2.111
Affected Versions anthropics claude-code < 0.2.111

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.