製品・ソフトウェアに関する情報
Anthropic PBCのClaude Agent SDK等の複数製品におけるOS コマンドインジェクションの脆弱性
Title Anthropic PBCのClaude Agent SDK等の複数製品におけるOS コマンドインジェクションの脆弱性
Summary

Anthropic Claude Code CLIおよびClaude Agent SDKには、プロンプトエディタの呼び出しユーティリティにOSコマンドインジェクションの脆弱性があります。この脆弱性により、攻撃者は悪意のあるファイルパスを作成して任意のコマンドを実行できます。攻撃者は、$()やバックティック表現などのシェルメタ文字をexecSync経由で実行されるシェルコマンドに補間されるファイルパスに注入可能です。ファイルパスは二重引用符で囲まれていますが、POSIXシェルのセマンティクス(POSIX §2.2.3)では二重引用符内でのコマンド置換を防止しません。そのため、注入された式が評価され、CLIを実行するユーザーの権限で任意のコマンドが実行されてしまいます。

Possible impacts 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 6, 2026, midnight
Registration Date May 1, 2026, 10:39 a.m.
Last Update May 1, 2026, 10:39 a.m.
CVSS3.0 : 重要
Score 7.8
Vector CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected System
Anthropic PBC
Claude Agent SDK 0.1.55 およびそれ以前
Claude Code 2.1.91 およびそれ以前
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年05月01日]
  掲載
May 1, 2026, 10:39 a.m.

NVD Vulnerability Information
CVE-2026-35021
Summary

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.

Publication Date April 7, 2026, 5:16 a.m.
Registration Date April 15, 2026, 11:27 a.m.
Last Update April 14, 2026, 5:16 a.m.
Related information, measures and tools
Common Vulnerabilities List