CVE-2026-35020

HIGH

Anthropic Claude Code & Agent SDK OS Command Injection via TERMINAL Environment Variable

Title source: cna
STIX 2.1

Description

Anthropic Claude Code CLI and Claude Agent SDK contain an OS command injection vulnerability in the command lookup helper and deep-link terminal launcher that allows local attackers to execute arbitrary commands by manipulating the TERMINAL environment variable. Attackers can inject shell metacharacters into the TERMINAL variable which are interpreted by /bin/sh when the command lookup helper constructs and executes shell commands with shell=true. The vulnerability can be triggered during normal CLI execution as well as via the deep-link handler path, resulting in arbitrary command execution with the privileges of the user running the CLI.

Scores

CVSS v3 8.4
EPSS 0.0010
EPSS Percentile 27.7%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact total

Details

CWE
CWE-78
Status published
Products (4)
Anthropic/Claude Agent SDK for Python < 0.1.55
Anthropic/Claude Code < 2.1.91
anthropic/claude_agent_sdk < 0.1.55
anthropic/claude_code < 2.1.91
Published Apr 06, 2026
Tracked Since Apr 07, 2026