{"vuln_id":"CVE-2026-129236","aliases":["GHSA-8vf2-hxg5-crqh"],"description":"Kubeshark: MCP `start_kubeshark` argument injection via `pod_regex` → image redirect → cluster takeover","published_at":"2026-11-16T17:17:31.313000Z","modified_at":"2026-11-17T17:18:02.187000Z","first_seen_at":"2026-11-21T19:15:20.238592Z","severity":"high","severity_source":"nvd","cvss_score":7.2,"cvss_vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H","cwe":["CWE-88"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00223,"epss_percentile":0.12944,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-129236"},"matched_alias":null,"items":[{"id":10994,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-8vf2-hxg5-crqh: Kubeshark: MCP `start_kubeshark` argument injection via `pod_regex` → image redirect → cluster takeover","summary":"Kubeshark: MCP `start_kubeshark` argument injection via `pod_regex` → image redirect → cluster takeover\n\n**Ecosystem / package:** Go — `github.com/kubeshark/kubeshark` (the `kubeshark`\nCLI, `kubeshark mcp` subcommand)\n**Affected component:** `cmd/mcpRunner.go`, MCP tool `start_kubeshark`\n**Affected versions:** `>= v53.1.0`, `< v53.4.0` (the flaw shipped with the MCP\ncommand's first release; v53.3.0 was the last affected release)\n**Patched version:** `v53.4.0`\n**Credit:** novice-22 (Urim), via private coordinated disclosure.\n\n## Summary\nThe `start_kubeshark` MCP tool builds a `kubeshark tap` command by appending the\ncaller-supplied `pod_regex` as a bare positional argument, with no `--`\nend-of-options separator. Because `tap` is a cobra command, a `pod_regex` that\nbegins with `-`/`--set=` is parsed as a **flag**, not as the pod regex. An\nattacker who can influence the tool arguments (e.g. indirect prompt injection\nagainst an agent driving `kubeshark mcp --allow-destructive`) can inject\narbitrary `--set` Helm value overrides — notably `tap.docker.registry` /\n`tap.docker.tag` — redirecting the deployed worker/hub/front images to an\nattacker-controlled registry. The worker DaemonSet runs privileged with\n`hostNetwork` and the host filesystem mounted, so an attacker image yields node\nand cluster-admin compromise.\n\n## Introduced in\nCommit `0bbbb473` — \"[1] Add MCP (Model Context Protocol) server command\n(#1832)\", 2026-02-06 — first released in **v53.1.0** (`v53.1.0~23`). The\n`pod_regex` argument has been appended as a bare positional since the tool's\nintroduction; there is no regression window, every MCP-capable release is\naffected.\n\n## Details\nIn `callStartKubeshark` (`cmd/mcpRunner.go`), the command was built as\n`[\"tap\",\n, \"-n\", …, \"--set\", …, \"--set\", \"headless=true\"]` with\n`pod_regex` inserted as a raw element. cobra parses flags positionally-agnostic\nand there was no `--` guard, so `pod_regex=\"--set=tap.docker.registry=…,tap.docker.tag=…\"`\nbecame a real `--set`. The tool is only registered when\n`kubeshark mcp --allow-destructive` is set.\n\n## Proof of concept (reporter, abridged)\nDriving `kubeshark mcp --allow-destructive`: `start_kubeshark` with\n`pod_regex=\"--set=tap.docker.registry=\n,tap.docker.tag=\n\"` caused\nthe CLI to construct `kubeshark tap --set=… --set headless=true`, deploying an\nattacker image. The image ran as root inside the privileged worker container and\nread the host's cluster-admin kubeconfigs\n(`/etc/kubernetes/super-admin.conf`, `admin.conf`, `pki/`) — i.e. cluster-admin\ntakeover from a single `pod_regex` value.\n\n## Impact\nFull Kubernetes cluster compromise (cluster-admin) from a single injected tool\nargument, when the operator runs the MCP server with `--allow-destructive`.\n\n## Severity rationale\nKubeshark scores this **7.2 High**, down from the reporter's 8.3, on two metrics. The\nimpact half of the vector (`S:C/C:H/I:H/A:H`) is unchanged — cluster-admin\ntakeover is real and Kubeshark does not contest it.\n\n- **`AV:N` → `AV:L`.** `kubeshark mcp` is a local stdio MCP server with no\nnetwork listener. The attacke\n\nAffected: Go:github.com/kubeshark/kubeshark\n\nFixed in: 0.0.2-0.20260812200004-a76a1920dc75\n\nReferences:\nhttps://github.com/kubeshark/kubeshark/security/advisories/GHSA-8vf2-hxg5-crqh\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-129236\nhttps://github.com/kubeshark/kubeshark/pull/1957\nhttps://github.com/kubeshark/kubeshark/commit/a76a1920dc7587be700a17f1592f58a9512ad214\nhttps://github.com/kubeshark/kubeshark\nhttps://github.com/kubeshark/kubeshark/releases/tag/v53.4.0","url":"https://osv.dev/vulnerability/GHSA-8vf2-hxg5-crqh","published_at":"2026-11-16T22:17:32Z","updated_at":"2026-11-16T22:30:03.904555Z","fetched_at":"2026-11-21T19:15:55.946356Z","severity":"high","cvss_score":7.2,"epss":0.00223,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"github.com/kubeshark/kubeshark","vuln_id":"CVE-2026-129236","vuln_ids":["CVE-2026-129236","GHSA-8VF2-HXG5-CRQH"],"tags":["osv","go","fix-available"],"cluster_id":2402,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10994","html":"https://vulnwatch.ve1ve2.com/item/10994"}},{"id":2479,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-8vf2-hxg5-crqh / CVE-2026-129236: Kubeshark: MCP `start_kubeshark` argument injection via `pod_regex` → image redirect → cluster takeover","summary":"Kubeshark: MCP `start_kubeshark` argument injection via `pod_regex` → image redirect → cluster takeover\n\n**Ecosystem / package:** Go — `github.com/kubeshark/kubeshark` (the `kubeshark`\nCLI, `kubeshark mcp` subcommand)\n**Affected component:** `cmd/mcpRunner.go`, MCP tool `start_kubeshark`\n**Affected versions:** `>= v53.1.0`, `< v53.4.0` (the flaw shipped with the MCP\ncommand's first release; v53.3.0 was the last affected release)\n**Patched version:** `v53.4.0`\n**Credit:** novice-22 (Urim), via private coordinated disclosure.\n\n## Summary\nThe `start_kubeshark` MCP tool builds a `kubeshark tap` command by appending the\ncaller-supplied `pod_regex` as a bare positional argument, with no `--`\nend-of-options separator. Because `tap` is a cobra command, a `pod_regex` that\nbegins with `-`/`--set=` is parsed as a **flag**, not as the pod regex. An\nattacker who can influence the tool arguments (e.g. indirect prompt injection\nagainst an agent driving `kubeshark mcp --allow-destructive`) can inject\narbitrary `--set` Helm value overrides — notably `tap.docker.registry` /\n`tap.docker.tag` — redirecting the deployed worker/hub/front images to an\nattacker-controlled registry. The worker DaemonSet runs privileged with\n`hostNetwork` and the host filesystem mounted, so an attacker image yields node\nand cluster-admin compromise.\n\n## Introduced in\nCommit `0bbbb473` — \"[1] Add MCP (Model Context Protocol) server command\n(#1832)\", 2026-02-06 — first released in **v53.1.0** (`v53.1.0~23`). The\n`pod_regex` argument has been appended as a bare positional since the tool's\nintroduction; there is no regression window, every MCP-capable release is\naffected.\n\n## Details\nIn `callStartKubeshark` (`cmd/mcpRunner.go`), the command was built as\n`[\"tap\",\n, \"-n\", …, \"--set\", …, \"--set\", \"headless=true\"]` with\n`pod_regex` inserted as a raw element. cobra parses flags positionally-agnostic\nand there was no `--` guard, so `pod_regex=\"--set=tap.docker.registry=…,tap.docker.tag=…\"`\nbecame a real `--set`. The tool is only registered when\n`kubeshark mcp --allow-destructive` is set.\n\n## Proof of concept (reporter, abridged)\nDriving `kubeshark mcp --allow-destructive`: `start_kubeshark` with\n`pod_regex=\"--set=tap.docker.registry=\n,tap.docker.tag=\n\"` caused\nthe CLI to construct `kubeshark tap --set=… --set headless=true`, deploying an\nattacker image. The image ran as root inside the privileged worker container and\nread the host's cluster-admin kubeconfigs\n(`/etc/kubernetes/super-admin.conf`, `admin.conf`, `pki/`) — i.e. cluster-admin\ntakeover from a single `pod_regex` value.\n\n## Impact\nFull Kubernetes cluster compromise (cluster-admin) from a single injected tool\nargument, when the operator runs the MCP server with `--allow-destructive`.\n\n## Severity rationale\nKubeshark scores this **7.2 High**, down from the reporter's 8.3, on two metrics. The\nimpact half of the vector (`S:C/C:H/I:H/A:H`) is unchanged — cluster-admin\ntakeover is real and Kubeshark does not contest it.\n\n- **`AV:N` → `AV:L`.** `kubeshark mcp` is a local stdio MCP server with no\nnetwork listener. The attacke\n\nAffected packages: go:github.com/kubeshark/kubeshark\nPatched: github.com/kubeshark/kubeshark 0.0.2-0.20260812200004-a76a1920dc75","url":"https://github.com/advisories/GHSA-8vf2-hxg5-crqh","published_at":"2026-11-16T22:17:32Z","updated_at":"2026-11-16T22:17:33Z","fetched_at":"2026-11-21T19:15:18.416869Z","severity":"high","cvss_score":7.2,"epss":0.00223,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"github.com/kubeshark/kubeshark","vuln_id":"CVE-2026-129236","vuln_ids":["CVE-2026-129236","GHSA-8VF2-HXG5-CRQH"],"tags":["ghsa","go","CWE-88"],"cluster_id":2402,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2479","html":"https://vulnwatch.ve1ve2.com/item/2479"}},{"id":6193,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-129236: Kubeshark is an eBPF-powered network observability tool for Kubernetes. From 53.1.0 until 53.4.0, the start_kubeshark MCP tool in cmd/mcpRunner.go uses callSta…","summary":"Kubeshark is an eBPF-powered network observability tool for Kubernetes. From 53.1.0 until 53.4.0, the start_kubeshark MCP tool in cmd/mcpRunner.go uses callStartKubeshark to append caller-controlled pod_regex as a bare positional argument to kubeshark tap without a -- end-of-options separator, allowing a value beginning with --set to be parsed as a Helm value override. An attacker who influences tool arguments against kubeshark mcp --allow-destructive can redirect the privileged worker, Hub, and front images through tap.docker.registry and tap.docker.tag to an attacker-controlled registry. Because the deployed worker DaemonSet runs privileged with host networking and host filesystem access, a malicious image can obtain node and cluster-admin access when the host already has permission to deploy it. This issue is fixed in version 53.4.0.\n\nReferences:\nhttps://github.com/kubeshark/kubeshark/commit/a76a1920dc7587be700a17f1592f58a9512ad214\nhttps://github.com/kubeshark/kubeshark/pull/1957\nhttps://github.com/kubeshark/kubeshark/releases/tag/v53.4.0\nhttps://github.com/kubeshark/kubeshark/security/advisories/GHSA-8vf2-hxg5-crqh","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129236","published_at":"2026-11-16T17:17:31.313000Z","updated_at":"2026-11-17T17:18:02.187000Z","fetched_at":"2026-11-21T19:15:31.481963Z","severity":"high","cvss_score":7.2,"epss":0.00223,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-129236","vuln_ids":["CVE-2026-129236","GHSA-8VF2-HXG5-CRQH"],"tags":["CWE-88"],"cluster_id":2403,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/6193","html":"https://vulnwatch.ve1ve2.com/item/6193"}}]}