Critical 'nginx2root' Vulnerabilities Allow Remote Code Execution
Two critical NGINX vulnerabilities, 'nginx2root,' enable unauthenticated attackers to execute code remotely if specific configurations are in place, according to vendor advisories.
Overview of the 'nginx2root' Vulnerabilities
Critical NGINX vulnerabilities, collectively named 'nginx2root,' have been identified, allowing unauthenticated attackers to execute code remotely on affected servers. According to the vendor advisory, the first flaw, CVE-2026-123007, is a flow-control bug that can corrupt memory in an NGINX worker when HTTP/2 is enabled. The second flaw, CVE-2026-123633, is a use-after-free issue that affects NGINX when it accepts HTTP/2 connections and proxies requests to a backend server under specific conditions. Both vulnerabilities can be chained with a Linux kernel bug to gain root access, as demonstrated by researchers. The first flaw has been present in NGINX's open-source code since version 1.9.5, released in 2015. NGINX Plus is also affected in certain versions. Each vulnerability requires specific configurations to be exploited, as outlined in the advisory.
Impact and Exploitability of the Vulnerabilities
The recently disclosed 'NGINX2Root' vulnerabilities pose significant risks to NGINX server deployments, though their exploitability depends on specific configurations. Security researcher Florian Roth notes that these flaws are more severe than similar issues like Node2Shell and Java2Shell, but he cautions that they are not an immediate threat for most NGINX setups. According to Xint, 98.9% of NGINX hosts with identifiable versions were within the affected range, but this statistic does not reflect whether HTTP/2 is enabled or if security patches have been applied. The two HTTP/2-related flaws require an unpatched server with HTTP/2 enabled on a reachable listener, and CVE-2026-123633 also demands that NGINX proxy requests to a backend. F5, the company behind NGINX, highlights that attackers can execute code if Address Space Layout Randomization (ASLR) is disabled or can be bypassed. These conditions limit the real-world exploitability of the flaws, but they remain a concern for misconfigured systems.
Mitigation and Fixes
System administrators are advised to upgrade to the latest NGINX Open Source versions, specifically 1.30.7 stable or 1.31.9 mainline, as these releases address the critical NGINX2Root vulnerabilities, according to F5. If an immediate upgrade is not feasible, temporarily disabling HTTP/2 is recommended. On NGINX 1.25.1 and later, administrators can disable HTTP/2 by setting http2 off in each affected server block and removing http2 from listen directives. After making these changes, NGINX should be restarted, and the openssl check should be rerun to confirm that HTTP/2 is no longer accepted. Signs of an attack, as noted by CIRCL, include unexpected programs launched by NGINX workers, abnormal worker exits or core dumps, long-lived HTTP/2 connections with heavy incoming traffic but few logged requests, and unusual outbound connections or DNS lookups.
Exposure and Affected Systems
According to Censys' live exposure tracker, approximately 8.8 million NGINX services were potentially exposed to CVE-2026-123007 as of November 19, based on affected version numbers and HTTP/2 support [BleepingComputer]. The company reports that more than 511,000 previously exposed services have already been patched or mitigated, while another 104 million NGINX services do not disclose their versions, making it difficult to determine whether they are affected [BleepingComputer]. Ubuntu's CVE status page listed nginx as vulnerable on its releases from 16.04 to 26.10, and Debian's security tracker listed it as vulnerable in bookworm, trixie, forky and sid [thehackernews.com]. Wiz ran its tests on official NGINX 1.31.7 and 1.31.8 builds, using HTTP/2 over TLS on 64-bit systems, according to its disclosure post [thehackernews.com]. Every open-source release from 1.9.5 through 1.31.8 is vulnerable, according to NGINX's security advisories [thehackernews.com].
Additional Vulnerabilities and Fixes
In addition to the NGINX2Root vulnerability, researchers identified three other flaws addressed by F5 in its latest security update. These include CVE-2026-121810, CVE-2026-123634, and CVE-2026-113425, which are use-after-free vulnerabilities affecting HTTP/3 reverse proxying, DNS resolution with subrequests, and mail proxy authentication, respectively [BleepingComputer]. F5 also fixed five additional vulnerabilities not highlighted in the Wiz or Xint reports [BleepingComputer]. One of these, CVE-2026-118899, is a high-severity issue that allows an unauthenticated attacker to cause a worker to enter an infinite loop while reading a request body over TLS 1.3, leading to denial of service [BleepingComputer]. Fixes for four of the flaws are available in NGINX Plus versions 37.3.0.1 and 37.0.8.1, with CVE-2026-123633 addressed in earlier builds 37.2.0.1 and 37.0.7.1 [thehackernews.com]. The official Docker images for NGINX currently include tags 1.31.9 and 1.30.7, with Alpine variants available [thehackernews.com].
Sources and reporting notes
Based on published source material. No independent hands-on testing is claimed.