Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-35020: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Anthropic Claude Code

0
High
VulnerabilityCVE-2026-35020cvecve-2026-35020cwe-78
Published: Mon Apr 06 2026 (04/06/2026, 18:58:40 UTC)
Source: CVE Database V5
Vendor/Project: Anthropic
Product: Claude Code

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/14/2026, 11:23:37 UTC

Technical Analysis

CVE-2026-35020 is an OS command injection vulnerability in Anthropic Claude Code CLI and Claude Agent SDK. It arises from improper neutralization of special elements in the TERMINAL environment variable, which is used by a command lookup helper and deep-link terminal launcher. Attackers can manipulate this variable to inject shell metacharacters, which are interpreted by /bin/sh when commands are constructed and executed with shell=true. This leads to arbitrary command execution with the privileges of the user running the CLI. The vulnerability can be triggered during normal CLI execution or via the deep-link handler path.

Potential Impact

Successful exploitation allows local attackers to execute arbitrary OS commands with the privileges of the user running the Anthropic Claude Code CLI or Agent SDK. This can lead to unauthorized actions on the affected system, potentially compromising system integrity and confidentiality. There are no known exploits in the wild at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid running the affected CLI or SDK in untrusted environments and do not set or allow untrusted control over the TERMINAL environment variable. Monitor vendor channels for updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-03-31T20:40:15.618Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69d409d70a160ebd92d5a92f

Added to database: 4/6/2026, 7:30:31 PM

Last enriched: 4/14/2026, 11:23:37 AM

Last updated: 5/21/2026, 11:01:43 PM

Views: 70

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses