CVE 8.6 HIGH

Anthropic Claude Code & Agent SDK OS Command Injection via TERMINAL Environment Variable_CVE-2026-35020

8.6 / 10
HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

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.

Basic Information

ID CVE-2026-35020
Source VulnCheck
Published Apr 6, 2026 at 18:58
Modified Apr 6, 2026 at 20:22

Affected Product

Vendor Anthropic
Product Claude Code
Affected Versions Anthropic Claude Code 0
Anthropic Claude Agent SDK for Python 0

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.