{"id":"CVE-2025-54794","published":"2025-08-05T00:08:13Z","modified":"2025-08-05T14:17:31Z","title":"Claude Code Research Preview has a Path Restriction Bypass which could allow unauthorized file access","vendor":"anthropics","product":"claude-code","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01119,"percentile":0.65791,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-pmw4-pwvc-3hx2","tags":["x_refsource_CONFIRM"]}],"priority":{"score":23.5,"factors":[{"name":"EPSS percentile","points":13.16},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.39}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-08-06","earliestUrl":"https://github.com/AdityaBhatt3010/CVE-2025-54794-Hijacking-Claude-AI-with-a-Prompt-Injection-The-Jailbreak-That-Talked-Back","repos":[{"name":"AdityaBhatt3010/CVE-2025-54794-Hijacking-Claude-AI-with-a-Prompt-Injection-The-Jailbreak-That-Talked-Back","url":"https://github.com/AdityaBhatt3010/CVE-2025-54794-Hijacking-Claude-AI-with-a-Prompt-Injection-The-Jailbreak-That-Talked-Back","stars":40,"created":"2025-08-06"}]},"first":{"date":"2025-08-06","source":"PoC-in-GitHub","url":"https://github.com/AdityaBhatt3010/CVE-2025-54794-Hijacking-Claude-AI-with-a-Prompt-Injection-The-Jailbreak-That-Talked-Back"},"provenance":"source"},"vendorSlug":"anthropics","affectedVersions":[{"vendor":"anthropics","product":"claude-code","versions":["< 0.2.111"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-08-05T14:17:19.558418Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@anthropic-ai/claude-code","vulnerableRanges":["<0.2.111"],"patched":["0.2.111"],"from":["GHSA-pmw4-pwvc-3hx2"],"provenance":"source"}],"summary":{"text":"The flaw is a path validation weakness in Anthropic's Claude Code agentic coding tool, which checks directory restrictions by prefix matching rather than by comparing canonical paths. An attacker who can plant or create a directory sharing the working directory's prefix, and who can get untrusted content into Claude Code's context window, can use this to read files outside the working directory, and user interaction is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:24:29Z"},"euvd":{"id":"EUVD-2025-23572","exploited":false,"provenance":"source"}}