OS Command Injection in claude-code-templates
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Claude Code Templatesの--studioオプションで起動するStudioサーバーに認証不備があり、遠隔から任意のOSコマンドを実行されるおそれがあります。影響を受けるのは1.29.4より前のバージョンで、1.29.4で修正されています。npmで1.29.4以降に更新してください。
Claude Code TemplatesのCLIツールの脆弱性。
バージョン1.29.4以前のClaude Code Studioのサーバー。
攻撃者が任意のOSコマンドを実行できるため、システムの完全な制御が可能となり、高度なリスクがあります。
バージョン1.29.4にアップデートすること。
情報なし
ポート3444で不審なアクセスを監視し、意図しないシェル実行を確認する。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npmclaude-code-templates |
< 1.29.4→ 1.29.4 |
1.29.4 |
Original description The description as published by the source.
Claude Code Templates is a CLI tool for configuring and monitoring Claude Code. Prior to 1.29.4, the Claude Code Studio server launched by the --studio option in cli-tool/src/sandbox-server.js binds to all interfaces on port 3444, permits cross-origin requests, and requires no authentication. The POST /api/execute endpoint passes the prompt request-body field to executeLocalTask(), and POST /api/install-agent passes the agentName request-body field to a child process. The same unsafe agent field path is reachable from /api/execute through checkAndInstallAgent(). These attacker-controlled values reach child_process.spawn() with shell execution enabled, causing Node.js to construct a shell command in which metacharacters are interpreted. An attacker who can reach the port directly, or who convinces a developer running Studio to visit a malicious website, can execute arbitrary operating-system commands with the developer's privileges and compromise source code, credentials, and local data. This issue is fixed in version 1.29.4.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web github.com
- web github.com