HighVulnerabilityLLM-specific
CVE-2026-35020: Anthropic Claude Code CLI OS command injection via TERMINAL variable
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-35020
- 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 contain an OS command injection flaw (CVE-2026-35020) in the command lookup helper and the deep-link terminal launcher. A local attacker who sets the TERMINAL environment variable to contain shell metacharacters can have them interpreted by /bin/sh, because the helper builds and runs commands with shell=true. The flaw triggers during normal CLI execution and through the deep-link handler, executing arbitrary commands with the privileges of the user running the CLI.
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