Skip to content
HighVulnerabilityLLM-specific

CVE-2026-35020: Anthropic Claude Code CLI OS command injection via TERMINAL variable

Identifier
CVE-2026-35020
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 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.