Summary
A decade-old flaw in NGINX's HTTP/2 support, CVE-2026-123007 and nicknamed "nginx2root", can let an unauthenticated remote attacker run code on servers with HTTP/2 enabled. It scores CVSS 4.0 9.2 and has been present in open-source NGINX since version 1.9.5, released September 22, 2015. It is an integer underflow.
Fixes shipped today alongside four other flaws that also score 9.2.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| NGINX OSS mainline | 1.31.0 – 1.31.8 | 1.31.9 |
| NGINX OSS stable and older | 1.9.5 – 1.30.6 | 1.30.7 |
| NGINX Plus | 37.1.0 – 37.2.0.1 | 37.3.0.1 |
| NGINX Plus | 37.0.0 – 37.0.7.1 | 37.0.8.1 |
| NGINX Plus | R34 – R36 | No fix listed |
What an attacker needs
- HTTP/2 enabled on a listener (
http2inlisten, orhttp2 on). - ASLR disabled or bypassed. F5 says code runs only in that case, though Wiz bypassed ASLR in tests and Xint ran code with just a reachable HTTP/2 port.
- Code runs with NGINX worker privileges. Xint says reaching root needs a second bug, a Linux kernel SCTP flaw that is not yet fixed.
- Rapid7's analysis needs about 128 GB of HTTP/2 traffic (around 2.5 minutes in the demo) and relies on a glibc memory-copy routine used on x86-64 CPUs with
avx512fandavx512vl. Slow links would hit NGINX's default one-hour connection limit.
Exploitation status
No in-the-wild attacks have been reported, and the flaw is not in CISA KEV. A public proof-of-concept exists on GitHub, but its notes say it only suits a freshly started Docker container on the same machine.
Four other flaws fixed
| CVE | Required setup |
|---|---|
| CVE-2026-123633 | HTTP/2, with requests passed to a backend while the worker is low on worker_connections |
| CVE-2026-123634 | Proxied server name built from variables, plus SSI or a mirror subrequest |
| CVE-2026-121810 | HTTP/3 enabled |
| CVE-2026-113425 | NGINX used as a mail proxy |
Recommended actions
- Upgrade to 1.31.9, 1.30.7 or the fixed Plus build, then do a full restart or live binary upgrade. A reload alone keeps the old executable running.
- Temporary workaround: disabling HTTP/2 blocks CVE-2026-123007 and CVE-2026-123633 but not the other three. On 1.25.1 and later set
http2 off;perserverblock. On 1.9.5 through 1.25.0 removehttp2fromlisten. - Disable HTTP/3 where unneeded, avoid SSI and
mirrorwith variable-built server names, and limit mail proxy listeners to trusted networks. - On hosts that do not use SCTP, block the module with
install sctp /bin/falsein a file under/etc/modprobe.d/. - Distribution packages: Ubuntu and Debian had not shipped fixes at the time of reporting. Compare full package versions against distro advisories, since backports may not change
nginx -v. - Hunt for workers spawning unexpected programs, abnormal worker exits or core dumps, long-lived HTTP/2 connections with heavy inbound traffic but few logged requests, and unusual outbound connections.
