
A safe, dependency-free scanner that fingerprints NGINX servers for two HTTP/2 memory-corruption vulnerabilities disclosed by F5 on 2026-11-18
A safe, dependency-free scanner that fingerprints NGINX servers for two HTTP/2 memory-corruption vulnerabilities disclosed by F5 on 2026-11-18:
| CVE | Class | Affected NGINX OSS | Impact |
|---|---|---|---|
| CVE-2026-123007 | HTTP/2 flow-control integer underflow → heap buffer overflow (CWE-191 → CWE-787) | 1.9.5 – 1.31.0 | Worker crash (DoS); RCE where ASLR is off/bypassed |
| CVE-2026-123633 | HTTP/2 use-after-free under low worker_connections in a reverse-proxy config (CWE-416) | 1.19.7 – 1.31.0 | Worker crash (DoS); RCE where ASLR is off/bypassed |
The scanner is non-destructive. It never attempts to trigger the bug (that could crash the target, and the real trigger is undisclosed). Instead it checks the two network-observable preconditions: whether HTTP/2 is actually served, and whether the reported NGINX version is in the affected range.
h2) or cleartext h2c (prior-knowledge preface).Server header, matched against each CVE's range.git clone https://github.com/<your-org>/nginx-http2-cve-scanner.git
cd nginx-http2-cve-scanner
python3 scanner.py --help
Or just download scanner.py and run it directly.
python3 scanner.py [targets ...] [options]
Targets:
host[:port] cleartext h2c (default port 80)
https://host TLS (ALPN h2), default port 443
host:port with --tls for TLS on a custom port
10.0.0.0/24[:port] a CIDR is expanded to one scan per host address
Options:
-f, --input FILE read targets from FILE (one per line, '#' comments);
'-' means stdin; may be given multiple times
--stdin also read targets from stdin
--tls force TLS (ALPN h2) for bare host[:port] targets
--timeout SECONDS per-connection timeout (default 5.0)
-w, --workers N concurrent scans (default 20)
--json emit JSON
--csv FILE write CSV to FILE ('-' = stdout)
--only-affected print only affected targets
# single target (cleartext HTTP/2)
python3 scanner.py scanme.example.com
# TLS target
python3 scanner.py https://scanme.example.com
python3 scanner.py --tls scanme.example.com:8443
# bulk from a file, 50 workers, only show hits
python3 scanner.py -f targets.txt -w 50 --only-affected
# scan a whole subnet
python3 scanner.py 10.0.0.0/24 -w 100
# read targets from a pipe
cat hosts.txt | python3 scanner.py -f -
# machine-readable output
python3 scanner.py -f targets.txt --csv results.csv
python3 scanner.py -f targets.txt --json > results.json
========================================================================
10.0.0.5:80 (h2c)
Server : nginx/1.27.4
HTTP/2 : yes
[!] CVE-2026-123007 likely-affected
nginx 1.27.4 is in the affected range 1.9.5..1.31.0; needs HTTP/2 enabled (present here)
[!] CVE-2026-123633 likely-affected
nginx 1.27.4 is in the affected range 1.19.7..1.31.0; also needs reverse-proxy config + worker low on worker_connections (verify locally)
========================================================================
[*] summary: 1 scanned, 1 affected, 0 error(s)
| Verdict | Meaning |
|---|---|
likely-affected | HTTP/2 is served and the version is in the affected range |
potentially-affected | HTTP/2 is served but the version is hidden (server_tokens off); verify the build manually |
not-affected | Version is outside the affected range |
not-exposed | HTTP/2 is not served on this endpoint |
| Code | Meaning |
|---|---|
2 | At least one target is likely-affected or potentially-affected |
1 | No target was affected, but at least one scan errored |
0 | All targets scanned clean |
h2 and checks whether the server selects it. For cleartext, it sends
the HTTP/2 connection preface plus an empty SETTINGS frame and checks
whether the server replies with its own SETTINGS frame.GET / reads the Server header and
parses the nginx/X.Y.Z version.Because CVE-2026-123633 additionally requires a reverse-proxy configuration and
a worker that is low on worker_connections, neither of which is visible over
the network, a positive there is reported with a "verify locally" note.
Server header; a hidden or spoofed banner
weakens confidence (reported as potentially-affected).1.31.0 as
out of range.http2 off;) on exposed servers. For
CVE-2026-123633, also size worker_connections with real headroom so the
worker is not starved.Scan only systems you own or are explicitly authorized to test. The scanner is non-destructive, but unauthorized scanning may still be unlawful in your jurisdiction. You are responsible for how you use it.
Developed for the SECPlayground Platform — https://www.secplayground.com