Skip to content
CriticalVulnerabilityLLM-specific

CVE-2026-35022: Claude Code CLI and Claude Agent SDK OS command injection flaw

Identifier
CVE-2026-35022
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.

Summary

Anthropic's Claude Code CLI and Claude Agent SDK run authentication helper configuration values through a shell (shell=true) without input validation. An attacker who can influence authentication settings, such as apiKeyHelper, awsAuthRefresh, awsCredentialExport, or gcpAuthRefresh, can inject shell metacharacters. This executes arbitrary commands with the privileges of the user or automation environment, enabling credential theft and environment variable exfiltration.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.