Kubeshark MCP download_file writes files to unvalidated paths
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| kubeshark | kubeshark | 53.1.0 to before 53.4.0 | 53.4.0 | Patch available | CNA |
| — | github.com/kubeshark/kubeshark (Go) | 0.0.2-0.20260304171723-eb7dc42b6ea0 to before 0.0.2-0.20260812200004-a76a1920dc75 | 0.0.2-0.20260812200004-a76a1920dc75 | Patch available | GHSA-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
- 2026-11-16 Threatist record created from CVE-2026-129235
- 2026-11-16 CISA SSVC decision points changed
- 2026-11-16 Alias added: GHSA-gj7r-p794-hhq5
- 2026-11-16 Fix available: Go/github.com/kubeshark/[email protected] · GHSA-gj7r-p794-hhq5
- 2026-11-16 CVSS score added · GHSA-gj7r-p794-hhq5
- 2026-11-16 Weakness changed · GHSA-gj7r-p794-hhq5
- 2026-11-16 6 new references · GHSA-gj7r-p794-hhq5
References
Other 5
- https://github.com/kubeshark/kubeshark/security/advisories/GHSA-gj7r-p794-hhq5
- 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/kubeshark/kubeshark
More kubeshark vulnerabilities
- TI-2026-92230 Argument injection in Kubeshark MCP tool allows image redirection CVSS 3.1HIGH 7.2
Sources
- CVE-2026-129235 · CVE Program
- CVE-2026-129235 · NVD
- GHSA-gj7r-p794-hhq5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences