All vulnerabilities

Go

CVE-2026-129236

Kubeshark: MCP `start_kubeshark` argument injection via `pod_regex` → image redirect → cluster takeover

Severity
High 7.2
Published
16 Nov 2026
Last changed
16 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.0.2-0.20260812200004-a76a1920dc75
Exploit chance
0.2% in the next 30 daysHigher than 12% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Argument injection (CWE-88)
Attack
Needs local access · Only under certain conditions · Needs an administrator account · Needs someone to click or open something
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
Also known as
GHSA-8vf2-hxg5-crqh
Sources
OSV.dev and GitHub

Description

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.

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.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

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.
Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
github.com/kubeshark/kubesharkGo · osv:Go:github.com/kubeshark/kubeshark
  • From 0.0.2-0.20260206182249-0bbbb473ea3f before 0.0.2-0.20260812200004-a76a1920dc75

About github.com/kubeshark/kubeshark

Vulnerabilities in github.com/kubeshark/kubeshark

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
1
Known exploited
0
Search the list for github.com/kubeshark/kubeshark

References