Command injection in Claude Code - CVE-2025-66032

 

Command injection in Claude Code - CVE-2025-66032

Published: April 30, 2026


Vulnerability identifier: #VU128520
CSH Severity: High
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2025-66032
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
Claude Code
Software vendor:
Anthropic

Description

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to command injection in the shell command parsing and validation logic when processing shell commands related to $IFS and short CLI flags. A remote attacker can add untrusted content into a Claude Code context window to execute arbitrary code.

Reliable exploitation requires the ability to introduce untrusted content into a Claude Code context window.


Remediation

Install security update from vendor's website.

External links