Anthropic PBCのClaude Agent SDK等の複数製品におけるOS コマンドインジェクションの脆弱性
タイトル Anthropic PBCのClaude Agent SDK等の複数製品におけるOS コマンドインジェクションの脆弱性
概要

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

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

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

公表日 2026年4月6日0:00
登録日 2026年5月1日10:39
最終更新日 2026年5月1日10:39
CVSS3.0 : 重要
スコア 7.8
ベクター CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
影響を受けるシステム
Anthropic PBC
Claude Agent SDK 0.1.55 およびそれ以前
Claude Code 2.1.91 およびそれ以前
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
変更履歴
No 変更内容 変更日
1 [2026年05月01日]
  掲載
2026年5月1日10:39

NVD脆弱性情報
CVE-2026-35021
概要

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.

公表日 2026年4月7日5:16
登録日 2026年4月15日11:27
最終更新日 2026年4月14日5:16
関連情報、対策とツール
共通脆弱性一覧