HTTPd (CVE-2026-119618): Detecting heap corruption and RCE in Apache HTTP Server mod_http2
A heap corruption flaw in Apache HTTP Server's mod_http2 module allows an unauthenticated attacker to crash worker processes and potentially achieve remote code execution. The bug is a race condition in assign_headers() where a zero Content-Length header is written to the wrong header table.
webflow.sysdig.com
Published on webflow.sysdig.com
Sysdig Threat Research Team
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a race condition: a worker thread writes a zero Content-Length header into the connection's shared header table instead of the per-request table, causing heap corruption when two threads access the same memory.
Impact
An unauthenticated attacker could crash httpd worker processes and potentially execute arbitrary code as the httpd user, though public proof-of-concept only demonstrates heap corruption and crashes, not code execution.
What the attacker needed
HTTP/2 enabled on the server; Network access to the server
The fix
The flaw was fixed in Apache HTTP Server 2.4.71 by writing the zero Content-Length header into the per-request table instead of the connection's header table.
How it was found
- Set up a vulnerable httpd 2.4.70 with HTTP/2 over cleartext (h2c) enabled.
- Send a request that ends without a body and has a Content-Type but no Content-Length header.
- Repeat the request many times to trigger the race condition.
- Observe heap corruption or crashes in the httpd child process.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Apache HTTP Server is web server software. Its HTTP/2 module handles a newer version of the web protocol that lets many requests share one connection. A bug in that module lets an attacker send special requests that corrupt the server's memory, which can crash it and possibly let the attacker run their own code.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.