CVE-2025-59377 mcp-kubernetes-server has an OS Command Injection vulnerability

Low 3.7 Published Updated

An attacker can execute arbitrary OS commands via the kubectl endpoint due to unsafe shell execution, even in read-only mode.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-59377?

CVE-2025-59377 is a low-severity command injection vulnerability in feiskyer mcp-kubernetes-server, published on 15 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-78

Which versions are affected by CVE-2025-59377?

3 open source packages ship an affected version, including mcp-kubernetes-server. It affects 1 product.

PackageAffectedFixed in
mcp-kubernetes-server PyPIAll versions to 0.1.11None
mcp-kubernetes-server PyPIAll versions to 0.1.11None
mcp-kubernetes-server PyPIAll versions to 0.1.11None

Products include Feisky Mcp-Kubernetes-Server.

How do I fix CVE-2025-59377?

No fix has been published for CVE-2025-59377 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-59377 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59377 exists.

Sources

Also known as GHSA-4hqq-7q79-932p, PYSEC-2026-409.

Is CVE-2025-59377 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free