MEDIUMCVSS v3.1 5.3Vulnerability

CVE-2026-129235

**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. ## Summary 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. `download_file` is registered unconditionally (available in the default, non-`--allow-destructive` posture). ## Introduced in Commit `eb7dc42b` — "Add get_file_url and download_file MCP tools (#1853)", 2026-03-04 — first released in **v53.1.0** (`v53.1.0~1`). An earlier attempt (`dbfd17d9`) was reverted (`a46f05c4`) before any release, so no tag before v53.1.0 is affected. ## Details In `callDownloadFile` (`cmd/mcpRunner.go`), both `path` and `dest` come straight from the tool arguments: - `dest` was passed directly to `os.Create(dest)` with no confinement — no `filepath.Clean`, no base-directory containment, no rejection of absolute paths or `../` traversal. Any path the process can write is reachable. - `path` was concatenated onto the Hub API base URL with no allowlist, so any Hub endpoint (including captured-traffic exports) is reachable. ## Auth context (CWE-306 / CWE-200) The tool originally issued the fetch with no authentication. The authentication gap was addressed by the gated-Hub authenticat

Properties

Summary
Kubeshark: MCP `download_file` writes fetched bytes to an unvalidated destination path
Severity
medium
Nvd fetched at
2026-11-16T22:44:16.771339+00:00
Cvss score
5.3
Cvss severity
MEDIUM
Retrieved at
2026-11-16T22:45:19+00:00
Ghsa published
2026-11-16T22:18:58Z
Source url
https://github.com/advisories/GHSA-gj7r-p794-hhq5
Ghsa updated
2026-11-16T22:18:58Z
Ghsa id
GHSA-gj7r-p794-hhq5
Last source
GitHub Advisory Database
Score
5.3
Cvss version
3.1
Cve id
CVE-2026-129235
Cvss vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
First seen by Signal
2026-11-16T18:35:21+00:00
Is ghsa only
false
Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
Published at
2026-11-16T17:17:31.153
Last modified
2026-11-16T19:17:39.907

Related Entities (4)

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-129235 (CVSS v3.1 5.3) — Ninja Signal Threat Intelligence | Ninja Signal