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.
This CVE has been withdrawn by MITRE
MITRE marked CVE-2026-35020 as REJECTED on . It is no longer considered a valid vulnerability record. The original content below is preserved for historical reference only.
This CVE ID has been rejected by the its CVE Numbering Authority (CNA). It was determined that the attack requires an attacker to already control arbitrary environment variables, a level of access they consider functionally equivalent to code execution and outside the threat model of CLI tools.
CVE-2026-35020
- High severity, but no confirmed exploitation yet
No fix is confirmed yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for the fix.
- CVSS v3
- 8.4
- EchelonGraph score
- Not yet assessedThis CVE record was withdrawn by its numbering authority, so there is no vulnerability to rate.
- EG Score
- —
- EG Risk
- —
- EPSS PROB
- 0.1%
- EPSS %ILE
- 29th
- KEV
- Not listed
Published
April 6, 2026
Last Modified
April 29, 2026
Advisory Details (2)
Auto-updated Apr 29, 2026Anthropic Claude Code & Agent SDK OS Command Injection via TERMINAL Environment Variable | Advisories | VulnCheck
https://www.vulncheck.com/advisories/anthropic-claude-code-agent-sdk-os-command-injection-via-terminal-environment-variableClaude Code CLI: 3 Command Injection Flaws — CI/CD Risk
https://phoenix.security/critical-ci-cd-nightmare-3-command-injection-flaws-in-claude-code-cli-allow-credential-exfiltration/Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 0× in last 7d / 1× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-09-21 12:19 UTCOSV refresh
- 2026-09-02 09:44 UTCOSV refresh
- 2026-08-16 08:22 UTCGHSA enrichment
- 2026-08-12 19:44 UTCGHSA enrichment
- 2026-08-09 05:01 UTCGHSA enrichment
- 2026-08-06 00:06 UTCGHSA enrichment
- 2026-08-02 14:23 UTCEG score recompute
- 2026-08-02 14:23 UTCGHSA enrichment
- 2026-07-23 03:10 UTCEG score recompute▼ 8.40
- 2026-07-17 02:24 UTCOSV refresh
- 2026-06-11 21:33 UTCGHSA enrichment
- 2026-06-10 13:04 UTCGHSA enrichment
- 2026-06-10 01:34 UTCGHSA enrichment
- 2026-06-09 14:04 UTCGHSA enrichment
- 2026-06-08 09:27 UTCGHSA enrichment
- 2026-06-07 21:57 UTCGHSA enrichment
- 2026-06-07 10:27 UTCGHSA enrichment
- 2026-05-29 13:44 UTCEPSS rescore
- 2026-05-29 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
Show 9 moreShow fewer
- 2026-05-26 13:44 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-20 22:38 UTCEPSS rescore
- 2026-05-20 22:38 UTCEPSS rescore
- 2026-05-20 18:51 UTCEG score recompute
- 2026-05-20 18:51 UTCGHSA enrichment
- 2026-05-20 11:22 UTCEPSS rescore
- 2026-05-20 11:22 UTCEPSS rescore
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-35020?
When was CVE-2026-35020 disclosed?
Is CVE-2026-35020 actively exploited?
What is the CVSS score of CVE-2026-35020?
How do I remediate CVE-2026-35020?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-35020
Is Your Infrastructure Affected by CVE-2026-35020?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.