CVE-2025-54794 HIGH

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

Vendor Anthropics
Product claude-code
Weakness CWE-22 · Path traversal
Published August 5, 2025
Last update August 5, 2025

CVSS base score

7.7/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction
Confidentiality
Integrity

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

August 5, 2025 CVE published
August 5, 2025 Record updated