CVE-2025-59377: Mcp kubernetes server Mcp-kubernetes-server Has An OS Command Vulnerability
CRITICALCVE-2025-59377 is a CRITICAL (CVSS 9.8) mcp-kubernetes-server has an os command vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Mcp kubernetes server libraries in the PyPI ecosystem. The issue involves mcp-kubernetes-server has an os command injection vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2025-59377 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2025-59377
To remediate this vulnerability, upgrade all affected Mcp kubernetes server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install mcp-kubernetes-server>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show mcp-kubernetes-server
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-59377, inspect your installed packages using pip:
pip show mcp-kubernetes-server
Analyze the terminal output to locate any version of Mcp kubernetes server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show mcp-kubernetes-server command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Mcp kubernetes server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-59377 Affected Mcp kubernetes server Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mcp-kubernetes-server
|
PyPI |
≤ 0.1.11
|
|
References
Frequently Asked Questions
What is CVE-2025-59377?
Which Mcp kubernetes server versions are affected?
What version fixes CVE-2025-59377?
Is mcp-kubernetes-server affected?
What is the CVSS score of CVE-2025-59377?
What CWE is associated with CVE-2025-59377?
How can I check PyPI dependencies for CVE-2025-59377?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4hqq-7q79-932p",
"modified" : "2025-09-25T20:46:22Z",
"published" : "2025-09-15T15:31:24Z",
"aliases" : [ "CVE-2025-59377" ],
"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.\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**.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "mcp-kubernetes-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.1.11"
} ]
} ]
} ],
"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"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-78" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-15T21:38:22Z",
"nvd_published_at" : "2025-09-15T14:15:44Z"
}
}