Read the docs

Kubeshark MCP download_file writes files to unvalidated paths

Priority LOW 21CWE-88Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
High
Impact type
Code execution
Confidentiality · integrity · availability
High · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-88.

Summary

Kubeshark from 53.1.0 before 53.4.0 has an improper path limitation flaw (CWE-22) in the download_file tool of its MCP runner. The tool writes bytes fetched from a Kubeshark Hub API response to a caller-supplied destination path without confining it. An attacker who influences arguments through an AI agent driving kubeshark mcp can write files to any path writable by the local MCP user, and can read captured network traffic from default auth-disabled Hub deployments.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

Description from the CNA

Kubeshark is an eBPF-powered network observability tool for Kubernetes. From 53.1.0 until 53.4.0, the download_file tool in cmd/mcpRunner.go accepts caller-controlled path and dest values, fetches a selected Kubeshark Hub API response, and writes the returned bytes through os.Create(dest) in callDownloadFile without confining the destination. An attacker who influences arguments through an AI agent driving kubeshark mcp can write Hub-supplied bytes to any path writable by the local MCP user and can read captured network traffic from default auth-disabled Hub deployments. The tool is registered without --allow-destructive; reliable code execution is not demonstrated because the bytes are constrained to Hub API responses. Hub-side default authentication remains outside this remediation, so captured traffic can remain readable in default auth-disabled Hub deployments after the local destination-write fix. The destination-write issue is fixed in version 53.4.0.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
Fix Fixed kubeshark (kubeshark): 53.4.0github.com/kubeshark/kubeshark (Go): 0.0.2-0.20260812200004-a76a1920dc75

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
kubesharkkubeshark53.1.0 to before 53.4.053.4.0Patch availableCNA
—github.com/kubeshark/kubeshark (Go)0.0.2-0.20260304171723-eb7dc42b6ea0 to before 0.0.2-0.20260812200004-a76a1920dc750.0.2-0.20260812200004-a76a1920dc75Patch availableGHSA-gj7r-p794-hhq5
  • kubeshark Vendorkubeshark Affected 53.1.0 to before 53.4.0 Fixed in 53.4.0 Patch available CNA
  • github.com/kubeshark/kubeshark (Go) Vendor— Affected 0.0.2-0.20260304171723-eb7dc42b6ea0 to before 0.0.2-0.20260812200004-a76a1920dc75 Fixed in 0.0.2-0.20260812200004-a76a1920dc75 Patch available GHSA-gj7r-p794-hhq5

Remediation

Update kubeshark to version 53.4.0, which fixes the destination-write issue. The Go module github.com/kubeshark/kubeshark is fixed in 0.0.2-0.20260812200004-a76a1920dc75. Hub default authentication is not changed by this fix, so captured traffic can remain readable in default auth-disabled Hub deployments.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

  • Fix · CNA kubeshark (kubeshark) Fixed in 53.4.0
  • Fix · GHSA-gj7r-p794-hhq5 github.com/kubeshark/kubeshark (Go) Fixed in 0.0.2-0.20260812200004-a76a1920dc75 Advisory →

Timeline

  1. 2026-11-16 Threatist record created from CVE-2026-129235
  2. 2026-11-16 CISA SSVC decision points changed
  3. 2026-11-16 Alias added: GHSA-gj7r-p794-hhq5
  4. 2026-11-16 Fix available: Go/github.com/kubeshark/[email protected] · GHSA-gj7r-p794-hhq5
  5. 2026-11-16 CVSS score added · GHSA-gj7r-p794-hhq5
  6. 2026-11-16 Weakness changed · GHSA-gj7r-p794-hhq5
  7. 2026-11-16 6 new references · GHSA-gj7r-p794-hhq5

References

  • TI-2026-92230 Argument injection in Kubeshark MCP tool allows image redirection CVSS 3.1HIGH 7.2

Sources