Skip to content
CVE-2026-134817: kubectl flag injection in mcp-server-kubernetes via MCP tool arguments

CVE-2026-134817: kubectl flag injection in mcp-server-kubernetes via MCP tool arguments

First seen 23 Nov 2026, 12:47 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 23, 2026 at 12:48 UTC
  • •mcp-server-kubernetes versions before 4.2.0 allow remote MCP clients to inject kubectl flags through positional operands.
  • •Exploitation can make kubectl read server-host files such as /etc/passwd, bypassing file-read restrictions.
  • •The flaw is reachable over SSE and Streamable HTTP transports; the fix is in version 4.2.0 (commit 588d4949).
  • •The CVE record lists CVSS 7.1 (High); the articles do not confirm exploitation in the wild.
  • •Mitigation is to upgrade, restrict transport access to trusted clients, and apply least privilege to service accounts.

CVE-2026-134817 affects mcp-server-kubernetes before version 4.2.0, where remote MCP clients can supply dash-prefixed values as positional operands to tools such as exec_in_pod, kubectl_patch and kubectl_logs. Those values reach kubectl unvalidated and are parsed as flags, so a value like --filename can make kubectl read files from the server host, bypassing file-read restrictions. The flaw is reachable over SSE and Streamable HTTP transports. Sploitus publishes a lab write-up describing the vulnerable and fixed builds, a check, a probe and a standalone exploit script, with captured evidence showing a --filename=/etc/passwd resource name reaching kubectl argv on the vulnerable build and being rejected on 4.2.0. Redpacket Security rates the issue high risk for exposed deployments, while noting that its exploitation urgency could not be confirmed because KEV, SSVC, PoC and EPSS data were not provided. The fix is commit 588d4949 (GHSA-8v48-c263-r637), which adds an assertNotFlagLike() validator to positional operands. The CVE record shows a CVSS score of 7.1 (High).

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Updated just now How this analysis works

Timeline

2026-11-22
CVE-2026-134817 published
CVE record published with CVSS 7.1 (High) for mcp-server-kubernetes argument injection before 4.2.0.
2026-11-23
Lab write-up and exploit published
Sploitus published a validated lab with vulnerable and fixed builds, a check, probe and standalone exploit script.
Sploitus
2026-11-23
Detection and mitigation guidance published
Redpacket Security issued a CVE alert with detection ideas and prioritisation, noting exploitation urgency could not be confirmed.
Redpacketsecurity

More articles in this cluster (5)

Following this threat?

Track CVE-2026-134817 in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.

Free account · no card needed

Common questions

Am I affected?
You are affected if you run mcp-server-kubernetes before 4.2.0 with SSE or Streamable HTTP transport reachable by MCP clients. Upgrade to 4.2.0 and verify the running package version.
How urgent is this?
Redpacket Security rates it high risk for exposed deployments, but its exploitation urgency could not be confirmed. A public lab and exploit script exist, and no in-the-wild exploitation is reported in these articles.
What should we do first?
Upgrade to 4.2.0. Until then, restrict transport access to trusted clients, disable affected tools where feasible, and limit the server's file-read exposure.