code-review-mcp-serverに任意のコマンドを実行される脆弱性
概要
code-review-mcp-serverに、folderPathとbaseBranchの入力がシェルのコマンドに未処理で組み込まれる脆弱性が見つかりました。1.5.3より前のバージョンでは、細工された入力によりMCPサーバーを動かしているホストで任意のコマンドを実行される可能性があります。修正版は1.5.3で、該当する場合は1.5.3以降へ更新してください。CVSS v4.0のスコアは8.7です。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
code-review-mcp-serverに、folderPathとbaseBranchの入力がシェルのコマンドに未処理で組み込まれる脆弱性が見つかりました。1.5.3より前のバージョンでは、細工された入力によりMCPサーバーを動かしているホストで任意のコマンドを実行される可能性があります。修正版は1.5.3で、該当する場合は1.5.3以降へ更新してください。CVSS v4.0のスコアは8.7です。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| Orcus2021code-review-mcp-server | — | 記載なし |
| npmcode-review-mcp-server |
1.5.3 未満→ 1.5.3 |
1.5.3 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
code-review-mcp-server automates code review and can post comments directly on GitHub pull requests. Prior to 1.5.3, the getLocalGitDiff, codeReview, createPR, and getPRTemplate MCP tools accept caller-controlled folderPath and baseBranch string parameters that are interpolated into command strings executed by child_process.execSync through /bin/sh. Shell metacharacters, command substitution, or quote-breaking input can therefore execute arbitrary commands with the privileges of the host process running the MCP server. This issue is fixed in version 1.5.3.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- report github.com
- web github.com
- web github.com