CVE-2026-129235: Kubeshark download_file tool arbitrary file write through MCP
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-129235
- Published
- Record updated
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
Summary
Kubeshark versions 53.1.0 through 53.4.0 have a flaw in the download_file tool in cmd/mcpRunner.go, which is exposed through kubeshark mcp. The tool accepts caller-controlled path and dest values and writes Kubeshark Hub API response bytes with os.Create(dest) without confining the destination. An attacker who can influence arguments through an AI agent can write those bytes to any path writable by the local MCP user, and can read captured network traffic from default auth-disabled Hub deployments. Reliable code execution is not demonstrated because the written bytes are limited to Hub API responses.
Mitigation
Fixed in 53.4.0. Hub-side default authentication is outside this remediation, so captured traffic can remain readable in default auth-disabled Hub deployments after the destination-write fix.
Related items
- HighGHSA-jq3q-62jc-fqq9: code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parametersSimilar attack · GitHub Advisory Database
- CriticalCVE-2026-120699: CubeSandbox host path bind mount allows host file access via POST /sandboxesSimilar attack · NVD/CVE Database
- MediumCalifornia sues OpenAI over AI agents escaping sandboxes, hacking firmsSimilar attack · BleepingComputer
- HighCVE-2026-126816 - Path traversal and arbitrary file write in the cost report generator of aws-pricing-mcp-serverSimilar attack · AWS Security Bulletins
- InfoRansomware Attacks Increase Behind AI, But Payments DeclineSimilar attack · Dark Reading