Kubeshark fixes arbitrary file write vulnerability in MCP tool
Start here
GitHub security advisory: The Kubeshark MCP tool download_file has an arbitrary file write vulnerability; an attacker who influences tool parameters via indirect prompt injection can write to any path writable by the running user; the Hub has no authentication by default, and credentials in captured traffic can be read. Official rating 5.3 Medium (reporter rated 7.1), no reliable RCE demonstrated, fixed in commit a76a192.
Generated by AI from reports · Updated 12 days ago
Progress timeline
- GitHub Security AdvisoriesSelectedKubeshark fixes MCP download_file arbitrary file write vulnerability, triggerable via indirect prompt injection
Kubeshark's MCP tool download_file has an arbitrary file write vulnerability because it does not validate the target path; the flaw was introduced in commit eb7dc42 and fixed in commit a76a192. An attacker able to influence MCP tool parameters (for example through indirect prompt injection against an agent driving kubeshark mcp) can write bytes to any path writable by the running user and can request any Hub API endpoint. The Hub disables authentication by default, and under the default installation, credentials, tokens and PII in captured traffic can be read end to end; the reporter recovered a pre-planted Bearer credential from a captured PCAP. Kubeshark rated the severity as 5.3 Medium (the reporter's original rating was 7.1), and reliable RCE was not demonstrated. The fix restricts the download target to the base directory and rejects ../ and absolute paths; mitigation recommendations include running as a non-privileged user, avoiding untrusted content or agent input, and enabling Hub authentication.
Related discussion
Attention trend
New sources per day
- Nov 17: 1 new sources (1 outlets, 0 accounts)
- Nov 18: 0 new sources (0 outlets, 0 accounts)
- Nov 19: 0 new sources (0 outlets, 0 accounts)
- Nov 20: 0 new sources (0 outlets, 0 accounts)
- Nov 21: 0 new sources (0 outlets, 0 accounts)
- Nov 22: 0 new sources (0 outlets, 0 accounts)
- Nov 23: 0 new sources (0 outlets, 0 accounts)
- Nov 24: 0 new sources (0 outlets, 0 accounts)
- Nov 25: 0 new sources (0 outlets, 0 accounts)
- Nov 26: 0 new sources (0 outlets, 0 accounts)
- Nov 27: 0 new sources (0 outlets, 0 accounts)
- Nov 28: 0 new sources (0 outlets, 0 accounts)
- Nov 29: 0 new sources (0 outlets, 0 accounts)