Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-35021— Anthropic Claude Code & Agent SDK OS Command Injection via promptEditor.ts

CVSS 7.8 · High EPSS 0.04% · P11
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-35021

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Anthropic Claude Code & Agent SDK OS Command Injection via promptEditor.ts
Source: NVD (National Vulnerability Database)
Vulnerability Description
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.
Source: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: NVD (National Vulnerability Database)
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: NVD (National Vulnerability Database)
Vulnerability Title
Claude Code CLI和Claude Agent SDK 操作系统命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Claude Code CLI和Claude Agent SDK都是Anthropic开源的产品。Claude Code CLI是一个命令行AI编码助手工具。Claude Agent SDK是一个AI编码助手开发者工具包。 Claude Code CLI和Claude Agent SDK存在操作系统命令注入漏洞,该漏洞源于提示编辑器调用实用程序中的操作系统命令注入,可能导致攻击者通过制作恶意文件路径执行任意命令。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
AnthropicClaude Code 0 ~ 2.1.91 -
AnthropicClaude Agent SDK for Python 0 ~ 0.1.55 -

II. Public POCs for CVE-2026-35021

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-35021

登录查看更多情报信息。

Same Patch Batch · Anthropic · 2026-04-06 · 3 CVEs total

CVE-2026-350229.8 CRITICALAnthropic Claude Code & Agent SDK OS Command Injection via Authentication Helper
CVE-2026-350208.4 HIGHAnthropic Claude Code & Agent SDK OS Command Injection via TERMINAL Environment Variable

IV. Related Vulnerabilities

V. Comments for CVE-2026-35021

No comments yet


Leave a comment