CVE-2026-129236
**Ecosystem / package:** Go — `github.com/kubeshark/kubeshark` (the `kubeshark` CLI, `kubeshark mcp` subcommand) **Affected component:** `cmd/mcpRunner.go`, MCP tool `start_kubeshark` **Affected versions:** `>= v53.1.0`, `< v53.4.0` (the flaw shipped with the MCP command's first release; v53.3.0 was the last affected release) **Patched version:** `v53.4.0` **Credit:** novice-22 (Urim), via private coordinated disclosure. ## Summary The `start_kubeshark` MCP tool builds a `kubeshark tap` command by appending the caller-supplied `pod_regex` as a bare positional argument, with no `--` end-of-options separator. Because `tap` is a cobra command, a `pod_regex` that begins with `-`/`--set=` is parsed as a **flag**, not as the pod regex. An attacker who can influence the tool arguments (e.g. indirect prompt injection against an agent driving `kubeshark mcp --allow-destructive`) can inject arbitrary `--set` Helm value overrides — notably `tap.docker.registry` / `tap.docker.tag` — redirecting the deployed worker/hub/front images to an attacker-controlled registry. The worker DaemonSet runs privileged with `hostNetwork` and the host filesystem mounted, so an attacker image yields node and cluster-admin compromise. ## Introduced in Commit `0bbbb473` — "[1] Add MCP (Model Context Protocol) server command (#1832)", 2026-02-06 — first released in **v53.1.0** (`v53.1.0~23`). The `pod_regex` argument has been appended as a bare positional since the tool's introduction; there is no regression window, every MCP-capable release is affected. ## Details In `callStartKubeshark` (`cmd/mcpRunner.go`), the command was built as `["tap", <pod_regex>, "-n", …, "--set", …, "--set", "headless=true"]` with `pod_regex` inserted as a raw element. cobra parses flags positionally-agnostic and there was no `--` guard, so `pod_regex="--set=tap.docker.registry=…,tap.docker.tag=…"` became a real `--set`. The tool is only registered when `kubeshark mcp --allow-destructive` is set. ## Proof of concept (
Properties
- Summary
- Kubeshark: MCP `start_kubeshark` argument injection via `pod_regex` → image redirect → cluster takeover
- Severity
- high
- Nvd fetched at
- 2026-11-16T22:44:16.771339+00:00
- Cvss score
- 7.2
- Cvss severity
- HIGH
- Retrieved at
- 2026-11-16T22:45:19+00:00
- Ghsa published
- 2026-11-16T22:17:32Z
- Source url
- https://github.com/advisories/GHSA-8vf2-hxg5-crqh
- Ghsa updated
- 2026-11-16T22:17:33Z
- Ghsa id
- GHSA-8vf2-hxg5-crqh
- Last source
- GitHub Advisory Database
- Score
- 7.2
- Cvss version
- 3.1
- Cve id
- CVE-2026-129236
- Cvss vector
- CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
- First seen by Signal
- 2026-11-16T18:35:21+00:00
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
- Published at
- 2026-11-16T17:17:31.313
- Last modified
- 2026-11-16T17:17:31.313
Related Entities (3)
AFFECTS (1)
HAS_WEAKNESS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph