Kubeshark MCP `download_file` writes fetched bytes to an unvalidated destination path. From version 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.
Kubeshark MCP `start_kubeshark` argument injection via `pod_regex` can redirect images to an attacker-controlled registry, potentially leading to cluster takeover. This issue is fixed in version 53.4.0. The vulnerability allows an attacker to influence tool arguments against kubeshark mcp --allow-destructive, which can result in a malicious image being deployed with node and cluster-admin access. Kubernetes administrators and security teams should assess exposure and prioritize updating to the fixed version.