Kubeshark
Kubeshark: MCP `start_kubeshark` argument injection via `pod_regex` → image redirect → cluster takeover
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 53.1.0, < 53.4.0
Fixed in 53.4.0
Mitigation
Upgrade kubeshark to 53.4.0 or later.
References
- Vendor advisory github.com/kubeshark/kubeshark/security/adviso…
- Patch github.com/kubeshark/kubeshark/pull/1957
- Patch github.com/kubeshark/kubeshark/commit/a76a1920…
1 more
- Release notes github.com/kubeshark/kubeshark/releases/tag/v5…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.