CVE-2025-66404: Flux159 mcp-server-kubernetes · Command Injection
Affects Flux159 mcp-server-kubernetesSource CVE Database V5
Not known to be exploited · CVSS 6.4 Medium : upgrade to 2.9.8 when convenient.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 1.4% chance of exploitation in 30 days – higher than 73% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.9.8
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 3 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Upgrade flux159/mcp-server-kubernetes to 2.9.8.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubflux159/mcp-server-kubernetespkg:github/flux159/mcp-server-kubernetesOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately upgrade Flux159 mcp-server-kubernetes to version 2.9.8 or later to remediate this vulnerability. Until patching is complete, restrict access to the exec_in_pod functionality to the minimum necessary set of trusted users and service accounts. Implement strict input validation and sanitization on any user-supplied commands before they reach the exec_in_pod tool, especially when commands are provided in string format. Monitor and audit usage of exec_in_pod for unusual or unauthorized command executions. Employ network segmentation and role-based access controls to limit exposure of Kubernetes management interfaces. Additionally, review and secure AI agent integrations to prevent indirect prompt injection attacks by enforcing strict command whitelisting and contextual validation. Incorporate runtime security tools that detect anomalous container or pod behavior indicative of exploitation attempts. Finally, maintain up-to-date incident response plans tailored to container and Kubernetes environments.
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.