CWE-22 · CWE-88
**Ecosystem / package:** Go — `github.com/kubeshark/kubeshark` (the `kubeshark` CLI, `kubeshark mcp` subcommand) **Affected component:** `cmd/mcpRunner.go`, MCP tool `download_file` **Affected versions:** `>= v53.1.0`, `< v53.4.0` (the flaw shipped with the tool's first release; v53.3.0 was the last affected release) **Patched version:** `v53.4.0` **Credit:** novice-22 (Urim), via private coordinated disclosure. ## Summary The `download_file` MCP tool fetches a caller-supplied `path` from the Kubeshark Hub API and writes the response body to a caller-supplied `dest` on the local filesystem with no validation of `dest`. An attacker who can influence the MCP tool arguments — e.g. via indirect prompt injection against an AI agent driving `kubeshark mcp` — can write attacker-controlled bytes to an arbitrary path writable by the user running the MCP server (e.g. `~/.ssh/authorized_keys`, `~/.kube/config`, `~/.bashrc`), and can request arbitrary Hub API endpoints. `download_file` is r
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-129235
CVSS 5.3/10 · ORTA · 16.11.2026
CWE: CWE-22, CWE-88
Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 AÇIK NEDİR?
Path Traversal / LFI
Açıklama: Ecosystem / package: Go — github.com/kubeshark/kubeshark (the kubeshark
CLI, kubeshark mcp subcommand)
Affected component: cmd/mcpRunner.go, MCP tool download_file
Affected versions: >= v53.1.0, < v53.4.0 (the flaw shipped with the
tool's first release; v53.3.0 was the last affected release)
Patched version: v53.4.0
Credit: novice-22 (Urim), via private coo…
Etkilenen: github.com/kubeshark/kubeshark
⚡ SALDIRI ZİNCİRİ
Saldırı adımları:
1. ../../../../etc/passwd ile Linux dosya sistemi okunur.
2. URL encode: ..%2F..%2F..%2Fetc%2Fpasswd
3. Double encode: ..%252F..%252Fetc%252Fpasswd
4. PHP LFI → RCE: Log poisoning ile User-Agent: <?php system($_GET['cmd']); ?> gönderilir.
5. PHP wrapper: php://filter/convert.base64-encode/resource=config.php ile kaynak kodu okunur.
🔧 Araçlar: LFISuite, ffuf, Burp Suite, dotdotpwn
🗺️ MITRE ATT&CK: T1083 (File and Directory Discovery), T1552 (Unsecured Credentials)
🌍 GERÇEK DÜNYA ETKİSİ
Tüm gizli veriler okunabilir/çalınabilir.
🛡️ ÇÖZÜM VE MİTİGASYON
→ github.com/kubeshark/kubeshark için üretici güvenlik güncellemesini uygula.
→ realpath() ile canonicalize et, whitelist kullan.
→ WAF kuralı ekle, anormal trafik için IDS alert oluştur.
⚠️ ACİLİYET
📋 Rutin güncelleme (30 gün)
────────────────────────────────────────
[Kural Tabanlı Analiz] [💡 config.json dosyasına ai_key (Claude: sk-ant-... veya Groq: gsk_...) ekleyerek gerçek AI analizi kullanabilirsiniz]
[⚠️ AI key mevcut ancak istek başarısız — kural tabanlı analiz kullanıldı]