Unauthenticated Remote Code Execution in NGINX: CVE-2026-123633 and CVE-2026-123007
Two memory-safety flaws in NGINX's HTTP/2 handling, a use-after-free and an integer underflow, allow an unauthenticated attacker to execute arbitrary code on the server. Exploitation requires HTTP/2 to be enabled, and the use-after-free additionally needs reverse-proxy processing with low connection slots.
Published on wiz.io
Wiz Research, Ikotas Labs, Metnir, Rapid7, and Xint independently uncovered CVE-2026-123633 and CVE-2026-123007, two critical unauthenticated remote code execution vulnerabilities in NGINX, and reported them to F5, the company behind NGINX. Successful exploitation can compromise the server running NGINX, allowing…
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 two separate memory-safety mistakes: a connection marked reusable while a request is active, leading to a use-after-free, and an unchecked flow-control refund that underflows an unsigned counter and later causes an out-of-bounds copy.
Impact
An unauthenticated attacker could execute arbitrary code on the NGINX server, potentially stealing data, tampering with sites, or disrupting services; CDNs and WAFs that terminate HTTP/2 may mitigate parts of the exploit depending on implementation.
What the attacker needed
HTTP/2 enabled on the server; For CVE-2026-123633: reverse-proxy config and low…; Attacker can communicate directly with the server
The fix
F5 released fixed versions (1.30.7 stable, 1.31.9 mainline for OSS; [redacted]/[redacted] and [redacted]/[redacted] for Plus), and disabling HTTP/2 is a temporary mitigation.
How it was found
- Send only part of an HTTP/2 HEADERS frame so the connection is marked reusable while incomplete.
- Send the rest of the frame to create a request stream without removing the connection from the reusable list.
- Forward the request upstream so NGINX opens an upstream connection and may drain reusable connections when slots run low.
- Cause the GOAWAY frame creation to fail so the connection is closed and its memory freed while the request still uses it.
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 that sits in front of websites and passes requests to them. These bugs are in how it handles HTTP/2, the newer version of the web protocol. A mistake in memory management lets an attacker who can send requests to the server run their own code on it, without needing a login.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.