
Scans nginx hosts for CVE-2026-123007 (HTTP/2 flow-control integer underflow) via passive version/SETTINGS fingerprinting and a non-destructive oracle probe.
Vulnerability scanner for CVE-2026-123007 — a critical unauthenticated RCE in nginx via an HTTP/2 integer underflow (flow-control overcredit).
Written by 0xNRG
nginx's HTTP/2 implementation incorrectly handles flow-control credit when streams are reset via a SETTINGS overflow. The cleanup path returns pending DATA credit to the connection window without enforcing the 31-bit HTTP/2 maximum, leaving the unsigned window above 0x7FFFFFFF. A subsequent WINDOW_UPDATE bounds check evaluates MAX - current with unsigned arithmetic, underflows, and accepts roughly 2³³ additional increments. With enough iterations the connection window wraps through its signed midpoint, nginx constructs an inverted output buffer and passes a negative size_t to memcpy, exposing heap and libc memory and enabling unauthenticated RCE.
Affected: nginx 1.9.5 – 1.31.8 (all builds). Confirmed exploitable: 1.31.6, 1.31.8.
Fixed: nginx 1.31.9 (mainline) and 1.30.7 (stable), released 18 November 2026.
Prerequisite: http2 on; must be active on the listener.
Two modes, both non-destructive:
Passive checks only — no server state is modified.
| Check | What it detects |
|---|---|
| HTTPS + TLS 1.3 | Target is reachable |
| HTTP/2 ALPN | h2 negotiated — exploit prerequisite |
Server: header | nginx version via HTTP/1.1 HEAD request |
| HTTP/2 SETTINGS | Exact match against known-vulnerable profiles |
Returns VULNERABLE_CONFIRMED on exact version + SETTINGS match, LIKELY_VULNERABLE on version range match, NOT_VULNERABLE when HTTP/2 is absent.
--probe)Triggers the actual flow-control accounting error and verifies it via two independent network-observable oracles, then stops immediately. The crash-amplification stage is never started — the target's nginx workers are unharmed.
Oracle 1 — streams 149 and 151 must be reset with FLOW_CONTROL_ERROR and the Range response body must match.
Oracle 2 — a PING ACK must be received on the now-overcredited connection, proving the underflowed guard accepted a second MAX increment.
Fingerprint mode — any OS, Python 3.8+, no extra packages.
Oracle probe mode — Linux x86-64, 64-bit CPython 3.10, OpenSSL 3 runtime (libssl.so.3).
# Verify probe prerequisites
python3.10 -c "
import ctypes, ssl, sys
print('cpython:', sys.implementation.name == 'cpython')
print('3.10: ', sys.version_info[:2] == (3, 10))
print('64-bit: ', ctypes.sizeof(ctypes.c_void_p) == 8)
print('ossl3: ', ssl.OPENSSL_VERSION_INFO[0] == 3, ssl.OPENSSL_VERSION)
"
# Single target
python3 nginx2root-scanner.py <target>
# With full URL or custom port
python3 nginx2root-scanner.py https://10.0.0.5:8443/
# Bulk scan from file (one host per line, # comments ignored)
python3 nginx2root-scanner.py --file hosts.txt
# Scan multiple ports per host
python3 nginx2root-scanner.py --file hosts.txt --ports 443,8443,4443
# Control parallelism and timeout (defaults: 50 workers, 3s)
python3 nginx2root-scanner.py --file hosts.txt --workers 100 --timeout 5
# Machine-readable JSON output
python3 nginx2root-scanner.py 10.0.0.5 --json
# Oracle probe — confirms vulnerability without crashing the target
# (Linux + CPython 3.10 + OpenSSL 3 required)
python3.10 nginx2root-scanner.py 10.0.0.5 --probe
| Flag | Default | Description |
|---|---|---|
target | — | Single target: URL, IP, or FQDN |
--file, -f | — | File with one target per line |
--ports | 443 | Comma-separated HTTPS ports to try per host |
--workers | 50 | Parallel workers (bulk mode) |
--timeout | 3 | Per-connection timeout in seconds |
--probe | off | Run non-destructive oracle probe |
--json | off | JSON output instead of human-readable |
Exit codes: 0 = not vulnerable / inconclusive · 1 = vulnerable · 2 = error
Vulnerable target (fingerprint match):
CVE-2026-123007 — nginx2root scanner
Written by 0xNRG
Target : 127.0.0.1:19443
────────────────────────────────────────────────────────────────
HTTPS reachable : yes
HTTP/2 (h2 ALPN) : yes
Server header : nginx/1.31.8
HTTP/2 SETTINGS : [3,128], [4,65536], [5,16777215], [9,1]
Profile match : nginx/1.31.8
────────────────────────────────────────────────────────────────
· HTTP/2 negotiated via ALPN h2
· Server header 'nginx/1.31.8' and HTTP/2 SETTINGS exactly match
validated vulnerable profile 'nginx/1.31.8'
────────────────────────────────────────────────────────────────
[!!!] VULNERABLE (confidence: high)
Not vulnerable (HTTP/2 disabled):
CVE-2026-123007 — nginx2root scanner
Written by 0xNRG
Target : example.com:443
────────────────────────────────────────────────────────────────
HTTPS reachable : yes
HTTP/2 (h2 ALPN) : no
Server header : nginx/1.31.8
HTTP/2 SETTINGS : —
Profile match : none
────────────────────────────────────────────────────────────────
· HTTP/2 not negotiated — prerequisite for CVE-2026-123007 is absent
────────────────────────────────────────────────────────────────
[OK] NOT VULNERABLE (confidence: high)
Oracle probe confirmed:
Oracle probe : CONFIRMED VULNERABLE
· TLS connected: TLSv1.3 ALPN=h2
· Trigger flight assembled (7 MiB + 262 144 KeyUpdates); sending…
· Oracle 1 PASSED — streams 149/151 reset FLOW_CONTROL_ERROR;
10-byte Range release matches public body prefix
· Oracle 2 PASSED — PING ACK received on overcredited connection
(underflowed WINDOW_UPDATE guard accepted additional MAX increment)
· VULNERABILITY CONFIRMED: cleanup overcredit observable on this target
────────────────────────────────────────────────────────────────
SUMMARY
────────────────────────────────────────────────────────────────
Hosts scanned : 523
Ports per host : 3 (443, 8443, 4443)
Total probes : 1569
Workers / timeout : 50 / 3.0s
────────────────────────────────────────────────────────────────
[OK] NOT VULNERABLE 12
[?] INCONCLUSIVE 1
[!] ERROR 1556
────────────────────────────────────────────────────────────────
Servers detected:
nginx/1.31.8 10
Kestrel 2
Microsoft-IIS/10.0 1
────────────────────────────────────────────────────────────────
HTTP/2 enabled (require manual review):
· example.com:443
────────────────────────────────────────────────────────────────
http2 on; from your nginx config.This tool is intended for authorized security testing of systems you own or have explicit written permission to test. Do not use against systems without authorization.