VulnWatch by ve1ve2
critical 9.8 EPSS 2.24%

GHSA-4hqq-7q79-932p / CVE-2025-59377: mcp-kubernetes-server has an OS Command Injection vulnerability

Source:
GitHub Security Advisories
Published:
Fetched:
Updated:
Affects:
mcp-kubernetes-server

https://github.com/advisories/GHSA-4hqq-7q79-932p ↗

ghsapipCWE-78

mcp-kubernetes-server has an OS Command Injection vulnerability `feiskyer/mcp-kubernetes-server` through **0.1.11** allows **OS command injection** via the `/mcp/kubectl` endpoint. The handler constructs a shell command with user-supplied arguments and executes it with `subprocess` using `shell=True`, enabling injection through shell metacharacters (e.g., `;`, `&&`, `$()`), even when the server is running in **read-only** mode. A remote, unauthenticated attacker can execute arbitrary OS commands on the host, resulting in full compromise of confidentiality, integrity, and availability. This issue is **distinct from** `mcp-server-kubernetes` and from **CVE-2025-53355**. Affected packages: pip:mcp-kubernetes-server

Linked vulnerabilities (3)

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

mcp-kubernetes-server has an OS Command Injection vulnerability

CWE: CWE-78Aliases: CVE-2025-59377, CVE-2025-53355
CVE-2025-59377 critical 9.8 EPSS 1.20% (p69) NVDCVE.orgGHSA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

mcp-kubernetes-server has an OS Command Injection vulnerability

CWE: CWE-78Aliases: GHSA-4hqq-7q79-932p, CVE-2025-53355
CVE-2025-53355 high 7.5 EPSS 2.24% (p83) NVDCVE.org
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

MCP Server Kubernetes is an MCP Server that can connect to a Kubernetes cluster and manage it. A command injection vulnerability exists in the mcp-server-kubernetes MCP Server. The vulnerability is caused by the unsanitized use of input parameters within a call to child_process.execSync, enabling an attacker to inject arbitrary system commands. Successful exploitation can lead to remote code execution under the server process's privileges. This vulnerability is fixed in 2.5.0.

CWE: CWE-77NVD: Deferred