CVE-2026-24887 Claude Code has a Command Injection in find Command Bypasses User Approval Prompt

High 7.7 Published Updated

Attackers can bypass approval prompts to execute arbitrary commands via the find command in Claude Code, requiring untrusted content injection.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-24887?

CVE-2026-24887 is a high-severity command injection vulnerability in anthropics claude-code, published on 3 Feb 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Claude Code is an agentic coding tool. Prior to version 2.0.72, due to an error in command parsing, it was possible to bypass the Claude Code confirmation prompt to trigger execution of untrusted commands through the find command. Reliably exploiting this required the ability to add untrusted content into a Claude Code context window. This issue has been patched in version 2.0.72.

Weakness: CWE-94, CWE-78

Which versions are affected by CVE-2026-24887?

2 open source packages ship an affected version, including @anthropic-ai/claude-code. It affects 1 product.

PackageAffectedFixed in
@anthropic-ai/claude-code npmAll versions2.0.72
@anthropic-ai/claude-code npmAll versions2.0.72

Products include Anthropic Claude Code.

How do I fix CVE-2026-24887?

Upgrade @anthropic-ai/claude-code to 2.0.72 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-24887 being exploited?

There is no known exploitation of CVE-2026-24887 in the wild and no public exploit code.

Sources

Also known as GHSA-qgqw-h4xq-7w8w.

Is CVE-2026-24887 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free