Skip to main content

Kubeshark EUVDEUVD-2026-126527

| CVE-2026-129235 MEDIUM
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-11-16 GitHub_M GHSA-gj7r-p794-hhq5
5.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Plant prompt injection in agent-ingested content
  2. Exploit
    Induce agent to invoke download_file
  3. Execution
    Fetch Hub PCAP, write to chosen dest
  4. Impact
    Read 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 kubeshark mcp stdio server driven by an AI agent that ingests attacker-influenced content (indirect prompt injection); no --allow-destructive flag is needed because download_file is registered unconditionally. The confidentiality impact (reading captured network traffic) applies specifically to default auth-disabled Hub deployments (community/dev, AUTH_ENABLED unset), where the Hub API answers without authentication. LIMITING FACTORS: AC:H means the attacker must both land an injection in content the agent ingests and know the deployment layout; UI:R requires an operator to be actively driving an agent against the tool; the arbitrary-write impact is confined to paths writable by the (normally unprivileged) MCP user, and the written content is constrained to Hub API responses, so reliable RCE is not achievable; only versions 53.1.0 through 53.3.0 are affected, fixed in 53.4.0. Note the local destination-write fix does NOT close the unauthenticated Hub read path - enabling Hub authentication (AUTH_ENABLED=true + IdP/license) is required for that.

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 kubeshark mcp later ingests, coercing the agent into calling the unconditionally-registered download_file tool with a caller-controlled Hub path and local dest. On a default (auth-disabled) community Hub the agent exports a captured-traffic PCAP and writes the returned bytes to an attacker-chosen path, enabling recovery of captured credentials and arbitrary local file writes as the MCP user. The reporter demonstrated recovering a planted Authorization: Bearer credential from a PCAP and writing fetched bytes to an arbitrary path; the local vector (AV:L) and high complexity (AC:H) mean the injection must be delivered into the agent's input and the deployment layout known.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

kubeshark 53.1.0, < 53.4.0

Affected Packages

go github.com/kubeshark/kubeshark fix: 0.0.2-0.20260812200004-a76a1920dc75
euvd kubeshark fix: 53.4.0

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

Vendor (GitHub_M) PRIMARY 5.3 MEDIUM
AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
4.0 AV:L/AC:H/AT:N/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Nov 16, 2026 - 18:19 EUVD

DescriptionCVE.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

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
niche Kubernetes observability tool; vulnerable mcp subcommand rarely deployed
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy