Kubernetes MCP Server Patch Fixes Argument Injection Flaw

3 min read
Source: CVEs | Zero Wire | Cloudflare Radar
Kubernetes MCP Server Patch Fixes Argument Injection Flaw
Photo: CVEs | Zero Wire | Cloudflare Radar
TL;DR

A high-severity vulnerability in the mcp-server-kubernetes project allows remote attackers to inject kubectl flags via positional operands. The flaw, designated CVE-2026-134817, affects versions prior to 4.2.0 and enables attackers to bypass file-read restrictions by supplying dash-prefixed values like --filename. This permits reading files from the server host through tools such as exec_in_pod, kubectl_patch, and kubectl_logs. The issue was assigned a CVSS 3.1 score of 7.1, indicating high risk due to network attack vector and high confidentiality impact. A fix is available in version 4.2.0, which addresses the improper neutralization of argument delimiters in command construction.

Key points

  • The vulnerability affects mcp-server-kubernetes versions earlier than 4.2.0, specifically impacting tools like exec_in_pod, kubectl_patch, and kubectl_logs.
  • Attackers can exploit the flaw by supplying dash-prefixed values as positional operands, allowing them to inject kubectl flags such as --filename.
  • This injection bypasses file-read restrictions, enabling attackers to read files from the server host over SSE or Streamable HTTP transport.
  • The CVSS 3.1 score is 7.1 (High), with a network attack vector, low attack complexity, and low privileges required.
  • The weakness is classified as CWE-88, Improper Neutralization of Argument Delimiters in a Command, within the broader CWE-77 category.
  • Version 4.2.0 contains the patch, and the vulnerability was last updated in CVE records on November 22, 2026.

Background

Recent cybersecurity news has highlighted multiple argument injection and SQL injection vulnerabilities in various software libraries and systems. For instance, CVE-2026-134815 in the simple-git Node.js library allowed remote command execution via the '--exec' option, patched in version 4.1.0. Additionally, several SQL injection flaws were reported in document management and shopping systems, such as CVE-2026-134567 in itsourcecode Document Management System and CVE-2026-134541 in Surya2Developer Online Shopping System. These incidents underscore the ongoing risks associated with improper input validation and argument handling in software components.

Why it matters

This vulnerability poses a significant risk to organizations using mcp-server-kubernetes, as it allows remote attackers to read sensitive files from the server host without user interaction. The high confidentiality impact and network attack vector mean that even low-privilege attackers can exploit this flaw to access critical data. Prompt patching to version 4.2.0 is essential to mitigate the risk of data exfiltration and maintain the integrity of Kubernetes environments.

What to watch

Users of mcp-server-kubernetes should immediately upgrade to version 4.2.0 to patch the vulnerability. Security teams should audit their deployments for any instances of the affected versions and ensure that file-read restrictions are properly enforced. Monitoring for unusual kubectl flag usage in logs may help detect potential exploitation attempts.

Share this article

Want the full story? Read the original reporting

Read on CVEs | Zero Wire | Cloudflare Radar