CVE-2025-54794

Critical

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.

SeverityCritical
CVSS9.1
Exploit probability—
ProductAnthropic Claude Code
PublishedAug 5, 2025
First seenAug 5, 2025

How to fix

Update
  • anthropic claude_code0.2.111 or later
  • @anthropic-ai/claude-code0.2.111 or later

Affected products

ProductAffected versionsFixed in
anthropic claude_codev < 0.2.1110.2.111
@anthropic-ai/claude-codenpmv < 0.2.1110.2.111

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.