CVE-2025-66404 mcp-server-kubernetes potential security issue in exec_in_pod tool
Attackers can execute arbitrary shell commands via the exec_in_pod tool due to lack of input validation, potentially compromising Kubernetes clusters.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-66404?
CVE-2025-66404 is a medium-severity command injection vulnerability in Flux159 mcp-server-kubernetes, published on 3 Dec 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
MCP Server Kubernetes is an MCP Server that can connect to a Kubernetes cluster and manage it. Prior to 2.9.8, there is a security issue exists in the exec_in_pod tool of the mcp-server-kubernetes MCP Server. The tool accepts user-provided commands in both array and string formats. When a string format is provided, it is passed directly to shell interpretation (sh -c) without input validation, allowing shell metacharacters to be interpreted. This vulnerability can be exploited through direct command injection or indirect prompt injection attacks, where AI agents may execute commands without explicit user intent. This vulnerability is fixed in 2.9.8.
Weakness: CWE-77
Which versions are affected by CVE-2025-66404?
2 open source packages ship an affected version, including mcp-server-kubernetes. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mcp-server-kubernetes npm | All versions | 2.9.8 |
mcp-server-kubernetes npm | All versions | 2.9.8 |
Products include Suyogs Mcp-Server-Kubernetes.
How do I fix CVE-2025-66404?
Upgrade mcp-server-kubernetes to 2.9.8 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2025-66404 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-66404 exists.
Other vulnerabilities in Flux159 mcp-server-kubernetes
Sources
Also known as GHSA-wvxp-jp4w-w8wg.