Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPlant prompt injection in agent-ingested content
-
ExploitInduce agent to invoke download_file
-
ExecutionFetch Hub PCAP, write to chosen dest
-
ImpactRead captured credentials or overwrite local files
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
|
| Exploitation Conditions | Requires a local |
| Impact | This is a genuine but conditional, moderate-priority issue rather than an emergency. The vendor's own CVSS 3.1 vector (AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N = 5.3 Medium) is internally consistent and the strongest signal available: the attack surface is local (kubeshark mcp is a local stdio MCP server with no network listener the attacker reaches), requires high attacker complexity (AC:H - land an indirect prompt injection in content the agent ingests AND know the deployment layout), and needs an operator actively driving an agent (UI:R). The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with the Medium score. No EPSS score and no CISA KEV entry were provided, and nothing indicates active exploitation - exploitation status is therefore unconfirmed. A reporter PoC is described in the GHSA advisory (snapshot PCAP export → download_file → recovery of a planted Bearer credential, plus arbitrary local write), so a public PoC reference exists, but it is not published as standalone, verified working exploit code. Signals do conflict on two points worth flagging: the input lists CWE-88 (argument injection) while the advisory scores it as CWE-22 (path traversal / arbitrary file write), and the input 'RCE' tag directly contradicts the advisory, which states reliable code execution is NOT demonstrated because the written bytes are constrained to Hub API responses. The highest real-world impact is confidentiality (C:H) - readable captured traffic including credentials/tokens/PII - but ONLY on default auth-disabled Hub deployments; that confidentiality path is not closed by the 53.4.0 fix, which only confines the local destination write. |
| Exploit ScenarioDerived | An attacker plants indirect prompt injection in content that an AI agent driving |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 16, 2026
Arbitrary file write in the Kubeshark MCP server (the kubeshark mcp stdio subcommand, versions 53.1.0 through 53.3.0) lets an attacker who can influence tool arguments - for example through indirect prompt injection against an AI agent driving the server - write Hub-API-supplied bytes to any path the local MCP user can write, including locations such as ~/.ssh/authorized_keys or ~/.kube/config. The same unvalidated path argument also lets the tool fetch arbitrary Kubeshark Hub API endpoints, so on a default auth-disabled Hub deployment captured network traffic containing credentials, tokens and PII can be read and exfiltrated end-to-end. The vendor advisory documents a reporter proof-of-concept workflow (export_snapshot_pcap followed by download_file) that recovered a planted bearer token from a captured PCAP; no public exploit code is confirmed and there is no KEV or EPSS signal, and the local write is confined to the invoking user's privileges with content constrained to Hub responses, so reliable code execution is not demonstrated.
RemediationAI
Upgrade to Kubeshark 53.4.0, the vendor-released patch (release tag https://github.com/kubeshark/kubeshark/releases/tag/v53.4.0, commit a76a1920dc7587be700a17f1592f58a9512ad214, PR https://github.com/kubeshark/kubeshark/pull/1957), which confines download_file destinations to a base directory, rejects .. and absolute destinations, re-checks containment after symlink resolution and refuses to follow a symlink at the final path component. Because the destination-write fix does not close the unauthenticated Hub read path, also enable Hub authentication (AUTH_ENABLED=true plus an IdP/license) on any deployment where captured traffic must be protected - without it, captured credentials, tokens and PII remain readable in default auth-disabled Hub installs. If upgrading immediately is not possible, the vendor-suggested workarounds are to run kubeshark mcp as an unprivileged user in an isolated working directory (limits where bytes can land but does not prevent writes within that directory or reads from the Hub) and to avoid exposing the MCP server to untrusted content or untrusted agent inputs (removes the prompt-injection delivery path but depends on operator discipline). The patch also relocates the write sandbox via KUBESHARK_MCP_DOWNLOAD_DIR, which can be pointed at a dedicated empty directory to further narrow where downloads land; note that setting it to a broad path such as a home directory weakens that containment.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Kubeshark is an eBPF-based network observability tool for Kubernetes, distributed as the Go module github.com/kubeshark/kubeshark and shipped as the kubeshark CLI. The vulnerable surface is the Model Context Protocol server exposed by the kubeshark mcp subcommand, a local stdio server that an AI agent calls as a tool provider. In cmd/mcpRunner.go, the download_file tool took both path and dest straight from tool arguments: dest was handed to os.Create(dest) with no filepath.Clean, no base-directory containment and no rejection of absolute paths or ../ segments, and path was concatenated onto the Hub API base URL with no allowlist. The root cause class is path traversal / improper limitation of a pathname to a restricted directory (CWE-22 in the GHSA; the CVE record classifies it as CWE-88, argument injection), compounded by CWE-306/CWE-200 context because the fetch originally carried no credentials and the Hub ships authentication disabled by default for community/dev installs. The tool was registered unconditionally, so it was reachable without the --allow-destructive flag. Version 53.4.0 fixes this by resolving dest through secureDownloadDest, which confines writes to the working directory (relocatable via KUBESHARK_MCP_DOWNLOAD_DIR), rejects absolute paths and .. traversal, re-checks containment after evaluating symlinks, and opens the final component with O_NOFOLLOW on Unix (a Windows stub documents that the symlink-planting scenario requires admin rights or developer mode). The Hub-side path fix only rejects .. segments; a strict prefix allowlist and default Hub authentication enforcement are tracked as follow-ups, so the unauthenticated read path on default installs is not closed by this patch.
Know when Kubeshark gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
AV:L because the exploited surface is a local stdio MCP server; AC:H as the attacker must land an injection and know the layout; PR:N since download_file is registered unconditionally; I:L as writes are confined to the unprivileged user and constrained to Hub bytes.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
EUVD-2026-126527
GHSA-gj7r-p794-hhq5
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB