Anthropic Claude Code CLI and Claude Agent SDK contain an OS command injection vulnerability in the prompt editor invocation utility that allows attackers to execute arbitrary commands by crafting malicious file paths. Attackers can inject shell metacharacters such as $() or backtick expressions into file paths that are interpolated into shell commands executed via execSync. Although the file path is wrapped in double quotes, POSIX shell semantics (POSIX §2.2.3) do not prevent command substitution within double quotes, allowing injected expressions to be evaluated and 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-35021 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 its CVE Numbering Authority (CNA). It was determined that the affected code path cannot be triggered through normal usage of Claude Code.
CVE-2026-35021
- 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
- 7.8
- 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
- 12th
- 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 promptEditor.ts | Advisories | VulnCheck
https://www.vulncheck.com/advisories/anthropic-claude-code-agent-sdk-os-command-injection-via-prompteditor-tsClaude 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▼ 7.80
- 2026-07-17 02:24 UTCOSV refresh
- 2026-06-11 21:33 UTCGHSA enrichment
- 2026-06-10 12:59 UTCGHSA enrichment
- 2026-06-10 01:28 UTCGHSA enrichment
- 2026-06-09 14:04 UTCGHSA enrichment
- 2026-06-08 09:16 UTCGHSA enrichment
- 2026-06-07 21:52 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-35021?
When was CVE-2026-35021 disclosed?
Is CVE-2026-35021 actively exploited?
What is the CVSS score of CVE-2026-35021?
How do I remediate CVE-2026-35021?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-35021
Is Your Infrastructure Affected by CVE-2026-35021?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.