
Detector NSE de Nmap para Apache mod_http2 (CVE-2026-119618): versión + h2/h2c, sin explotar infraestructura
Nmap NSE script, non-intrusive, to remotely identify (by IP or domain) Apache HTTP Server servers potentially affected by CVE-2026-119618 (mod_http2, assign_headers() function).
Version: 1.0.1 · Author: Arturo E. Mata [email protected] · License: Apache-2.0
⚠️ Verification notice: the version ranges and detection criteria come solely from the internal bulletin (published on 11/11/2026); the CVE could not be independently verified. Confirm them against the official Apache advisory (https://httpd.apache.org/security/vulnerabilities_24.html) before using the results in production.
| Field | Value |
|---|---|
| CVE | CVE-2026-119618 |
| Component | Apache HTTP Server mod_http2 |
| Cause | Inadequate synchronization of shared resources in assign_headers() |
| Impact | Memory corruption and remote code execution |
| Severity | Critical, CVSS 9.8 |
| Affected | Apache httpd 2.4.55 to 2.4.70; mod_h2 (GitHub) 2.0.8 to 2.0.42 |
| Fixed in | Apache httpd 2.4.71 or higher |
| Vector | Servers with HTTP/2 (h2 or h2c) enabled via the Protocols directive |
The script does not exploit anything or send payloads. It does three things:
nmap -sV or the Server header). If it is not Apache httpd (Tomcat, nginx, Traffic Server, etc.), it stops without further probes.Upgrade: h2c request in plaintext (expects 101 Switching Protocols).| Version | HTTP/2 | Result |
|---|---|---|
| In range | Active | VULNERABLE |
| In range | Not detected (conclusive check) | NOT VULNERABLE |
| In range | Could not be checked | NO CONCLUYENTE |
| Out of range | Any | NOT VULNERABLE |
Hidden (ServerTokens Prod) | Active | LIKELY VULNERABLE (or NO CONCLUYENTE with hidden_version=unknown) |
| Hidden | Not detected (conclusive) | NOT VULNERABLE |
| Hidden | Could not be checked | NO CONCLUYENTE |
| Not Apache httpd | — | No output (note with vulns.showall) |
http, tls, vulns libraries).sudo cp apache-mod-http2-scanner.nse /usr/share/nmap/scripts/
sudo nmap --script-updatedb
nmap --script-help apache-mod-http2-scanner # verificar
macOS (Homebrew): /opt/homebrew/share/nmap/scripts/ · Windows: C:\Program Files (x86)\Nmap\scripts\
You can also run it without installing: nmap --script ./apache-mod-http2-scanner.nse ...
# Por IP
nmap -p 80,443,8080,8443 --script apache-mod-http2-scanner 192.168.1.10
# Por dominio (solo el hostname, sin https://)
nmap -p 80,443 --script apache-mod-http2-scanner ejemplo.com
# Con detección de servicio (recomendado: mejora versión y puertos no estándar)
nmap -sV -p 80,443 --script apache-mod-http2-scanner ejemplo.com
# Ver también los resultados negativos
nmap -sV -p 80,443 --script apache-mod-http2-scanner --script-args vulns.showall ejemplo.com
# Rango de red
nmap -p 80,443 --script apache-mod-http2-scanner 10.0.0.0/24
| Argument | Description | Default |
|---|---|---|
apache-mod-http2-scanner.path | HTTP path to query | / |
apache-mod-http2-scanner.min | Minimum affected version | 2.4.55 |
apache-mod-http2-scanner.max | Maximum affected version | 2.4.70 |
apache-mod-http2-scanner.timeout | Socket timeout (ms) | 5000 |
apache-mod-http2-scanner.ssl | true forces ALPN, false forces h2c | automatic |
apache-mod-http2-scanner.hidden_version | likely or unknown: handling Apache with HTTP/2 and a hidden version | likely |
http.useragent | User-Agent for HTTP requests (including h2c) | Nmap NSE |
vulns.showall | Also display NOT VULNERABLE and informational notes | — |
| Status | Meaning | Action |
|---|---|---|
VULNERABLE | Version within range and HTTP/2 active | Verify locally and mitigate |
LIKELY VULNERABLE | Apache with HTTP/2 and a hidden version | Check using httpd -v on the server |
NO CONCLUYENTE | A check could not be completed | Retry with -sV, another timeout, or verify locally |
NOT VULNERABLE | Out of range, or HTTP/2 not detected | None for this CVE (only visible with vulns.showall) |
NO CONCLUYENTE is displayed separately, without the VULNERABLE: heading, to avoid confusing it with a positive result.
Example output:
PORT STATE SERVICE VERSION
8443/tcp open ssl/http Apache httpd 2.4.70 ((Unix) OpenSSL/3.5.7)
| apache-mod-http2-scanner:
| VULNERABLE:
| Apache HTTP Server mod_http2 - corrupcion de memoria / RCE (severidad Critica)
| State: VULNERABLE
| IDs: CVE:CVE-2026-119618
| Risk factor: High CVSSv3: 9.8
| Check results:
| Banner/Version: Apache/2.4.70 (nmap -sV)
| HTTP/2 habilitado: SI - h2 (ALPN)
| Rango afectado: 2.4.55 - 2.4.70 (corregido en 2.4.71)
|_ Script: apache-mod-http2-scanner v1.0.1
Risk factor: High: Nmap'svulnslibrary supports only High/Medium/Low. The actual severity (Critical, CVSS 9.8) appears in the title and the CVSSv3 field.
--proxies: only if your network uses a proxy for outbound access or the scope requires it. Requires -sT and -Pn; increasing timeout to 10000 or more is advisable.
nmap -sT -Pn -p 443 --proxies socks4://127.0.0.1:9050 \
--script apache-mod-http2-scanner \
--script-args apache-mod-http2-scanner.timeout=10000 ejemplo.com
User-Agent: the ALPN probe does not send HTTP, so it does not use one. http.useragent affects reading the Server header and the h2c request. For corporate scans, an honest, identifiable value is advisable:
--script-args 'http.useragent=SecScan-InternoTI'
ServerTokens Prod hides the version: result LIKELY VULNERABLE or NO CONCLUYENTE.NO CONCLUYENTE.-sV.| Case | Result |
|---|---|
| Plaintext h2c | VULNERABLE ✅ |
| h2 with TLS (ALPN) | VULNERABLE ✅ |
| h2 with TLS on a port Nmap does not recognize as TLS (ALPN fallback) | VULNERABLE ✅ |
| HTTP/1.1 only, plaintext and TLS | NOT VULNERABLE ✅ |
Version outside the range (min/max) | NOT VULNERABLE ✅ |
| Hidden version + h2/h2c | LIKELY VULNERABLE ✅ (and NO CONCLUYENTE with hidden_version=unknown) |
| Hidden version + HTTP/1.1 only | NOT VULNERABLE ✅ |
| TLS 1.3 only | NO CONCLUYENTE ✅ |
Apache-Coyote (Tomcat) and Python server | No output / "Not applicable" ✅ |
Arguments ssl, hidden_version (valid and invalid), http.useragent, closed port | ✅ |
Environments: a lab with Apache 2.4.58 (Ubuntu) and Nmap 7.94; and results validated in Docker httpd:2.4.70 with Nmap 7.95 (h2c and h2 over TLS).