CVE-2025-66404
published 2025-12-03CVE-2025-66404: 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…
PriorityP264high8.8CVSS 3.1
AVNACLPRLUINSUCHIHAH
EPSS
1.29%
66.5th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| flux159 | mcp-server-kubernetes | < 2.9.8 | 2.9.8 |
| flux159 | mcp-server-kubernetes | >= 0 < 2.9.8 | 2.9.8 |
| suyogs | mcp-server-kubernetes | < 2.9.8 | 2.9.8 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
mcp-server-kubernetes has potential security issue in exec_in_pod tool
ghsa·2025-12-03
CVE-2025-66404 [MEDIUM] CWE-77 mcp-server-kubernetes has potential security issue in exec_in_pod tool
mcp-server-kubernetes has potential security issue in exec_in_pod tool
### Summary
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.
### Details
The MCP Server exposes the `exec_in_pod` tool to execute commands inside Kubernetes pods. The tool supports both array and string command formats. The Kubernetes Exec API (via `@kubernetes/client-n
OSV
mcp-server-kubernetes has potential security issue in exec_in_pod tool
osv·2025-12-03
CVE-2025-66404 [MEDIUM] mcp-server-kubernetes has potential security issue in exec_in_pod tool
mcp-server-kubernetes has potential security issue in exec_in_pod tool
### Summary
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.
### Details
The MCP Server exposes the `exec_in_pod` tool to execute commands inside Kubernetes pods. The tool supports both array and string command formats. The Kubernetes Exec API (via `@kubernetes/client-n
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2025-12-03
Published