CVE-2026-24887

Claude Code has a Command Injection in find Command Bypasses User Approval Prompt

Published Feb 3, 2026 CVSS 4.0 · 7.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Claude Code contains an error in command parsing that allows an attacker to bypass the confirmation prompt and execute arbitrary shell commands via the find command. The flaw supports command injection (CWE‑78) and dynamic code generation (CWE‑94). If an attacker can insert untrusted content into a Claude Code context window, they can trigger arbitrary code execution on the host running the tool, compromising confidentiality, integrity, and availability of the system.

Affected Systems

Anthropic Claude Code up to version 2.0.72 is affected. Versions 2.0.72 and later contain the fix. The product runs on Node.js environments.

Risk and Exploitability

The CVSS base score of 7.7 indicates a medium‑to‑high severity vulnerability. The EPSS score is below 1%, suggesting a low likelihood of exploitation in the wild. The issue is not listed in CISA’s KEV catalog. Exploitation requires the attacker to introduce malicious content into the agent’s context window; once injected, the command injection can be triggered without user confirmation. Attackers with such access could run arbitrary commands, making this a high‑consequence flaw for systems that rely on anonymous or untrusted input.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Anthropic Claude Code to version 2.0.72 or later to apply the official fix.
  • Restrict the ability to add untrusted content into Claude Code’s context window; implement input validation to block potentially malicious commands.
  • Monitor for execution of unexpected shell commands and review logs for suspicious activity.

Generated by OpenCVE AI on April 18, 2026 at 00:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-qgqw-h4xq-7w8w Claude Code has a Command Injection in find Command Bypasses User Approval Prompt
History
Type Values Removed Values Added
First Time appeared Anthropic
Anthropic claude Code
CPEs cpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:*
Vendors & Products Anthropic
Anthropic claude Code
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Anthropics
Anthropics claude Code
Vendors & Products Anthropics
Anthropics claude Code
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Claude Code has a Command Injection in find Command Bypasses User Approval Prompt
Weaknesses CWE-78
CWE-94
References
Metrics cvssV4_0

{'score': 7.7, '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'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 3, 2026, 9:19 PM
Reserved
Jan 27, 2026, 7:35 PM
Status
Analyzed
Published
Feb 3, 2026, 9:16 PM
Modified
Jun 17, 2026, 10:23 AM