---
id: "CVE-2025-59377"
page: "https://infrastack.ai/live/CVE-2025-59377"
kind: "vulnerability"
aliases: ["CVE-2025-59377", "GHSA-4hqq-7q79-932p"]
title: "mcp-kubernetes-server has an OS Command Injection vulnerability"
severity: "critical"
cvss: 9.8
epss: 0.01203
exploited: false
status: "open"
category: "ai-tooling"
products: [{"name": "mcp-kubernetes-server", "fixed": [], "affected": "<= 0.1.11", "ecosystem": "pypi"}, {"name": "feisky mcp-kubernetes-server", "fixed": [], "affected": "<= 0.1.11", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["ai-tooling", "cwe-78", "kubernetes", "mcp", "python"]
not_affected_if: ["endpoint-not-exposed"]
published_at: "2025-09-15T14:15:44+00:00"
first_seen_at: "2026-11-16T15:42:57+00:00"
updated_at: "2026-11-16T16:08:50+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-4hqq-7q79-932p", "first_seen_at": "2026-11-16T15:42:57+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-59377", "first_seen_at": "2026-11-16T16:08:50+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.01203, "url": "https://api.first.org/data/v1/epss?cve=CVE-2025-59377"}]
---

# mcp-kubernetes-server has an OS Command Injection vulnerability

Link for people: https://infrastack.ai/live/CVE-2025-59377 (this .md is for agents)

mcp-kubernetes-server passes user-supplied arguments to a shell command on its /mcp/kubectl endpoint using shell=True. An unauthenticated remote attacker can inject shell metacharacters and run arbitrary commands on the host, even in read-only mode.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:mcp-kubernetes-server affected <= 0.1.11 fixed no fixed version listed
- vendor:feisky mcp-kubernetes-server affected <= 0.1.11 fixed no fixed version listed

## How to check

- Check the installed version with `pip show mcp-kubernetes-server`; versions through `0.1.11` are affected.
- Check whether the server's /mcp/kubectl endpoint is reachable from untrusted networks.

## Fix

- `mcp-kubernetes-server`: fixed version unknown from the sources; the affected range is through `0.1.11`.

## Timeline

- 2026-11-16T15:42:57+00:00 ghsa https://github.com/advisories/GHSA-4hqq-7q79-932p
- 2026-11-16T16:08:50+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2025-59377

## Documents

- [advisory] Third-party advisory: github.com https://github.com/william31212/CVE-Requests-1896609

## From the sources

`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**.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
