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.
Published: 2026-02-03
Score: 7.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Command Injection / Remote Code Execution
Action: Patch Now
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Fri, 06 Feb 2026 20:30:00 +0000

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'}


Wed, 04 Feb 2026 12:15:00 +0000

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

Tue, 03 Feb 2026 22:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 03 Feb 2026 21:00:00 +0000

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'}


Subscriptions

Anthropic Claude Code
Anthropics Claude Code
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-02-03T21:19:42.986Z

Reserved: 2026-01-27T19:35:20.528Z

Link: CVE-2026-24887

cve-icon Vulnrichment

Updated: 2026-02-03T21:19:37.560Z

cve-icon NVD

Status : Analyzed

Published: 2026-02-03T21:16:13.433

Modified: 2026-02-06T20:19:47.760

Link: CVE-2026-24887

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-18T00:15:31Z

Weaknesses