Security

NGINX2Root: Why the Version Number Won't Tell You If Your Server Is Exposed

Updated

  • Consumer Security
  • Open Source
  • Software Updates
  • Explainer
NGINX2Root: Why the Version Number Won't Tell You If Your Server Is Exposed
Uploaded by the desk

The five NGINX flaws disclosed on November 18 under the name NGINX2Root are real and serious, but the headline numbers describe version strings, not vulnerable servers. The research behind them shows exposure turns on configuration, network path and packaging, and that some installations have no fix yet.

On November 18, NGINX's maintainers at F5 shipped nginx 1.31.9 (mainline) and 1.30.7 (stable), fixing a batch of memory-safety bugs in the web server and reverse proxy that sits in front of a large share of the world's websites and APIs. Researchers at Xint, Wiz, Rapid7 and others published writeups the same day. Xint, which reported four of the five most serious bugs, branded the set "NGINX2Root" and showed one of them chained with an unpatched Linux kernel flaw to break out of a Docker container and take root on the host.

Most coverage has led with the scale: Xint's finding that 98.9% of NGINX hosts that reveal their version fall in the affected range, and the CVSS 9.2 "Critical" score F5 attached to all five bugs. Both figures are accurate. Neither tells an administrator whether a particular server can actually be attacked. Read side by side, the primary writeups support a more useful conclusion: whether a server is exposed depends far more on how NGINX is configured, how traffic reaches it and where the package came from than on the number nginx -v prints.

What was fixed

The nginx.org security advisories page lists the five NGINX2Root bugs with their affected ranges. All are fixed in 1.31.9 and 1.30.7:

  • CVE-2026-123007, memory corruption in HTTP/2 flow control: versions 1.9.5 to 1.31.8. This is the one Wiz and Rapid7 turned into unauthenticated remote code execution, and it reaches back to 2015, when HTTP/2 support first shipped.
  • CVE-2026-123633, use-after-free in HTTP/2: 1.19.7 to 1.31.8. According to Xint and Wiz, it needs NGINX to be forwarding requests to a backend.
  • CVE-2026-121810, use-after-free in HTTP/3: 1.25.0 to 1.31.8.
  • CVE-2026-123634, use-after-free in the DNS resolver: 0.6.18 to 1.31.8.
  • CVE-2026-113425, use-after-free in the mail proxy module: 0.5.33 to 1.31.8.

The same release fixed five more bugs, including CVE-2026-118899, an infinite loop when reading a request body over TLS that nginx.org rates "major". For NGINX Plus, F5's commercial build, Wiz, Rapid7 and Censys all give 37.0.8.1 and 37.3.0.1 as the fixed releases for CVE-2026-123007.

Two severity scales, two different questions

One detail most coverage skipped: the project's own advisory page does not call these bugs critical. nginx.org rates CVE-2026-123007 and the mail proxy bug "major", and the other three "medium". The "Critical" label comes from CVSS. AlmaLinux's advisory reports that F5 scores all five at 9.2 (Critical) under CVSS v4.0 and 8.1 (High) under v3.1.

The two are not contradictory. A CVSS score mostly measures worst-case impact once an attack works. The vector Rapid7 published for CVE-2026-123007 records "high" attack complexity and "present" attack requirements next to high impact on confidentiality, integrity and availability. That is a fair summary of the research: if the attack lands, the damage is severe, but landing it depends on conditions the attacker does not control. AlmaLinux's summary of F5's advisories says each bug can crash a worker process and that code execution is possible on systems where Address Space Layout Randomization (ASLR), a standard memory protection, is disabled or bypassed. Wiz says its exploits included an ASLR bypass.

Condition one: HTTP/2 has to be switched on

The two HTTP/2 bugs, including the one with the widest version range, cannot be reached unless HTTP/2 is enabled on a listener the attacker can connect to. NGINX does not enable it by default. The sample nginx.conf in the upstream source listens on port 80 only, and its HTTPS server block is commented out. AlmaLinux says the default configuration on AlmaLinux 8, 9 and 10 has no active HTTP/2 either. It immediately adds a warning: "Most sites that serve HTTPS do turn it on, though, so if your nginx serves HTTPS, check."

That warning is why the 98.9% figure needs context. Xint counted 56.7 million Shodan hosts identifying as NGINX on November 10. Only 11.94 million (21.1%) reported a version, and the 98.9% applies to that subset. Xint itself says the numbers "don't confirm that a server is vulnerable", because HTTP/2 also has to be on and the version may include a backported fix. Censys' live tracker, which combines version with HTTP/2 support, put potentially exposed services at about 8.8 million on November 19, BleepingComputer reported. It also counted another 104 million NGINX services that do not disclose a version at all.

The check is a single command. Both Xint and AlmaLinux suggest searching the configuration for listen ... http2 or http2 on directives. If nothing matches, neither HTTP/2 bug can be reached.

Condition two: the attacker needs a direct, fast, long-lived connection

