k8s-mcp-serverに認証なしで、Kubernetesのツールを遠隔から実行される脆弱性
Summary
k8s-mcp-serverの1.1.0より前では、既定のSSE/HTTP通信に認証がなく、到達できる第三者がKubernetesのツールを認証なしで実行できます。読み取り専用モードも既定では無効で、書き込みを伴うツールもサーバーに設定されたクラスタ権限で動いてしまいます。1.1.0で修正されているため、修正版へ更新してください。
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.
k8s-mcp-serverの1.1.0より前では、既定のSSE/HTTP通信に認証がなく、到達できる第三者がKubernetesのツールを認証なしで実行できます。読み取り専用モードも既定では無効で、書き込みを伴うツールもサーバーに設定されたクラスタ権限で動いてしまいます。1.1.0で修正されているため、修正版へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| reza-gholizadek8s-mcp-server | — | Not listed |
| Gogithub.com/reza-gholizade/k8s-mcp-server |
< 1.1.0→ 1.1.0 |
1.1.0 |
Original description The description as published by the source.
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.
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