CVE-2026-119618 — Heap Corruption and RCE in Apache HTTP Server's mod_http2
At a glance Item Details CVE CVE-2026-119618 CWE CWE-362 (Concurrent Execution using Shared Resource with Improper Synchronization) — per Apache. Red Hat classifies it as CWE-20 CVSS Red Hat/Amazon: 9.8 (Cri
At a glance
| Item | Details |
|---|---|
| CVE | CVE-2026-119618 |
| CWE | CWE-362 (Concurrent Execution using Shared Resource with Improper Synchronization) — per Apache. Red Hat classifies it as CWE-20 |
| CVSS | Red Hat/Amazon: 9.8 (Critical, CVSS 3.1) / CISA: 8.1 (High) — the Apache CNA record itself carries no score |
| Affected component |
mod_http2 (bundled with httpd), and the standalone mod_h2 distribution on GitHub (archived since 2026-06-09) |
| Affected versions | httpd 2.4.55–2.4.70 / mod_h2 2.0.8–2.0.42 |
| Fixed version | httpd 2.4.71 (released 2026-11-11) |
| Discovery | Anthropic's OSS Scanner (automated report, 10/26) and Google Cloud Vulnerability Research (Anthony Weems, Simon Scannell, 11/3) — found independently, 8 days apart |
| Public PoC |
googlesky/CVE-2026-119618 — reproduces heap corruption (use-after-free); no public RCE exploit |
A race condition in mod_http2, Apache HTTP Server's HTTP/2 module, writes a header into the wrong table — one shared across the request instead of one private to it — and that mistake corrupts the heap. It triggers over unauthenticated HTTP/2 (h2 or h2c) traffic alone. Red Hat states that "a remote attacker could execute arbitrary commands with the privileges of the httpd process." As of 2026-11-13, though, what's publicly demonstrated stops at heap corruption (a crash) — no public exploit has proven actual code execution yet.
1. Background — why HTTP/2 needs more than one thread
HTTP/1.1 processes requests one at a time, in order, over a single connection. HTTP/2 multiplexes several streams concurrently over one TCP connection. To implement this, mod_http2 keeps request processing in a separate worker thread pool (H2Workers), distinct from the connection thread.
- The connection thread reads and writes HTTP/2 frames and manages streams.
- Worker threads handle the actual request processing for each stream — these are mod_http2-specific threads that don't show up in
mod_statusand aren't counted againstThreadsPerChild.
In other words, multiple worker threads run concurrently on top of a single HTTP/2 connection, processing requests in parallel. The trouble starts when that parallelism accidentally shares a data structure that was supposed to be private to one thread.
2. Root cause — a worker thread writing into a shared table
Apache's own security advisory summarizes the flaw this way:
Concurrent Execution using Shared Resource with Improper Synchronization vulnerability in Apache HTTP Server's
mod_http2inassign_headers()can lead to RCE.
Red Hat's analysis pins down the mechanism more precisely:
a worker thread writes into memory owned by the connection thread through a shared, lock-free allocator.
The function at the center of this is assign_headers(). When an HTTP/2 request ends with no body, carries a Content-Type header, but no Content-Length, mod_http2 needs to synthesize a zero-length Content-Length header and insert it. Before the fix, that synthesized header went into this table:
/* vulnerable version (conceptually reconstructed) — assign_headers() */
if (stream->body_eos && r_type_present && !content_length_present) {
/* req->headers: a table at the HTTP/2 request level, shared
with — and potentially pooled alongside — other stream- or
connection-level structures, not scoped to one request. */
apr_table_setn(req->headers, "Content-Length", "0");
}
The patch changed exactly one line:
/* patched version — assign_headers() */
if (stream->body_eos && r_type_present && !content_length_present) {
/* r->headers_in: a per-request table, belonging only to the
request_rec for this request. */
apr_table_setn(r->headers_in, "Content-Length", "0");
}
req->headers is a structure multiple worker threads can reach concurrently; r->headers_in belongs exclusively to the one worker thread handling that specific request. The vulnerable version wrote to the shared table with no lock. When another worker thread, processing a different stream, touched the same structure at nearly the same moment — while the allocator underneath apr_table_setn was mid-reallocation — one thread would end up writing into memory that was already freed, or not yet initialized.
The commit message itself gives no explanation (as Sysdig's researchers noted). The fix is a genuinely one-line change — but that single line touches the core concurrency question of "who owns this memory."
Red Hat downgraded its own RHEL 9/10 builds from Critical to Important for a related reason: those builds allocate a separate allocator per HTTP/2 stream, which "substantially increases the complexity of exploiting the flaw." The same source-level defect carries very different real-world exploitability depending on how the memory allocator happens to be configured.
3. Trigger conditions — which requests reach this code path
The public PoC (googlesky/CVE-2026-119618) pinned down the trigger experimentally:
A request that ends without a body and carries a
Content-Typebut noContent-Lengthtriggers the bug.
PUT /anything HTTP/2
Content-Type: application/octet-stream
<ends immediately with END_STREAM, no body>
On receiving this, mod_http2 decides "there's a Content-Type but no body, so I need to synthesize Content-Length: 0" and enters the assign_headers() path. The request itself looks entirely ordinary — but firing this pattern across multiple concurrent streams on the same connection pushes worker threads into touching the same shared table at nearly the same instant, opening the race window.
Reachability, laid out:
| Path | Reachable? | Notes |
|---|---|---|
Protocols includes h2
|
Yes | HTTP/2 over TLS |
Protocols includes h2c
|
Yes | HTTP/2 over cleartext TCP — the path the public PoC targets |
Per-virtual-host Protocols
|
Yes, for that vhost | Check vhost blocks, not just the server-wide setting |
| HTTP/1.1 only | No | Per Red Hat, servers serving only HTTP/1.1 aren't affected |
One easy trap: servers that upgraded to 2.4.67 back in May for an unrelated HTTP/2 flaw (CVE-2026-23918) are still squarely inside this CVE's affected range (2.4.55–2.4.70). Having recently patched an HTTP/2 bug does not mean you're safe from this one.
4. The patch — three commits, one line that matters
The fix landed as three commits on the 2.4.x branch (824beab, 1b47e95, 5566851 — all on 2026-11-11).
The core change, as shown above, swaps one table reference: req->headers → r->headers_in. What that swap actually buys:
req->headers (vulnerable) |
r->headers_in (patched) |
|
|---|---|---|
| Ownership scope | HTTP/2 request-structure level — reachable from multiple worker threads |
request_rec level — exclusive to the worker thread handling that request |
| Synchronization | No explicit lock (relies on a lock-free allocator) | No path for another thread to touch it concurrently |
| Outcome | Concurrent writes → allocator race → use-after-free | The race condition has no way to occur |
Confirming the patch takes more than checking a version string. As Sysdig points out, distributions frequently backport fixes without bumping the upstream version number.
# 1) The httpd version string itself (reference only — not trustworthy by distro)
httpd -v # or apache2 -v
# 2) The actually-loaded mod_http2 module version, per distro package
rpm -q mod_http2 # RHEL/CentOS family
dpkg -l | grep libapache2-mod-http2 # Debian/Ubuntu family
# 3) Whether mod_http2 is even loaded (if it isn't, this CVE is moot)
httpd -M 2>/dev/null | grep http2
apache2ctl -M 2>/dev/null | grep http2
A common false alarm in the field: Red Hat's Hardened Images httpd image is listed as "affected" per the vendor advisory, but the image doesn't actually ship
mod_http2at all — making it a case where the risk can simply be accepted. Don't panic off the version number alone — check whether the module is actually loaded first.
5. Affected versions and remediation
| Component | Affected range | Status |
|---|---|---|
| httpd 2.4.55–2.4.70 | Affected | Upgrade to 2.4.71 |
| httpd below 2.4.55 | Not affected, per Apache's advisory | No action needed for this CVE |
| Standalone mod_h2 2.0.8–2.0.42 | Affected | Repository archived since 2026-06-09 — no fixed release will come. Switch to httpd 2.4.71's bundled module, or disable HTTP/2 |
| RHEL 9 / 9.4 SAP / 9.6 EUS / 9.8 EUS | Affected (Important) | mod_http2-2.0.26-7.el9_9.1 |
| RHEL 10 / 10.0 EUS / 10.2 EUS | Affected (Important) | mod_http2-2.0.29-5.el10_3.1 |
| RHEL 6 / 7 / 8 | Not affected | No action needed |
| Debian 12 / 13 | Patched | 2.4.71-1~deb12u1 / 2.4.71-1~deb13u1 |
| Ubuntu 22.04–26.10 | Patched | 11/12 security updates |
| SUSE / openSUSE / Photon OS | Waiting on vendor fix as of 2026-11-13 | Track vendor advisories |
Immediate steps, where patching is possible
- Upgrade httpd on every server to 2.4.71 (or your distro's patched package)
- Restart httpd and rebuild images after patching — a running process keeps the old module loaded in memory. Bumping the package version without restarting leaves the server just as vulnerable
- If you're running standalone
mod_h2, switch to the module bundled with httpd 2.4.71 — the standalone repository is archived and will never get a fix
Interim mitigation if patching isn't immediately possible
Neither Apache's advisory nor the oss-security notice offers an official workaround, but Wiz recommends the following (note: this is Wiz's guidance, not Apache's):
# httpd.conf (and identically in every VirtualHost block)
Protocols http/1.1
- Remove
h2andh2cfrom the config entirely, leaving only HTTP/1.1 - Apply this at the server level and in every VirtualHost block — many setups redefine
Protocolsper-vhost - Restart or reload after the change
- Test latency-sensitive services first — clients fall back to HTTP/1.1, which can slow workloads that depend on multiplexing
Containing the blast radius
- Run httpd workers as an unprivileged user, limiting what a compromised worker can read or write
- Keep secrets (API keys, DB credentials) in a secrets manager rather than environment variables or files the worker process can read directly
From a detection standpoint
- Repeated segfaults in httpd child processes on an HTTP/2-enabled server — exactly the symptom the public PoC produces
- Since disclosure (11/11 onward), review httpd worker processes for shells, downloads, or unusual outbound connections
- Runtime detection tools like Falco/Sysdig can't see HTTP/2 frames directly, but post-exploitation steps — a shell spawned by a worker, a reverse shell, a downloaded binary executing, the web server process being replaced — were verified to be caught by existing rules with no modification
One last thing worth noting: this bug lives entirely inside httpd's own HTTP/2 implementation, independent of whatever application code it's serving. No amount of hardening the application prevents it — patching is the only complete fix.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.
