Skip to content
← All articles

NGINX’s 10-year-old HTTP/2 bug: what nginx2root means for your servers

CVE-2026-123007 is a pre-auth RCE that sat in NGINX since 2015. What it needs, who is exposed, and the upgrade trap that leaves you vulnerable.

NGINX’s 10-year-old HTTP/2 bug: what nginx2root means for your servers

A memory-safety bug in NGINX’s HTTP/2 implementation, tracked as CVE-2026-123007 and nicknamed “nginx2root”, allows an unauthenticated attacker to execute code on servers that accept HTTP/2. The flaw has been in the open-source code since version 1.9.5, released in September 2015, and was fixed in 1.31.9 and 1.30.7.

That timeline is the story. For roughly a decade, the most widely deployed reverse proxy on the internet carried a reachable pre-auth code execution path, and nobody found it. It is a good reminder that “battle-tested” and “audited” are not the same claim.

The mechanics matter less than the preconditions. Code execution lands with the privileges of an NGINX worker process, and the practical exploit depends on ASLR being disabled or bypassed. Both Wiz and Xint demonstrated a bypass — Xint’s version needed nothing more than a reachable HTTP/2 port on AWS, GCP and Azure.

A worker is not root, but it is often enough. CIRCL notes that privilege escalation is a second step, and Xint chained a separate Linux kernel bug in the SCTP implementation to get root on the host — including when NGINX was running inside a Docker container. That container boundary is exactly what many teams assume will save them.

Scope is broad: every open-source release from 1.9.5 through 1.31.8, including the October security releases 1.31.7 and 1.30.6. NGINX Plus is affected too, in 37.x builds before 37.3.0.1 and 37.0.8.1, and R34 through R36 have no listed fix.

The same advisory covers four more flaws with the same ASLR caveat, all rated 9.2 under CVSS 4.0: CVE-2026-123633 (needs HTTP/2 plus upstream proxying while worker_connections is exhausted), CVE-2026-123634 (a proxied server name built from variables plus SSI or mirror subrequests), CVE-2026-121810 (HTTP/3), and CVE-2026-113425 (NGINX as a mail proxy).

Exploitation is not trivial. Rapid7’s demonstration moved about 128 GB of HTTP/2 traffic over two and a half minutes, and it depends on a specific glibc memory-copy path selected on x86-64 CPUs with AVX-512 support. On links below roughly 300 Mbit/s the transfer exceeds NGINX’s default one-hour connection limit and the attack fails. That narrows the blast radius, but does not make it theoretical for well-connected targets.

As of publication there is no evidence of exploitation in the wild, the CISA KEV catalog does not list it, and the public proof-of-concept is limited to a local Docker demo. That is the window where patching is cheap and incident response is expensive.

Upgrade, then restart properly. A reload is not enough: it leaves the old executable running and existing connections can stay on old worker processes. Use a full restart or NGINX’s live binary upgrade, and confirm the new binary is actually serving. The official Docker tags for 1.31.9 and 1.30.7 were available on release day; Ubuntu and Debian had not shipped fixed packages yet, and a distro package can carry a backport without changing the version nginx -v prints, so compare full package versions against the distro advisory.

If you cannot patch immediately, disable HTTP/2. On 1.25.1 and later set http2 off; in each affected server block and remove http2 from its listen directives; on older versions change listen 443 ssl http2; to listen 443 ssl; and restart. That closes CVE-2026-123007 and CVE-2026-123633, but not the other three. For the SCTP chain, hosts that do not use SCTP can block the module with install sctp /bin/false in /etc/modprobe.d/.

To check exposure, run openssl s_client -alpn h2 against the origin and look for ALPN protocol: h2. Test the origin itself, not the CDN in front of it — an origin that only speaks HTTP/1.1 is not reachable through this bug even if your public edge supports HTTP/2.

Detection is uncomfortable here. CIRCL’s guidance points at workers spawning unexpected programs, workers exiting abnormally or leaving core dumps, long-lived HTTP/2 connections with heavy inbound traffic but few logged requests, and unusual outbound connections or DNS lookups. A clean access log proves nothing, because HTTP/2 control frames do not appear there as requests.

The operational lesson is not “NGINX is unsafe”. It is that protocol implementations age silently. HTTP/2 shipped in 2015, became the default on most edges, and its parser kept running unexamined for a decade. If a service terminates TLS and parses attacker-controlled frames, version it, inventory it, and treat “we have never had an incident” as luck rather than evidence.