Skip to content
Race condition Write-up Advanced

Understanding the Root Cause of CVE‑2026‑119618

A race condition in Apache mod_http2's assign_headers function allows a worker thread to modify the shared req->headers table, which can corrupt the mutex-free allocator's free-list and cause heap corruption. An attacker could potentially achieve remote code execution, though the researchers only demonstrated a pointer disclosure and not a full exploit.

Michelle Rhodes Follow

Published on praetorian.com

Recently, Apache released an advisory for CVE-2026-119618, an improper synchronization vulnerability in modhttp2 that causes heap corruption and, according to Apache, can lead to remote code execution. As soon as it was disclosed, we began analyzing the vulnerability to better understand the root cause and to build…

Michelle Rhodes, on praetorian.com

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 mod_http2 worker thread modifies the shared req->headers table, whose backing array is allocated from a mutex-free allocator also used by the connection thread, so concurrent allocations can corrupt the allocator's free-list.

Impact

The race can corrupt heap memory and potentially lead to remote code execution, though the researchers only demonstrated a remote pointer disclosure and libapr base address recovery, not a full exploit chain.

What the attacker needed

Apache HTTPD 2.4.70 with mod_http2; Ability to send HTTP/2 requests; Race timing between two requests

The fix

The fix changes the code to modify the thread-local r->headers_in table instead of the shared req->headers table, avoiding the shared allocator.

How it was found

  1. Send a non-CONNECT HTTP/2 request whose HEADERS carry END_STREAM, with a Content-Type header but no Content-Length header.
  2. Ensure the req->headers table is full so that inserting the synthetic Content-Length header triggers a table resize and a new backing allocation.
  3. Make the new backing allocation exceed the stream pool's existing free space so apr_palloc reaches the shared mutex-free allocator.
  4. Concurrently send another request on the same connection so the c1-side stream work accesses the same allocator at the same time.
  5. Observe the race corrupting the allocator free-list, leading to two pools owning the same memnode and a crash later in apr_pool_destroy or header processing.

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's HTTP/2 module has a bug where two threads can accidentally use the same piece of memory at the same time. This can corrupt memory and, in theory, let an attacker run their own code on the server. The researchers found the cause but only got partway to a working attack.

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.

More by Michelle Rhodes

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.