CriticalVulnerabilityLLM-specific
CVE-2026-35022: Claude Code CLI and Claude Agent SDK OS command injection flaw
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-35022
- Published
- Record updated
- 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.
Related items
- HighGHSA-qx49-fqc8-xw99: Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP serverSame vendor · GitHub Advisory Database
- HighCVE-2026-88968: Claude Code Edit tool symlink race overwrites files outside workspace on macOSSame vendor · NVD/CVE Database
- HighCVE-2026-88066: Claude Desktop on Windows git.exe execution via search pathSame vendor · NVD/CVE Database
- HighCVE-2026-62331: praktor path traversal via Telegram document upload filenamesSame vendor · NVD/CVE Database
- MediumGHSA-w4fh-qvv9-3v23: Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource serverSame vendor · GitHub Advisory Database