CVE-2025-59377: mcp-kubernetes-server has an OS Command Injection vulnerability
Affects mcp-kubernetes-serverSource GCVE Database
Not known to be exploited · CVSS 3.7 Low.
Data as of 16 Nov 2026, 16:50 UTC
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 15 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: 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 15 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPImcp-kubernetes-server | 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
Until a fix is available, avoid exposing the /mcp/kubectl endpoint to untrusted networks or users. Consider implementing network-level access controls or disabling the vulnerable functionality if possible.
Description
The mcp-kubernetes-server package up to version 0.1.11 contains an OS command injection vulnerability in its /mcp/kubectl endpoint. This flaw allows remote, unauthenticated attackers to execute arbitrary operating system commands on the host by injecting shell metacharacters into user-supplied arguments. The vulnerability exists because the server executes shell commands using subprocess with shell=True, even in read-only mode. Exploitation can lead to full compromise of confidentiality, integrity, and availability of the affected system.
References
- nvd.nist.gov/vuln/detail/CVE-2025-59377 (opens in a new tab)
- github.com/feiskyer/mcp-kubernetes-server (opens in a new tab)
- github.com/feiskyer/mcp-kubernetes-server/blob/78957b6c1a3982080cf6fcaac6f6e9014116a71c/src/mcp_kubernetes_server/command.py (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/mcp-kubernetes-server/PYSEC-2026-409.yaml (opens in a new tab)
- github.com/william31212/CVE-Requests-1896609 (opens in a new tab)
- pypi.org/project/mcp-kubernetes-server (opens in a new tab)
- tenable.com/cve/CVE-2025-59377 (opens in a new tab)