
Uno scanner sicuro e senza dipendenze che identifica i server NGINX per due vulnerabilità di corruzione della memoria in HTTP/2 divulgate da F5 il 2026-11-18
Uno scanner sicuro e senza dipendenze che identifica i server NGINX per due vulnerabilità di corruzione della memoria in HTTP/2 divulgate da F5 il 2026-11-18:
| CVE | Classe | NGINX OSS interessato | Impatto |
|---|---|---|---|
| CVE-2026-123007 | Integer underflow nel controllo di flusso HTTP/2 → heap buffer overflow (CWE-191 → CWE-787) | 1.9.5 – 1.31.0 | Crash del worker (DoS); RCE dove ASLR è disabilitato/bypassato |
| CVE-2026-123633 | Use-after-free in HTTP/2 con worker_connections basso in una configurazione reverse-proxy (CWE-416) | 1.19.7 – 1.31.0 | Crash del worker (DoS); RCE dove ASLR è disabilitato/bypassato |
Lo scanner è non distruttivo. Non tenta mai di attivare il bug (cosa che potrebbe mandare in crash il target, e il trigger reale non è divulgato). Verifica invece le due precondizioni osservabili dalla rete: se HTTP/2 è effettivamente servito, e se la versione di NGINX riportata rientra nell'intervallo interessato.
h2) o h2c in chiaro (prefazione prior-knowledge).Server, confrontato con l'intervallo di ciascuna CVE.git clone https://github.com/<your-org>/nginx-http2-cve-scanner.git
cd nginx-http2-cve-scanner
python3 scanner.py --help
Oppure scarica semplicemente scanner.py ed eseguilo direttamente.
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)
| Verdetto | Significato |
|---|---|
likely-affected | HTTP/2 è servito e la versione rientra nell'intervallo interessato |
potentially-affected | HTTP/2 è servito ma la versione è nascosta (server_tokens off); verificare manualmente la build |
not-affected | La versione è al di fuori dell'intervallo interessato |
not-exposed | HTTP/2 non è servito su questo endpoint |
| Codice | Significato |
|---|---|
2 | Almeno un target è likely-affected o potentially-affected |
1 | Nessun target è risultato interessato, ma almeno una scansione ha generato un errore |
0 | Tutti i target sono stati scansionati senza problemi |
h2 e verifica se il server lo seleziona. Per il testo in chiaro, invia
la preface di connessione HTTP/2 più un frame SETTINGS vuoto e verifica
se il server risponde con il proprio frame SETTINGS.GET / in chiaro legge l'header Server e
analizza la versione nginx/X.Y.Z.Poiché CVE-2026-123633 richiede inoltre una configurazione di reverse-proxy e
un worker con pochi worker_connections, nessuno dei quali è visibile tramite
la rete, un esito positivo viene segnalato con una nota "verifica localmente".
Server; un banner nascosto o falsificato
riduce l'affidabilità (segnalato come potentially-affected).1.31.0 come
fuori intervallo.http2 off;) sui server esposti. Per
CVE-2026-123633, dimensionare inoltre worker_connections con un margine reale in modo che il
worker non sia in carenza di risorse.Scansionare solo sistemi di propria proprietà o per i quali si è esplicitamente autorizzati a eseguire test. Lo scanner è non distruttivo, ma la scansione non autorizzata può comunque essere illegale nella propria giurisdizione. Sei responsabile di come lo utilizzi.
Sviluppato per la SECPlayground Platform — https://www.secplayground.com