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

CVE Details

Basic Information

Title Claude Code Research Preview has a Path Restriction Bypass which could allow unauthorized file access
Type cve
Published 2025-08-05T00:08:13.864Z
Modified 2025-08-05T00:08:13.864Z

Product Information

Vendor anthropics
Product claude-code
Version < 0.2.111

CVSS Information

Base Score 7.7 (HIGH)
Attack 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

AI Analysis

AI Description A path validation flaw in Claude Code allows attackers to bypass directory restrictions and access files outside the current working directory by exploiting a prefix matching vulnerability.
AI Severity Medium
AI Vendor Anthropics
AI Product Claude Code
AI Version Versions below 0.2.111

Affected Products

  • anthropics claude-code < 0.2.111

Additional Information

CWE List CWE-22
Source 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.

💭 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.