Go
CVE-2026-129235
Kubeshark: MCP `download_file` writes fetched bytes to an unvalidated destination path
- Severity
- Medium 5.3
- 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 7% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Needs local access · Only under certain conditions · No login needed · Needs someone to click or open something
- Attacker can
- Read data · Change some data
- CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N- Also known as
- GHSA-gj7r-p794-hhq5
- 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 download_file Affected versions: >= v53.1.0, < v53.4.0 (the flaw shipped with the tool'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 download_file MCP tool fetches a caller-supplied path from the Kubeshark Hub API and writes the response body to a caller-supplied dest on the local filesystem with no validation of dest. An attacker who can influence the MCP tool arguments — e.g. via indirect prompt injection against an AI agent driving kubeshark mcp — can write attacker-controlled bytes to an arbitrary path writable by the user running the MCP server (e.g. ~/.ssh/authorized_keys, ~/.kube/config, ~/.bashrc), and can request arbitrary Hub API endpoints.
Workarounds
- Run kubeshark mcp as an unprivileged user in an isolated working directory.
- Do not expose the MCP server to untrusted content / untrusted agent inputs.
- Enable Hub authentication (AUTH_ENABLED=true + an IdP/license) to close the unauthenticated read path.
Affected software
| Software | Affected versions |
|---|---|
github.com/kubeshark/kubesharkGo · osv:Go:github.com/kubeshark/kubeshark |
|
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
- CVE-2026-129236Kubeshark: MCP `start_kubeshark` argument injection via `pod_regex` → image redirect → cluster takeoverHigh 7.2 16 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-129235
- GitHub Advisory Database https://github.com/advisories/GHSA-gj7r-p794-hhq5