CVE-2025-59377 Details
Description
feiskyer mcp-kubernetes-server through 0.1.11 allows OS command injection, even in read-only mode, via /mcp/kubectl because shell=True is used. NOTE: this is unrelated to mcp-server-kubernetes and CVE-2025-53355.
A command injection vulnerability has been identified in Feiskyer MCP-Kubernetes-Server versions through 0.1.11. The issue arises in the MCP tool 'kubectl', which is intended for safe interaction with Kubernetes clusters. However, the tool's command validation is flawed, allowing attackers to inject and execute arbitrary OS commands on the server hosting the MCP application. This vulnerability exists even in read-only mode, as the server's security flags can be bypassed to perform destructive actions on the Kubernetes cluster.
To address this vulnerability, the 'command.py' module should be revised to prevent the use of 'shell=True' in subprocess.run calls. Instead, commands and their arguments should be passed as a list. Additionally, user-provided inputs must be validated against a whitelist of safe 'kubectl' commands and parameters, rejecting or stripping command chaining metacharacters.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 15, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/william31212/CVE-Requests-1896609 | CISA-ADP | Third Party Advisory |
| https://github.com/feiskyer/mcp-kubernetes-server/blob/78957b6c1a3982080cf6fcaac6f6e9014116a71c/src/mcp_kubernetes_server/command.py#L38 | [email protected] | Product |
| https://github.com/william31212/CVE-Requests-1896609 | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| feisky mcp-kubernetes-server | <= 0.1.11 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 20, 2025 | Initial Analysis | [email protected] |
| Sep 15, 2025 | CVE Modified | CISA-ADP |
| Sep 15, 2025 | New CVE Received | [email protected] |