Kubeshark: MCP `download_file` writes fetched bytes to an unvalidated destination path
CVE-2026-129235
Ecosystem / package: Go — github.com/kubeshark/kubeshark (the kubeshark CLI, kubeshark mcp subcommand) Affected component: cmd/mcpRunner.go, MCP tool downloadfile 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. Summary The downloadfile 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/authorizedkeys, ~/.kube/config, ~/.bashrc), and can request arbitrary Hub API endpoints. downloadfile is registered unconditionally (available in the default, non---allow-destructive posture). Introduced in Commit eb7dc42b — "Add getfileurl and downloadfile MCP tools (#1853)", 2026-03-04 — first released in v53.1.0 (v53.1.0~1). An earlier attempt (dbfd17d9) was reverted…
Assessment
- CVSS
- 5.3 (v3.1)
- Severity
- Medium
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 16 November 2026
- Last updated
- 16 November 2026
- Affected
- github.com/kubeshark/kubeshark
- Weakness
- CWE-22, CWE-88
CVSS vectorCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
At the source
References
- https://github.com/kubeshark/kubeshark/security/advisories/GHSA-gj7r-p794-hhq5
- https://nvd.nist.gov/vuln/detail/CVE-2026-129235
- https://github.com/kubeshark/kubeshark/pull/1957
- https://github.com/kubeshark/kubeshark/commit/a76a1920dc7587be700a17f1592f58a9512ad214
- https://github.com/kubeshark/kubeshark/releases/tag/v53.4.0
- https://github.com/advisories/GHSA-gj7r-p794-hhq5
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-129235