MCP-KUBERNETES-SERVER · CVE-2025-59377 · AI agents & MCP
NO FIX YET · SEE WHAT TO DO
mcp-kubernetes-server passes user-supplied arguments to a shell command on its /mcp/kubectl endpoint using shell=True. An unauthenticated remote attacker can inject shell metacharacters and run arbitrary commands on the host, even in read-only mode.
first public Sep 15, 2025 · 2 sources
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Teams running feiskyer/mcp-kubernetes-server (the PyPI package mcp-kubernetes-server) as an MCP server, especially where its HTTP endpoint is exposed to a network. The sources say the flaw applies even when the server runs in read-only mode. Installations that do not expose the /mcp/kubectl endpoint to untrusted callers are less exposed. The sources do not name a fixed version.
Not affected if endpoint-not-exposed
Who cares kubernetes, mcp, python
pip show mcp-kubernetes-server; versions through 0.1.11 are affected.mcp-kubernetes-server: fixed version unknown from the sources; the affected range is through 0.1.11.feiskyer/mcp-kubernetes-server through 0.1.11 allows OS command injection via the /mcp/kubectl endpoint. The handler constructs a shell command with user-supplied arguments and executes it with subprocess using shell=True, enabling injection through shell metacharacters (e.g., ;, &&, $()), even when the server is running in read-only mode.
A remote, unauthenticated attacker can execute arbitrary OS commands on the host, resulting in full compromise of confidentiality, integrity, and availability.
This issue is distinct from mcp-server-kubernetes and from CVE-2025-53355.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.
GitHub Advisory Database, CC-BY 4.0 · NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.