Skip to content
HighVulnerabilityLLM-specific

CVE-2026-35021: Anthropic Claude Code CLI and Claude Agent SDK OS command injection

Identifier
CVE-2026-35021
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.

Summary

CVE-2026-35021 is an OS command injection flaw in the prompt editor invocation utility of Anthropic's Claude Code CLI and Claude Agent SDK. Attackers can craft malicious file paths containing shell metacharacters such as $() or backticks, which are interpolated into shell commands run via execSync. Because POSIX double quotes do not block command substitution, the injected expressions execute with the privileges of the user running the CLI.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.