code-review-mcp-serverに任意のコマンドを実行される脆弱性
Summary
code-review-mcp-serverに、folderPathとbaseBranchの入力がシェルのコマンドに未処理で組み込まれる脆弱性が見つかりました。1.5.3より前のバージョンでは、細工された入力によりMCPサーバーを動かしているホストで任意のコマンドを実行される可能性があります。修正版は1.5.3で、該当する場合は1.5.3以降へ更新してください。CVSS v4.0のスコアは8.7です。
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.
code-review-mcp-serverに、folderPathとbaseBranchの入力がシェルのコマンドに未処理で組み込まれる脆弱性が見つかりました。1.5.3より前のバージョンでは、細工された入力によりMCPサーバーを動かしているホストで任意のコマンドを実行される可能性があります。修正版は1.5.3で、該当する場合は1.5.3以降へ更新してください。CVSS v4.0のスコアは8.7です。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Orcus2021code-review-mcp-server | — | Not listed |
| npmcode-review-mcp-server |
< 1.5.3→ 1.5.3 |
1.5.3 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- 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