GHSA-4HQQ-7Q79-932P
Vulnerability from github – Published: 2025-09-15 15:31 – Updated: 2025-09-25 20:46
VLAI?
Summary
mcp-kubernetes-server has an OS Command Injection vulnerability
Details
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.
Severity ?
9.8 (Critical)
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "mcp-kubernetes-server"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "0.1.11"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2025-59377"
],
"database_specific": {
"cwe_ids": [
"CWE-78"
],
"github_reviewed": true,
"github_reviewed_at": "2025-09-15T21:38:22Z",
"nvd_published_at": "2025-09-15T14:15:44Z",
"severity": "CRITICAL"
},
"details": "`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., `;`, `\u0026\u0026`, `$()`), even when the server is running in **read-only** mode.\n\nA remote, unauthenticated attacker can execute arbitrary OS commands on the host, resulting in full compromise of confidentiality, integrity, and availability.\n\nThis issue is **distinct from** `mcp-server-kubernetes` and from **CVE-2025-53355**.",
"id": "GHSA-4hqq-7q79-932p",
"modified": "2025-09-25T20:46:22Z",
"published": "2025-09-15T15:31:24Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-59377"
},
{
"type": "PACKAGE",
"url": "https://github.com/feiskyer/mcp-kubernetes-server"
},
{
"type": "WEB",
"url": "https://github.com/feiskyer/mcp-kubernetes-server/blob/78957b6c1a3982080cf6fcaac6f6e9014116a71c/src/mcp_kubernetes_server/command.py#L38"
},
{
"type": "WEB",
"url": "https://github.com/william31212/CVE-Requests-1896609"
},
{
"type": "WEB",
"url": "https://www.tenable.com/cve/CVE-2025-59377"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "mcp-kubernetes-server has an OS Command Injection vulnerability"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…