Apache HTTP Server: a race condition leads to memory corruption
Attack Techniques & Methods12h ago
Praetorian researchers published a technical analysis of CVE-2026-119618, a critical vulnerability in Apache HTTP Server's
mod_http2 module. A race condition between threads allows an unauthenticated remote attacker to cause memory corruption, potentially leading to RCE. The researchers reproduced memory corruption and memory address leaks but had not developed a working RCE exploit at the time of publication.When processing a non-CONNECT HTTP/2 request whose HEADERS frame has the
END_STREAM flag set and contains Content-Type but no Content-Length, the assign_headers() function adds Content-Length: 0 to the req->headers table.If the table is full,
apr_table_setn() doubles its capacity and requests additional memory through apr_palloc(). When the pool cannot satisfy the allocation from its existing memory blocks, it accesses a shared apr_allocator_t instance without mutex protection. Another thread may simultaneously allocate or free memory through the same allocator.This race can cause the same memory node (
memnode) to be assigned to two different pools. When one pool is destroyed, the other may continue accessing memory that has already been freed, resulting in use-after-free and heap corruption.Praetorian also demonstrated remote memory pointer disclosure, recovering the randomized base address of
libapr and heap addresses.Apache HTTP Server 2.4.55–2.4.70 and standalone
mod_h2 2.0.8–2.0.42 are affected. The fix was released on November 11, 2026, in Apache HTTP Server 2.4.71. The developers replaced the shared req->headers table with the local r->headers_in, eliminating access to the shared memory allocator from different threads.