Vulnerabilities · 2025 · Anthropic
CVE-2025-54794
Anthropic Claude Code vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Claude Code. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Anthropic Claude Code runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
More vulnerabilities in Anthropic products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.