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.
Reason given by MITRE
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
✕ Withdrawn — historical dataHIGHNVD 7.8
7.8CVSS
- CVSS v3
- 7.8
- EchelonGraph score
- Not yet assessedThis CVE record was withdrawn by its numbering authority, so there is no vulnerability to rate.
- EPSS PROB
- —
- EPSS %ILE
- —
- KEV
- —Not applicable: this CVE ID was withdrawn
Published
April 6, 2026
Last Modified
April 29, 2026
Frequently asked(4)
What is CVE-2026-35021?
CVE-2026-35021 is a rejected CVE ID: its record was withdrawn on May 29, 2026 and no longer describes a vulnerability. Reason given: 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.
When was the CVE record for CVE-2026-35021 published?
The CVE record for CVE-2026-35021 was published on April 6, 2026. EchelonGraph's copy of the record carries a last-modified date of April 29, 2026; the record at its source may have been updated since.
What is the CVSS score of CVE-2026-35021?
CVE-2026-35021 has a CVSS v3 base score of 7.8 (NVD).
How do I remediate CVE-2026-35021?
There is nothing to remediate under CVE-2026-35021: it is a rejected (withdrawn) CVE ID and no longer describes a vulnerability.