Arbitrary Command Injection Affecting mcp-server-kubernetes package, versions <2.9.8


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-MCPSERVERKUBERNETES-14176095
  • published4 Dec 2025
  • disclosed3 Dec 2025
  • creditlavenderlilly

Introduced: 3 Dec 2025

NewCVE-2025-66404  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade mcp-server-kubernetes to version 2.9.8 or higher.

Overview

mcp-server-kubernetes is a MCP server for interacting with Kubernetes clusters via kubectl

Affected versions of this package are vulnerable to Arbitrary Command Injection via the exec_in_pod tool. An attacker can execute arbitrary commands within Kubernetes pods by supplying crafted input containing shell meta-characters, which are interpreted by the shell due to lack of input validation.

Note:

This can be exploited either directly by users with access to the tool interface or indirectly by embedding malicious instructions in pod logs that may be executed by AI agents.

CVSS Base Scores

version 4.0
version 3.1