OS Command Injection Vulnerability in Anthropic Claude Code CLI and Agent SDK
CVE-2026-35022
Key Information:
- Vendor
Anthropic
- Vendor
- CVE Published:
- 6 April 2026
Badges
What is CVE-2026-35022?
The Anthropic Claude Code CLI and Claude Agent SDK are susceptible to an OS command injection vulnerability in the authentication helper execution. This flaw arises from the lack of input validation in the execution of helper configuration values, allowing an attacker with the ability to manipulate authentication parameters, such as apiKeyHelper and awsAuthRefresh, to inject shell metacharacters. This can lead to the execution of arbitrary commands at the user or automation environment's privilege level, posing significant risks of credential theft and environment variable exfiltration.
Affected Version(s)
Claude Agent SDK for Python 0 <= 0.1.55
Claude Code 0 <= 2.1.91
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
CVSS V4
Timeline
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
Vulnerability published
Vulnerability Reserved
