All vulnerabilities

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
Weakness
Path traversal (CWE-22)Argument injection (CWE-88)
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.

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

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.
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.20260304171723-eb7dc42b6ea0 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