Skip to content
Memory corruption Write-up Advanced

For a Fistful of Dollars: CVE-2026-23918 – Pre-auth RCE in Apache httpd

Two HTTP/2 callbacks both push the same stream pointer onto an internal cleanup array, so a later pass destroys the same memory pool twice. An unauthenticated attacker could crash a worker with one connection and two frames, and in some builds the same flaw could be turned into remote code execution.

striga.ai

Published on striga.ai

Apache httpd 2.4.66 ships with modhttp2 compiled in. The module is not enabled by default in most Linux distribution packages, but it is widely enabled in production HTTP/2 deployments.

The author, on striga.ai

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

The stream cleanup function pushes a stream pointer onto the purge array without checking whether that pointer is already present, and two separate callbacks both reach it for an early reset stream.

Impact

An unauthenticated network attacker could crash any worker at will and cause sustained disruption; on builds with the mmap allocator, a multi-threaded MPM and mod_status, the same flaw could support remote code execution when paired with a separate info leak, though MPM prefork is not affected.

What the attacker needed

HTTP/2 enabled (mod_http2); multi-threaded MPM (event or worker); no authentication needed; RCE needs mmap allocator and mod_status

The fix

Apache 2.4.67 deduplicates entries before pushing onto the purge array so the same pointer cannot be added twice.

How it was found

  1. Open an HTTP/2 connection and complete the preface.
  2. Send HEADERS to open a stream that is never registered with the multiplexer.
  3. Immediately send RST_STREAM with a non-zero error code such as CANCEL.
  4. Both callbacks reach the cleanup hook and push the same pointer twice.
  5. The later purge pass destroys the already-freed pool, crashing the worker.

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 httpd is a web server, and its HTTP/2 support keeps a list of streams to clean up later. A bug meant the same stream could be added to that list twice, so the server tried to free the same memory twice. Freeing memory twice can crash the server, and with careful setup an attacker might make it run their own code instead.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.