CVE-2025-54794CWE-22

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

High · published August 5, 2025

CVSS v4.0
7.7
EPSS
1%
Percentile
71.4
In the wild
Unconfirmed
What it is

🚨 A sneaky path validation flaw in Claude Code versions below 0.2.111 could let attackers access restricted files with just the right directory prefix! ⚡ Think of it like a restaurant allowing diners to enter a specific private dining area based on a name tag—but the host doesn’t check if you’re sneaking in through a door marked with the same prefix as the main dining room. That means anyone could bypass restrictions and access areas they shouldn’t! This could lead to an unauthorized breach of sensitive files, giving an attacker the potential to read, modify, or even delete critical data. Imagine them rifling through the server's important documents, all while you thought they were safely locked away!

Put simply

Think of it like a restaurant allowing diners to enter a specific private dining area based on a name tag—but the host doesn’t check if you’re sneaking in through a door marked with the same prefix as the main dining room. That means anyone could bypass restrictions and access areas they shouldn’t! This vulnerability arises from an improper path validation mechanism, where prefix matching allows access to files outside the current working directory (CWD), instead of robust canonical path checks.

What to do

This could lead to an unauthorized breach of sensitive files, giving an attacker the potential to read, modify, or even delete critical data. Imagine them rifling through the server's important documents, all while you thought they were safely locked away! Upgrade Claude Code to version 0.2.111 or later immediately to patch this vulnerability. Additionally, review your directory configurations and ensure strict validation processes are in place to prevent unauthorized access. Don’t wait—act now! You’ve got this! Follow these steps, and you’ll be back to secure coding in no time! 🛡️

The record
Technical detail
CVSS v4.0
7.7 · HIGH
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
EPSS
0.01357 · 71.4th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2025-08-05T00:08Z
EPSS history
Timeline
  • 05 AUG 00:08Z
    Claude Code Research Preview has a Path Restriction Bypass which could allow unauthorized file access
    cvelistv5