NGINX HTTP/2 Use-After-Free: CVE-2026-123633
A use-after-free in NGINX HTTP/2 lets an unauthenticated attacker cause a denial of service when worker connections run low, and F5 says code execution may be possible if ASLR is disabled or bypassed. The author reproduced the memory error with ASan and, by chaining a separate memory disclosure, achieved pre-authentication remote code execution as the non-root worker under a non-default configuration.
CVE-2026-123633 is a use-after-free vulnerability in NGINX HTTP/2 that may let an unauthenticated attacker cause a denial of service. In the CVE record, F5 says code execution may be possible when address space layout randomization (ASLR) is disabled or bypassed.
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
Impact
An unauthenticated attacker could cause a denial of service, and F5 says code execution may be possible if ASLR is disabled or bypassed; the author's RCE chain required a non-default configuration and some attempts did not open a shell.
What the attacker needed
HTTP/2 enabled on an exposed listener; reverse proxy with request-time DNS lookup; worker connections near the limit; attacker can open many connections
The fix
The issue was fixed in NGINX 1.30.7 and 1.31.9 by clearing the reusable mark when a stream is created.
How it was found
- Send only part of an HTTP/2 HEADERS frame header so NGINX marks the connection reusable and returns early.
- Send the remaining header bytes so NGINX creates a live stream while the reusable mark stays set.
- Use a proxy route with a variable upstream hostname that requires a request-time DNS lookup and a new resolver UDP socket.
- Fill worker connection slots so free slots fall to one sixteenth of worker_connections or below.
- Close the client socket abortively so the drain finalises the connection and frees the resolver state.
- Observe ASan reporting a read from freed DNS lookup memory.
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.
NGINX is a web server and reverse proxy that can speak HTTP/2, a newer version of the web protocol. A use-after-free means the program keeps using a piece of memory after it has been freed, which can crash it or let an attacker take control. Here, a specially timed HTTP/2 request under connection pressure makes NGINX free memory that an active request still needs.
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.