# CVE-2025-66404: mcp-server-kubernetes potential security issue in exec_in_pod tool

- Severity: Medium 6.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.48%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-03T20:40:11.046Z
- Modified: 2026-06-17T09:56:46.863Z
- Also known as: GHSA-wvxp-jp4w-w8wg
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Flux159 mcp-server-kubernetes: < 2.9.8
- mcp-server-kubernetes (npm): before 2.9.8
- suyogs mcp-server-kubernetes: before 2.9.8

## Every score

- GitHub_M: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-wvxp-jp4w-w8wg> (exploit, vendor-advisory, web)
- <https://github.com/Flux159/mcp-server-kubernetes/commit/d091107ff92d9ffad1b3c295092f142d6578c48b> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-66404> (advisory)
- <https://github.com/Flux159/mcp-server-kubernetes/commit/47d3136dd272c947464524f11f47bb519814698e> (web)
- <https://github.com/Flux159/mcp-server-kubernetes> (package)

## Sources

- CVE List: [CVE-2025-66404](https://www.cve.org/CVERecord?id=CVE-2025-66404), CVE Terms of Use, modified 2025-12-03
- GitHub Advisory Database: [GHSA-wvxp-jp4w-w8wg](https://github.com/advisories/GHSA-wvxp-jp4w-w8wg), CC-BY-4.0, modified 2025-12-05
- NVD: [CVE-2025-66404](https://nvd.nist.gov/vuln/detail/CVE-2025-66404), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-66404 · Whole record: https://cve.day/CVE-2025-66404.json · Rebuilt by cve.day 2026-11-25T22:59:08.246Z
