NGINX2Root: a decade-old HTTP/2 bug lets attackers run code on NGINX servers
F5 patched five critical NGINX flaws, including an HTTP/2 bug present since 2015. Proof-of-concept exploits are public, though no attacks have been seen yet.
F5 released fixes on Nov 18 for five critical NGINX vulnerabilities. The most serious, CVE-2026-123007 and nicknamed NGINX2Root, sits in NGINX's HTTP/2 code and has existed since version 1.9.5, released in 2015. An unauthenticated attacker who can reach an HTTP/2 port can run code with the privileges of the NGINX worker process.
How bad is it
F5 says exploitation requires ASLR to be disabled or bypassed, but researchers at Wiz and Xint showed the bug can be used to defeat ASLR as well. Xint went further and paired it with a Linux kernel SCTP flaw to gain root, even from inside a Docker container. Rapid7 and Censys have published proof-of-concept code. Rapid7's version needs roughly 128 GB of HTTP/2 traffic, which limits it on slower links. Censys estimates about 9 million internet-facing services run an affected version with HTTP/2 on.
F5, Wiz and Rapid7 say they have not seen attacks so far.
The other four flaws
- CVE-2026-123633: HTTP/2 with backend proxying when worker connections run low.
- CVE-2026-123634: proxied server names built from variables combined with SSI or mirror subrequests.
- CVE-2026-121810: affects servers with HTTP/3 enabled.
- CVE-2026-113425: affects NGINX used as a mail proxy.
Fixed versions
NGINX Open Source 1.31.9 (mainline) and 1.30.7 (stable) fix all five. NGINX Plus is fixed in 37.3.0.1 and 37.0.8.1. A plain reload does not load the new binary, so restart NGINX fully or do a live binary upgrade. Linux distribution packages may lag behind, so check your distro's advisories.
If you can't patch today
Turning off HTTP/2 blocks the two HTTP/2 bugs but not the other three. Disable HTTP/3 where it isn't needed, and limit mail proxy listeners to trusted networks.
Who's affected
Anyone running NGINX Open Source 1.9.5 through 1.31.8 or NGINX Plus, especially with HTTP/2 enabled.
What to do
Upgrade to NGINX 1.31.9 or 1.30.7 (or the fixed NGINX Plus builds) and fully restart. Until then, disable HTTP/2 and HTTP/3 where possible and watch for worker crashes or core dumps.