k8s-mcp-serverに認証なしで、Kubernetesのツールを遠隔から実行される脆弱性
概要
k8s-mcp-serverの1.1.0より前では、既定のSSE/HTTP通信に認証がなく、到達できる第三者がKubernetesのツールを認証なしで実行できます。読み取り専用モードも既定では無効で、書き込みを伴うツールもサーバーに設定されたクラスタ権限で動いてしまいます。1.1.0で修正されているため、修正版へ更新してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
k8s-mcp-serverの1.1.0より前では、既定のSSE/HTTP通信に認証がなく、到達できる第三者がKubernetesのツールを認証なしで実行できます。読み取り専用モードも既定では無効で、書き込みを伴うツールもサーバーに設定されたクラスタ権限で動いてしまいます。1.1.0で修正されているため、修正版へ更新してください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| reza-gholizadek8s-mcp-server | — | 記載なし |
| Gogithub.com/reza-gholizade/k8s-mcp-server |
1.1.0 未満→ 1.1.0 |
1.1.0 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
k8s-mcp-server manages Kubernetes clusters through the Model Context Protocol. Prior to 1.1.0, SERVER_MODE defaults to SSE, with the listener on 0.0.0.0:8080, but main.go creates the SSE server without an authentication option or context function. The GET /sse handler creates a sessionId that is only a correlation value, and the POST /message handler accepts a loadable sessionId without an authorization or Origin check before dispatching tools/call; consequently, any client able to reach the port can enumerate and invoke registered Kubernetes tools without credentials. Read-only mode is disabled by default, leaving write-capable Kubernetes tools available to run with the server's configured cluster privileges. This issue is fixed in version 1.1.0.
出典: 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