# CVE-2026-129235: Kubeshark: MCP \`download\_file\` writes fetched bytes to an unvalidated destination path

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-28)
- **CWE:** CWE-88
- **Aliases:** GHSA-gj7r-p794-hhq5, GO-2026-6986
- **Published:** 2026-11-16T16:45:20.841Z
- **Modified:** 2026-11-23T20:30:14.246Z

## Who should check

- Projects that depend on Go package github.com/kubeshark/kubeshark (\>= 0.0.2-0.20260304171723-eb7dc42b6ea0, \< 0.0.2-0.20260812200004-a76a1920dc75)
- Anyone running kubeshark \>= 53.1.0, \< 53.4.0

## Description

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.

## Affected and fixed versions

- Go `github.com/kubeshark/kubeshark`: affected \>= 0.0.2-0.20260304171723-eb7dc42b6ea0, \< 0.0.2-0.20260812200004-a76a1920dc75; fixed 0.0.2-0.20260812200004-a76a1920dc75 (ghsa)
- kubeshark: \>= 53.1.0, \< 53.4.0 (cvelist)

## Technologies

Go modules

## Mitigation

- Upgrade github.com/kubeshark/kubeshark to 0.0.2-0.20260812200004-a76a1920dc75 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-129235. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-129235.md
Affected: github.com/kubeshark/kubeshark >= 0.0.2-0.20260304171723-eb7dc42b6ea0, < 0.0.2-0.20260812200004-a76a1920dc75
Fixed in: 0.0.2-0.20260812200004-a76a1920dc75

Steps:
1. Search this machine and project for github.com/kubeshark/kubeshark (Go), kubeshark: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-129235 being exploited?

There is no confirmed exploitation: CVE-2026-129235 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-129235?

Medium: CVSS 5.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-129235?

github.com/kubeshark/kubeshark \>= 0.0.2-0.20260304171723-eb7dc42b6ea0, \< 0.0.2-0.20260812200004-a76a1920dc75.

### Is there a fix for CVE-2026-129235?

Yes. Fixed in 0.0.2-0.20260812200004-a76a1920dc75. Upgrade github.com/kubeshark/kubeshark to 0.0.2-0.20260812200004-a76a1920dc75 or later.

### How do I check if I'm affected by CVE-2026-129235?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/kubeshark/kubeshark/security/advisories/GHSA-gj7r-p794-hhq5>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-129235>
- patch: <https://github.com/kubeshark/kubeshark/pull/1957>
- patch: <https://github.com/kubeshark/kubeshark/commit/a76a1920dc7587be700a17f1592f58a9512ad214>
- other: <https://github.com/kubeshark/kubeshark/releases/tag/v53.4.0>
- other: <https://github.com/advisories/GHSA-gj7r-p794-hhq5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-129235>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-gj7r-p794-hhq5> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-6986> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-129235> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-129235>
