CVE-2026-134817 in mcp-server-kubernetesinfo

Summary

by MITRE • 11/23/2026

mcp-server-kubernetes before 4.2.0 contains an argument injection vulnerability that allows remote MCP clients to inject kubectl flags by supplying dash-prefixed values as positional operands in tools such as exec_in_pod, kubectl_patch, and kubectl_logs. Attackers connected over SSE or Streamable HTTP transport can supply values like --filename to make kubectl read files from the server host, bypassing file-read restrictions.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/23/2026

The vulnerability identified in mcp-server-kubernetes versions prior to 4.2.0 represents a critical argument injection flaw that fundamentally compromises the security boundary between remote clients and the Kubernetes cluster management infrastructure. This issue stems from an improper validation of user-supplied input within tools designed for executing commands, patching resources, or retrieving logs inside pods. Specifically, functions such as exec_in_pod, kubectl_patch, and kubectl_logs accept positional operands that are directly concatenated into command-line arguments passed to the underlying kubectl binary without sufficient sanitization. This architectural oversight allows a remote Model Context Protocol client connected via Server-Sent Events or Streamable HTTP transport to manipulate the execution context by injecting flags prefixed with dashes, such as --filename, which alters how kubectl interprets its input parameters rather than treating them as standard resource identifiers or command targets.

From a technical perspective, this flaw exploits the way shell commands are constructed and executed within the server environment. When an attacker supplies a value like --filename followed by a path to a sensitive file on the host system, the kubectl process interprets this not as part of the intended Kubernetes API request but as a directive to read data from that specific local file location. This behavior bypasses any application-level restrictions designed to limit access to only authorized cluster resources or namespaces. The vulnerability effectively transforms what should be a controlled interaction with the Kubernetes API into an arbitrary command execution vector, where the attacker can dictate which files are accessed by the kubectl process running on the server host.

The operational impact of this vulnerability is severe, as it enables unauthorized data exfiltration and potential further compromise of the underlying infrastructure. By leveraging argument injection to force kubectl to read sensitive configuration files, service account tokens, or other critical secrets stored on the host machine, an attacker can gain access to credentials that may provide elevated privileges within the Kubernetes cluster. This capability undermines the principle of least privilege and allows for lateral movement if those extracted credentials are used to authenticate against other services or clusters. Furthermore, because the attack is conducted over standard web transports like SSE and Streamable HTTP, it can potentially bypass network security controls that do not inspect application-layer argument structures in depth.

This vulnerability aligns with CWE-78 Improper Neutralization of Special Elements used in an OS Command, commonly known as OS Command Injection, specifically manifesting through the injection of command-line arguments rather than raw shell commands. It also relates to CWE-20 Improper Input Validation, as the server fails to adequately verify that positional operands do not contain flag-like syntax. In terms of offensive security frameworks, this technique corresponds to ATT&CK tactic T1530 Data from Cloud Storage Object and potentially T1608 Install Remote Tools if the attacker uses extracted credentials to establish persistent access. The exploitation vector is classified as remote with low complexity, requiring only network connectivity to the MCP server endpoint.

Mitigation strategies must prioritize immediate upgrading of the mcp-server-kubernetes component to version 4.2.0 or later, where this input validation logic has been corrected. Until an upgrade can be performed, administrators should implement strict allowlisting for positional operands at a proxy layer if one exists in front of the MCP server. Additionally, running the kubectl process with minimal privileges and restricting file system access through container security contexts such as read-only root filesystems or specific volume mounts can reduce the blast radius of successful exploitation. Network segmentation limiting direct SSE or HTTP access to untrusted clients is also recommended to minimize the attack surface exposed to potential adversaries.

Responsible

VulnCheck

Reservation

11/22/2026

Disclosure

11/23/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!