Sploitus CVE-2026-134817: kubectl flag injection in mcp-server-kubernetes via MCP tool arguments
Article Content
- •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).
Ask AI about this cluster
Answers cite the sources they use
Timeline
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