Rapid7's writeup is the most specific about what exploiting CVE-2026-123007 costs. Its method requires "approximately 128 GB of HTTP/2 data". Rapid7 estimates that sending this takes about two minutes on a 10 Gbit/s link and seventeen on a 1 Gbit/s link. Because NGINX closes connections after one hour by default, "a network slower than approximately 300 Mbit/s will take over the one hour connection limit threshold and will not be able to succeed." Rapid7's exploit also depends on a specific x86-64 glibc memory-copy routine that is selected at runtime on CPUs with AVX-512 features. "Alternative RCE exploitation strategies may be viable," Rapid7 writes, "but none are currently known."

The network path matters too. Rapid7 says that if the HTTP/2 connection is proxied, the attacker's frames "will likely not be retransmitted in a way that satisfies exploiting the vulnerability". Wiz is more cautious: CDNs and WAFs that terminate HTTP/2 "may mitigate parts of the exploit", adding: "This depends on implementation." So an NGINX origin that accepts traffic only from a CDN is in a different position from one whose port 443 is open to the internet. That holds only if the origin really refuses direct connections.

These are constraints on one published exploit technique, not guarantees. Wiz built its own working exploits, which it is not releasing. It says attackers "may not need to target every single configuration" and could start with packaged products where many customers run the same build. Rapid7 has published proof-of-concept scripts on GitHub. Exploitation is expensive, not out of reach.

Condition three: the package, not the version string

The most common mistake will be judging exposure by version number, and it can go wrong in both directions. Xint notes that Ubuntu 24.04 ships NGINX 1.24.0, Ubuntu 22.04 ships 1.18.0 and Debian 12 ships 1.22.1, and that distributions backport fixes without changing the version NGINX reports. A server that says 1.18.0 may be patched, and only the full package version and the distribution's advisory can show it. Distributions move at different speeds. AlmaLinux pushed backported packages straight to production repositories on November 18. At that point, it said, Red Hat had not yet released fixed packages.

Some installations have no fix at all. AlmaLinux says older module streams it has retired, "including the AlmaLinux 8 default nginx:1.14", are not getting these patches. Rapid7's remediation table lists NGINX Plus R34 through R36 as affected with no fixed version. Administrators on those branches need to move to a supported release or use the configuration mitigations indefinitely. AlmaLinux also notes that its packages cover only NGINX installed from its own repositories. Builds from nginx.org's repository, hosting control panels or third-party repositories depend on those vendors.

After upgrading, restart the service. Both Xint and Censys warn that a configuration reload does not replace the running binary.

Why turning off HTTP/2 is not enough

The quick fix most coverage recommends, disabling HTTP/2, blocks only CVE-2026-123007 and CVE-2026-123633. The other three bugs sit in features that are less common but standard in some deployments: HTTP/3 with requests forwarded to a backend, DNS resolution at request time combined with subrequests such as mirror or SSI, and the mail proxy with auth_http. Xint gives a separate temporary mitigation for each, and warns that turning off mirror alone does not make a resolver setup safe. The practical sequence is to list which of the four features each server uses and then patch. Do not assume that "HTTP/2 off" means safe.

The root step depends on a kernel bug with no patch yet

The "2Root" in the name comes from a separate flaw. On its own, the NGINX bug gives an attacker the privileges of an NGINX worker process, which normally has limited permissions. Xint escalated to root using a use-after-free it found in the Linux kernel's SCTP subsystem (SCTP is a transport-layer protocol, like TCP and UDP). It says the bug has been in the kernel since 2018, and it is withholding most details "until a kernel patch is available". In its tests the chain also escaped a Docker container. Because containers share the host kernel, that gives control of the host and every container on it.

Xint is careful about scope. SCTP is often installed as a module that loads automatically, but whether it is reachable "depends on the kernel, the available modules, and the container's restrictions". For hosts that do not need SCTP, it suggests blocking the module with an install sctp /bin/false line in /etc/modprobe.d/. This does not unload a module that is already loaded and does not help if SCTP is compiled into the kernel. Censys says it has not verified the kernel flaw or the chain. Running NGINX in a container should not be treated as a safety boundary until the kernel side is fixed.

What is and is not known

Censys said on November 18 that it was not aware of exploitation in the wild, calling that "a point-in-time absence of evidence, not proof that no attacks have occurred". None of the five CVEs appeared in CISA's Known Exploited Vulnerabilities catalog as of its November 20 update. In its lab, Censys reproduced the corrupted flow-control state behind CVE-2026-123007 and use-after-free conditions in three of the other four bugs, but did not achieve code execution. Remote code execution so far rests on the original researchers' own demonstrations.

The broader pattern is harder to dismiss. Xint counts 26 NGINX vulnerabilities recorded on nginx.org this year before NGINX2Root, against two in all of 2025. Wiz says it found its two with an AI-driven research harness, Xint says its scanning tool found four of its five without human guidance, and several teams independently found the same bugs. For defenders, that undercuts the usual comfort that a hard exploit buys time. The useful response to NGINX2Root is to sort servers by what actually decides exposure: HTTP/2 or the other affected features in use, direct reachability, and a package that provably contains the fix. Servers on branches with no fix available should be moved first.

Sources