
Zero-dependency black-box validator for CVE-2026-119618 (Apache mod_http2 race condition): custom HTTP/2 client with differential baseline-vs-trigger checks, WAF bypass modes, and mitigation verification.
Author: Prof. Geovane
External, black-box validator with no dependencies for CVE-2026-119618:
race condition in Apache HTTP Server's mod_http2 → heap corruption → potential
unauthenticated RCE. Affects httpd 2.4.55–2.4.70 and mod_h2 2.0.8–2.0.42
(servers with h2 or h2c enabled); fixed in 2.4.71.
The script implements its own HTTP/2 client (preface, SETTINGS, HEADERS, CONTINUATION, DATA, GOAWAY, minimal HPACK) and classifies the target by behavioral differential (benign baseline × trigger form), separating handshake failures (WAF/LB) from real anomalies to avoid false positives.
For a bodyless request (END_STREAM on HEADERS) with Content-Type and no
Content-Length, assign_headers() writes the synthesized Content-Length: 0 into the
shared stream table instead of r->headers_in. With the table full
(79 headers + Host = 80), the write allocates from the connection's mutex-less allocator on
the worker thread → race with the connection thread → heap corruption.
pip install not required.# Reconhecimento não destrutivo (h2 sobre TLS, porta 443)
python3 cve-2026-119618-validate.py check --target https://alvo.com.br
# Confirmação comportamental com bypass de WAF combinado
python3 cve-2026-119618-validate.py validate --target https://alvo.com.br \
--tls --connections 8 --streams 16 --duration 30 --waf all
# Verificar o workaround (h2/h2c removidos do Protocols)
python3 cve-2026-119618-validate.py mitigation --target https://alvo.com.br --tls
Apache
Opção padrão Descrição
'--target — host, host:portaouhttp(s)://host[:porta]
'--tls desligado Força h2 sobre TLS (porta 443)
'--connections/--streams 16 / 32 Concorrência
'--duration 20 Segundos de controle de gatilho
'--waf nenhum none· continuacao· padding· neverindex·all
Modos e códigos de saída
Modo ‐
check h2 presente? versão no
validate Linha de base diferencial × gatilho com loop automático de WAF
mitigation h2/h2c ainda oferece?
Código Significado
0 Seguro / sem anomalia diferencial
1 Vulnerável
2 Inalcançak
3 Inconclusivo
4 Mitigado (sem HTTP/2)
Bypass de WAF (camada HTTP/2)
continuacao — HPACK dividido em CONTINUATION (WAF só vê o HEADERS inicial)
preenchimento — sinalizador PADDED análise de HPACK
neverindex — literais nunca indexados + caseing ale
all — teste todos e reporte a melhor janela
Notas de interpretação
ALB/ELB na frente (ex.:awselb/2.0): o LB reescrita h2 → HTTP/1.1 rumo à origem; resultado negativo significa "não alcançado pela borda", não "origem corrigida".
GOAWAY PROTOCOL_ERROR (1)= desvio bloqueado pela borda; INTERNAL_ERROR (2)na fase de gatilho = sinal compatível com corrupção.
Mitigação
Atualizar para httpd 2.4.71 / mod_h2 2.0.43 .
Solução alternativa: Protocols http/1.1(remover h2e h2c).
Aviso legal
Uso exclusivo em ativos próprios ou com autorização escrita. O modo validategera tráfego concorrente — execute dentro da janela acordada