github.com/sonirico/mcp-shell に OSコマンドインジェクション (CVE-2026-55580)
概要
github.com/sonirico/mcp-shell に OSコマンドインジェクション (CVE-2026-55580) が存在。不正な操作・情報露出のリスクがあります。config.go 経由で攻撃可能。対策: 0.6.0 以上に更新。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
mcp-shellat commit17ac0eef5c9a5a42b8fb132d3d034973d55a5433` has two issues that together mean neither the default deploy path nor the recommended "secure mode" delivers the restriction they're marketed as providing. Filing these together because the two failure modes bracket the full intended audience — the from-source path gets users who skip security config entirely, the Docker path gets users who follow the security.yaml example and believe they're protected.
The first issue is in config.go, line 49:
config := &Config{
Security: SecurityConfig{
Enabled: false,
},
...
}
Security is opt-in. The bare binary ships with Enabled: false, and security.go lines 26–29 make the consequence explicit:
func (v *SecurityValidator) validateCommand(command string) error {
if !v.config.Enabled {
v.logger.Debug().Str("command", command).Msg("Security disabled, allowing command")
return nil
}
main.go lines 35–39 confirm the deployment condition:
configFile := os.Getenv("MCP_SHELL_SEC_CONFIG_FILE")
if configFile != "" {
log.Info().Str("config_file", configFile).Msg("Loading security config")
} else {
log.Info().Msg("No security config file specified, security disabled")
}
The README's from-source install path (lines 22–26) runs git clone ... && make install && mcp-shell with no environment variable and no config file. The MCP client config example block (lines 78–85) passes only `MCP_SHE…
出典: GitHub Security Advisories (Global) NVD GitHub Advisory
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
github.com/sonirico/mcp-shell という製品で、CVE-2026-55580 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに config.go のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
不正な操作・情報露出のリスクがあります。
対策: github.com/sonirico/mcp-shell を 0.6.0 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「github.com/sonirico/mcp-shell CVE-2026-55580」を検索してください。
CVE-2026-55580 (github.com/sonirico/mcp-shell) — CWE-78
脆弱箇所: config.go / security.go / main.go / MCP_SHELL_LOG_LEVEL
修正バージョン: 0.6.0 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
github.com/sonirico/mcp-shell に OSコマンドインジェクション (CWE-78) があります。攻撃者は config.go を経由して脆弱な処理に到達できます。
github.com/sonirico/mcp-shell の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: config.go / security.go / main.go / MCP_SHELL_LOG_LEVEL。
重要度: ?。不正な操作・情報露出のリスクがあります。
0.6.0 に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
grep -r 'github.com/sonirico/mcp-shell' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/sonirico/mcp-shellを grep し、稼働しているサービス・バージョンを把握する。 -
2パッチ適用 patch
Upgrade github.com/sonirico/mcp-shell to 0.6.0ステージング環境で 0.6.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3事後検証 verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
参照URL
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com