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.
Cite this page
CVE-2025-54794. CVEDatabase.com. Retrieved 1 May 2026. https://cvedatabase.com/cve/CVE-2025-54794
Use CWE-22, Anthropic vendor hub and Claude Code product page to widen CVE-2025-54794 into its surrounding weakness, vendor, and product context.
Compare it with CVE-2026-35022, CVE-2026-35020 and CVE-2026-35021 for nearby disclosures in the same product family.