HighVulnerabilityLLM-specific
CVE-2026-35021: Anthropic Claude Code CLI and Claude Agent SDK OS command injection
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-35021
- Published
- Record updated
- 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.
Related items
- HighGHSA-qx49-fqc8-xw99: Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP serverSame vendor · GitHub Advisory Database
- HighCVE-2026-88968: Claude Code Edit tool symlink race overwrites files outside workspace on macOSSame vendor · NVD/CVE Database
- HighCVE-2026-88066: Claude Desktop on Windows git.exe execution via search pathSame vendor · NVD/CVE Database
- HighCVE-2026-62331: praktor path traversal via Telegram document upload filenamesSame vendor · NVD/CVE Database
- MediumGHSA-w4fh-qvv9-3v23: Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource serverSame vendor · GitHub Advisory Database