psf-apache-mod-http2-check(8)
Apache mod_http2 check for CVE-2026-119618 (v1)
If this software is helpful, consider a donation to our 501c3 nonprofit:
https://privacysafe.foundation
CVE-2026-119618: Apache HTTP Server, mod_http2, heap corruption and
unauthenticated remote code execution in assign_headers().
Disclosed 11 November 2026 by Anthropic's OSS Scanner and Google Cloud's
Vulnerability Research team. CVSS 3.1 9.8 (critical), CWE-362 (concurrent
execution using a shared resource with improper synchronization): two
HTTP/2 request-handling worker threads can race on a connection-level
memory allocator inside mod_http2, corrupting heap memory in a way public
research says reliably leads to code execution on a default-configured
server, with no authentication and no application behind it needed, only
HTTP/2 turned on. Fixed in Apache HTTP Server 2.4.71, released the same
day. The standalone mod_h2 project on GitHub (versions 2.0.8 to 2.0.42,
the same vulnerable code before it was merged into httpd) was archived by
its owner on 9 June 2026 and has received no fix; the only remedy for a
site running that module is to stop using it and move to a current httpd.
Affected: Apache HTTP Server 2.4.55 to 2.4.70 with mod_http2 loaded and
HTTP/2 (h2 or h2c) enabled via a Protocols directive anywhere in the
active configuration. mod_http2 ships with httpd but is not loaded by
default on every distribution's packaging, and loading the module alone
does not enable HTTP/2; a Protocols directive naming h2 or h2c, at server
level or inside a VirtualHost, is also required. Red Hat's own httpd
packaging allocates each HTTP/2 stream from a separate allocator, which
Red Hat says substantially increases how hard the flaw is to exploit on
RHEL 9 and RHEL 10, without saying the flaw is absent; RHEL 8 and earlier
ship no mod_http2 package at all and are not affected for that reason.
What this script does:
check - read-only. Reports the httpd/apache2 version, whether
mod_http2 is loaded, and whether an active (uncommented)
Protocols directive anywhere in the config tree offers h2
or h2c. Exits 1 if exposed, 0 if clear, 2 if undetermined.
hunt - read-only. Greps the error log for the worker-crash
signatures public write-ups associate with this flaw.
Finding none does not mean the server was never attacked;
a successful exploit need not crash a worker at all.
mitigate [--dry-run] [--reload] - disables mod_http2 (the broadest fix
short of upgrading): comments out every active LoadModule
http2_module line and every active Protocols directive that
names h2 or h2c, across the config tree. --dry-run prints
what would change and writes nothing, so it needs no
privilege. Backs up every file it touches and verifies the
result with 'httpd -t' / 'apachectl -t' before leaving it in
place, rolling back automatically if
the test fails. Requires root. --reload gracefully reloads
the server afterward (systemctl reload where that unit
exists, otherwise apache2ctl -k graceful); without it,
reload the server yourself once you're satisfied.
rollback [--dry-run] [--reload] - restores every file mitigate backed up, most
recent first. Requires root. --reload as above.
rules - prints a short explanation with no side effects.
version - prints this script's version.
What this script can't see: a Protocols directive set by an included
config file this script's config-tree walk does not reach (for example,
one pulled in by a module directive this script does not parse, such as
mod_macro), and any Protocols directive set inside a <Directory> or
<Location> block scoped narrower than server or virtual-host level, which
mod_http2's own documentation does not list as a supported context but
which a misconfigured or third-party include could still contain.
Exit codes: check: 0 clear, 1 exposed, 2 undetermined/error.
hunt: 0 nothing found, 1 found a match, 2 error.
mitigate/rollback: 0 success, 2 error.
PSF_LOCK_WAIT: seconds a run that changes the host waits for another one
that is already changing it (default 30), then exit 2.The Security Patches software and this documentation are dedicated to the public domain under CC0 1.0 Universal. Other pages on privacysafe.app/docs are CC BY-SA 4.0 unless the page says otherwise.