Skip to content
Back to the blog

nginx2root: Disabling HTTP/2 stops two of five nginx RCE flaws

Breaches & Vulns

Nov 18, 2026 · 18 min read

nginx2root is the name given to five memory corruption flaws in nginx and one in the Linux kernel. Each nginx flaw is an independent path to unauthenticated remote code execution, in a different configuration. The kernel flaw turns any of them into root on the host. The most widely exposed, CVE-2026-123007, is an integer overflow in HTTP/2 flow control that sits in every official nginx release from 1.9.5 (2015) through 1.31.8. Its CVSS 4.0 score is 9.2, and the fixed releases are nginx 1.30.7 (stable) and 1.31.9 (mainline).

F5 released the fixes on November 18, 2026, with coordinated disclosure, and nginx.org lists nginx 1.30.7 and 1.31.9 with fixes for all five. Xint and Wiz have both withheld exploit code, and neither reports exploitation in the wild. The kernel flaw has no patch yet.

Vulnerability details

FieldValue
Namenginx2root
CVEsnginx: CVE-2026-123007, CVE-2026-123634, CVE-2026-123633, CVE-2026-121810, CVE-2026-113425. Linux kernel SCTP flaw: no CVE named in Xint’s write-up
SeverityCritical, per Xint and Wiz. F5’s CVE records give all five a CVSS 4.0 score of 9.2 (Critical) and a CVSS 3.1 score of 8.1 (High). nginx.org rates CVE-2026-123007 and CVE-2026-113425 major, and the other three medium
NVD statusReceived on November 18, 2026, for all five nginx CVEs, with F5 as the CNA. NVD analysis pending
CWEAssigned by F5: CWE-191 (integer underflow, in the window check) and CWE-787 (out-of-bounds write) for CVE-2026-123007, and CWE-416 (use-after-free) for the other four
ComponentsHTTP/2 module, HTTP/3 (QUIC) module, the DNS resolver used by proxy_pass, and the mail proxy’s auth_http path. Kernel: SCTP send path
Affected versionsCVE-2026-123007: every official release from 1.9.5 through 1.31.8. The others start at 0.5.33, 0.6.18, 1.19.7, and 1.25.0 (table below). Kernel flaw: Linux 4.15 and later
Fixed versionnginx 1.30.7 stable and 1.31.9 mainline. Xint names 1.31.9. F5 advisories: K000163926 (CVE-2026-123007), K000163925 (CVE-2026-123634), K000163928 (CVE-2026-123633), K000163927 (CVE-2026-121810), and K000163931 (CVE-2026-113425). No kernel fix yet
PreconditionsNetwork access to an nginx port in one of the affected configurations. No authentication or user interaction. Root on the host also needs the SCTP module to be loadable
ImpactCommand execution as the nginx worker user. Root on the host, including from inside a Docker container, when chained with the kernel flaw (Xint’s tests)
CISA KEVNot listed as of November 18, 2026 (catalog)
ExploitationNo exploitation in the wild reported. Xint and Wiz both hold back working exploits
Reported byXint (@imssm99, @cdor1, @tjbecker, @yves). The two HTTP/2 flaws were also reported independently by Wiz Research, Ikotas Labs, Metnir, and Rapid7

TL;DR

  • Any official nginx release from 1.9.5 through 1.31.8 with HTTP/2 enabled is exposed to CVE-2026-123007, unauthenticated code execution as the nginx worker. The other four flaws each need a specific configuration.
  • Disabling HTTP/2 blocks two of the five, CVE-2026-123007 and CVE-2026-123633. HTTP/3 proxying, request-time DNS with mirror, and the mail proxy each need their own mitigation.
  • Upgrade to nginx 1.30.7 or 1.31.9, or your distribution’s patched package, then restart nginx. A reload does not replace the running binary.
  • Do not trust nginx -v to tell you whether a server is patched. Distributions backport fixes without changing the version it prints.
  • The kernel flaw that turns worker access into root has no patch. On hosts that don’t use SCTP, block the module from loading.

Who is not affected

nginx2root covers five separate flaws, so a server is out of scope only if it avoids all five configurations. Going by the configuration table in Xint’s write-up:

  • Builds without the HTTP/2 module, or servers with HTTP/2 turned off on every listener, are not reachable through CVE-2026-123007 or CVE-2026-123633.
  • Servers with no QUIC listener (no listen ... quic, http3 off) are not reachable through CVE-2026-121810.
  • Servers whose proxy_pass targets are fixed upstream groups never resolve a destination at request time, so they don’t meet the conditions Xint tested for CVE-2026-123634.
  • Servers with no mail block using proxy on together with auth_http are not reachable through CVE-2026-113425.
  • nginx 1.30.7, 1.31.9, or a distribution package whose advisory lists the fixes, is patched for the nginx flaws.
  • Hosts where the SCTP module cannot load are not exposed to the kernel step, though the worker-level compromise still applies.

Turning off mirror alone does not rule out CVE-2026-123634, because Xint notes that other features that create subrequests, such as SSI, may reach the same bug. Releases before 1.9.5 predate HTTP/2, but they are still exposed to CVE-2026-123634 and CVE-2026-113425 and carry other known nginx flaws, so they are no safer to run.

What is nginx2root?

nginx is the web server and reverse proxy in front of a large share of websites and APIs, more than 225 million sites by the Netcraft figures that Wiz cites. It terminates TLS, speaks HTTP/2 and HTTP/3 to clients, and forwards requests to backend servers. All five nginx2root flaws sit in that front-door code, so they can be reached before any application logic or authentication runs.

The five flaws are independent: each one leads to code execution on its own, and they don’t need to be chained; Xint lists the configuration that exposes each one.

CVEBugAffected configurationFirst affected release (nginx.org)Blocked by disabling HTTP/2?
CVE-2026-123007Integer overflow in HTTP/2 flow control, leading to an out-of-bounds copyHTTP/2 enabled1.9.5Yes
CVE-2026-123634Use-after-free in the DNS resolverresolver, a request-derived proxy_pass destination, and a subrequest such as mirror0.6.18No
CVE-2026-123633Use-after-free when an active HTTP/2 connection is closed to free a slotHTTP/2 with requests forwarded to an upstream1.19.7Yes
CVE-2026-121810Use-after-free when a QUIC connection is closed mid-requestHTTP/3 with requests forwarded to an upstream1.25.0No
CVE-2026-113425Use-after-free in mail proxy authenticationMail proxy with proxy on and auth_http0.5.33No

There is a sixth flaw in the Linux kernel’s SCTP subsystem. While a send operation waits, its association can move to another socket, and the waiting operation then frees it, giving a use-after-free or double free. Xint says the flaw was introduced in Linux 4.15 in 2018 and is withholding most details until a patch ships. Many distributions load the SCTP module automatically the first time a program opens an SCTP socket, which is what lets code running as the nginx worker reach it.

According to Xint, one of its researchers found CVE-2026-123007 while preparing for ZeroDay Cloud 2026, and days later a fully automated Xint scan found the other four. Wiz found both HTTP/2 flaws with its AI code scanning harness, and says Ikotas Labs, Metnir, and Rapid7 reported them to F5 as well.

Technical analysis

CVE-2026-123007 starts as a bookkeeping error in HTTP/2 flow control and ends as an out-of-bounds memory copy in the TLS send path. Both Xint and Wiz trace it through the same functions. We stop short of the final exploitation steps, because neither team published them and we don’t reproduce them.

How nginx tracks HTTP/2 send windows

HTTP/2 flow control stops a server from sending more response data than the client is ready for. nginx keeps a send window for each stream and one for the whole connection, h2c->send_window. The protocol caps a window at 231 − 1. Queuing DATA subtracts its size from both windows, and a client’s WINDOW_UPDATE frame adds credit back.

Where the accounting breaks

If a stream is canceled while its DATA is still queued, ngx_http_v2_filter_cleanup() drops the unsent DATA and refunds its size to the connection window:

c
h2c->send_window += window;

That refund has no upper-bound check. A client that has already restored the same credit with a WINDOW_UPDATE can then cancel the streams, and the refund pushes the window past the 231 − 1 limit.

Why the bounds check stops working

The check on later WINDOW_UPDATE frames computes the room left as the maximum minus the current window:

c
if (window > NGX_HTTP_V2_MAX_WINDOW - h2c->send_window)

send_window is an unsigned size_t. Once it exceeds the maximum, the subtraction wraps to a huge positive number, so every further increment passes the check. Xint notes that repeating this lets a client set the window to any 64-bit value.

From an oversized window to an out-of-bounds copy

ngx_http_v2_send_chain() casts the window to the signed off_t when sizing the next DATA frame, so a value near 264 becomes a small negative number. That negative size leaves a buffer’s end pointer before its start, and the TLS output path in ngx_ssl_send_chain() turns the difference back into an enormous unsigned length for memcpy().

A copy that size would normally crash the worker, but Xint explains that on x86-64 glibc 2.24 and later, the large-copy path works backward from an end address that has wrapped around. The loop runs once, so only a few hundred bytes around the buffer edges are copied. The attacker influences where those edges fall, which gives both a heap write and a read of pointers that come back in the response. With addresses disclosed, an overwritten cleanup callback runs a command as the worker.

Wiz confirmed code execution with an address space layout randomization (ASLR) bypass on official 1.31.7 and 1.31.8 builds, over TLS on 64-bit systems serving ordinary static files, with no backend or third-party module. Xint reports success on AWS, GCP, and Azure, from inside the host, across a private network, and over a public IP.

The other four flaws

CVE-2026-123633: an HTTP/2 connection that pauses in the middle of a HEADERS frame is marked as reusable and stays marked after the request starts. When the request opens an upstream connection and nginx is short of connection slots, it can close that same HTTP/2 connection to free one, destroying the request while the upstream code still uses it. Wiz describes a second route into the same bug: once nginx reaches its per-connection frame limit, building the GOAWAY frame can fail too, and the error path closes the connection in the same way.

CVE-2026-121810: the HTTP/3 version of the same pattern. While nginx creates a new stream, closing another idle stream can put the parent QUIC connection back on the reusable list, and the new request’s upstream connect can then free it.

CVE-2026-123634: when a request and its mirror wait for the same DNS answer, a failed lookup plus a client reset can terminate the main request and free the mirror’s resolver context. The resolver loop still holds a pointer to it and later calls the handler stored there.

CVE-2026-113425: in the mail proxy, a client that resets its connection during login can free its session while the connection to the auth_http service still points to it. Xint triggered it with an auth service that rejected every login, so no valid credentials are needed.

Xint tested all four against the official nginx:1.31.8 container image, each with the relevant block added to the stock configuration, and reached command execution as the worker in every case.

What is the impact?

An attacker who exploits any of the five nginx flaws runs commands as the nginx worker user. That process terminates TLS and handles decrypted traffic for every site and API behind it, so request headers, cookies, bearer tokens, and API keys pass through its memory. One nginx deployment often fronts several applications, so a flaw in nginx exposes them even when their own code is secure.

Chained with the kernel flaw, the impact grows to root on the host. Xint’s demo used CVE-2026-123007 to run commands as the worker inside a Docker container, then escalated to root on the underlying AWS host over its public IP. Because containers share the host kernel, root there means control of every container on that host. Whether SCTP is reachable depends on the kernel, the available modules, and the container’s restrictions.

The conditions differ by flaw: CVE-2026-123007 needs only a reachable HTTP/2 port, which makes it the widest exposure. In Xint’s tests, CVE-2026-123633 and CVE-2026-121810 needed nginx to open a TCP connection to the attacker, and CVE-2026-123634 needed nginx’s resolver to reach the attacker’s DNS server. Servers that cannot make outbound connections to arbitrary hosts are harder to exploit through those three.

ASLR offers no protection: both HTTP/2 flaws let an attacker read memory before taking control. Exploits still have to fit a given build and configuration, and Wiz points to PHP2Shell, where widespread attacks first hit packaged products whose customers all ran the same build.

As a rough measure of scale, Xint found 56.7 million hosts for product:nginx on Shodan as of November 10, 2026, and 98.9% of the 11.94 million that showed a version fell in the range affected by CVE-2026-123007. Xint itself warns that version strings don’t confirm a server is vulnerable: HTTP/2 must be enabled, and the package may carry a backported fix.

Attacks on CVE-2026-123007 are also hard to spot, because the WINDOW_UPDATE and RST_STREAM frames that trigger it are not requests, so they don’t appear in access logs, and TLS hides them on the wire. Wiz adds that CDNs and WAFs that terminate HTTP/2 may break parts of an exploit, depending on how they forward traffic, though that is no substitute for patching the nginx behind them.

Which products are affected?

As of November 18, 2026, the nginx security advisories confirm that nginx 1.30.7 and 1.31.9 fix all five. The NGINX Plus builds below come from Wiz, which lists them for the two HTTP/2 flaws; check F5’s advisories for the other three. Earlier 2026 advisories also covered F5 products built on nginx, such as NGINX Ingress Controller, App Protect WAF, and Gateway Fabric; we have not confirmed whether this release covers them.

ProductVersions affectedFixed inStatus
NGINX Open Source1.9.5 through 1.31.8 for CVE-2026-123007; see the CVE table for the others1.30.7 stable, 1.31.9 mainlineReleased November 18
NGINX PlusR33 and 37.0.0 onward, for both HTTP/2 flaws37.0.8.1 and 37.3.0.1 (CVE-2026-123007); 37.0.7.1 and 37.2.0.1 (CVE-2026-123633)Per Wiz; check F5’s advisories for the other three
Ubuntu 24.04, Ubuntu 22.04, Debian 12Ship nginx 1.24.0, 1.18.0, and 1.22.1Backported packages, under the same version numberCheck each distribution’s advisory
Products that bundle nginx (ingress controllers, appliances, container images)Depends on the bundled buildA fixed build from that vendorCheck each vendor
Linux kernel (SCTP)4.15 and laterNone yetBlock the sctp module where unused

Which actions should security teams take?

1. Upgrade

Install nginx 1.30.7 or 1.31.9, NGINX Plus’s fixed build, or your distribution’s patched package as soon as it ships. Then restart nginx or complete a live binary upgrade.

  • A configuration reload does not replace the running executable, and old workers keep serving existing connections until they exit.
  • Check the full package version against your distribution’s advisory, not the output of nginx -v. Ubuntu 22.04, for example, moved from 1.18.0-6ubuntu14 to 1.18.0-6ubuntu14.22 through security updates while nginx -v still reported 1.18.0.
  • Rebuild container images once the base image is fixed. Images pinned to older digests stay vulnerable.

2. Reduce exposure until you can patch

Each mitigation covers only the flaws in its own configuration. Disabling HTTP/2 is the quickest, and it leaves three of the five open.

ConfigurationMitigationCovers
HTTP/2 enabledOn 1.25.1 and later, set http2 off; in each server block and remove any http2 parameter from listen; on older releases, remove http2 from listenCVE-2026-123007, CVE-2026-123633
Request-time proxy_pass with resolver and mirrorPoint proxy_pass at a fixed upstream group; turn off mirror where it isn’t neededCVE-2026-123634
HTTP/3 proxyingRemove quic listeners, set http3 off;, send Alt-Svc 'clear', and block UDP on that portCVE-2026-121810
Mail proxy with auth_httpBind mail listeners to loopback, or allow only trusted IPs at the firewallCVE-2026-113425
Any host that doesn’t use SCTPAdd install sctp /bin/false to a .conf file in /etc/modprobe.d/Kernel step to root

The modprobe.d rule only stops the module from loading through modprobe. It does not unload a module already loaded, and it does nothing if SCTP is built into the kernel. After any configuration change, run nginx -t, reload, and restart nginx if old workers are still holding connections. Re-enable HTTP/2 once the fixed release is running.

3. Find exposed instances

No indicators of compromise have been published. To find hosts in scope for CVE-2026-123007:

  • Check the version and package. nginx -v gives a first cut, and the distribution package version settles whether a backport is in.
  • Check the build. nginx -V 2>&1 | grep -c http_v2_module returns 0 when the binary has no HTTP/2 code.
  • Check the configuration. nginx -T shows the full loaded configuration; look for http2 on; or http2 in a listen line.
  • Check reachability from outside your network. openssl s_client -connect HOST:443 -servername HOST -alpn h2 reports ALPN protocol: h2 when the server accepts HTTP/2. Behind a CDN, also test the nginx host directly.

Patch internet-facing servers first, then appliances, packaged products, and shared container images, where many deployments run the same nginx build and one working exploit reaches all of them.

For the other four, search configurations for quic, resolver with a variable in proxy_pass, mirror, and mail blocks with auth_http.

Of the exploitation signals Xint suggests, the strongest is an nginx worker starting a shell or any other program; an auditd rule on execve for the worker’s UID records this from the moment it is installed. Weaker signs include long-lived HTTP/2 connections whose received bytes keep climbing while logged request sizes stay small, many short TLS connections from the same source, and repeated worker crashes (signal 11 in the error log), each of which can have an innocent cause on its own. Wiz flags the same pattern of long-lived HTTP/2 connections carrying large amounts of data as a possible sign of an attack on CVE-2026-123007.

Timeline

DateEvent
November 18, 2026F5 security release and coordinated disclosure (November 19 in Korea, per Xint). Xint publishes nginx2root and Wiz publishes its HTTP/2 analysis
November 17, 2026F5 tells Wiz its second report matches CVE-2026-123007
November 16, 2026Wiz reports the HTTP/2 flow-control flaw to F5
November 10, 2026nginx team asks Xint to validate the patches, and Xint completes validation. F5 sends Wiz a patch for CVE-2026-123633
October 27, 2026Xint’s reports reach F5’s nginx development team
October 21, 2026Wiz reports CVE-2026-123633; F5 says another team had already reported it
October 20, 2026HackerOne completes validation of Xint’s reports
October 16, 2026Xint reports the flaws to F5 through HackerOne
October 11, 2026Xint finds the vulnerabilities
2018The SCTP flaw enters the Linux kernel in 4.15
2015nginx 1.9.5 adds HTTP/2, along with the code behind CVE-2026-123007

The bigger security pattern

nginx2root is the third disclosure in a week about code below the application, after the Apache HTTP Server mod_http2 flaw (CVE-2026-119618) in the web server’s HTTP/2 code and Java4Shell (CVE-2026-114938) in the runtime’s Base64 decoder. This time the flaws are in the reverse proxy that often runs in front of both. In each case the vulnerable code runs before authentication or business logic sees the request, so a well-built API behind it is exposed anyway.

Five teams (Xint, Wiz Research, Ikotas Labs, Metnir, and Rapid7) reported the same two HTTP/2 flaws to F5 independently, after one of them had sat in nginx for more than a decade. Wiz says its AI code scanning harness found both, and Xint says an automated scan found four of its five. Xint counts 2 new entries on the nginx security advisory list in 2025 and 26 by November 17 this year, before nginx2root.

Five flaws in the same server are reached through HTTP/2, HTTP/3, the resolver, and the mail proxy, and one quick mitigation covers only two of them. Scoping nginx2root takes four facts per server: the real package version, which protocols its listeners accept, how its proxy_pass destinations are resolved, and whether it runs a mail proxy.

How Equixly helps

Equixly pentests the web apps and APIs that sit behind a front door like nginx, so once the server is patched, you know what the applications behind it still expose.

  • Every application. Web apps, APIs, MCP servers, and LLM apps, from one platform.
  • Inside the network too. Space Link runs in your environment, so internal services get tested without being exposed.
  • Every release, no per-test bill. Test on every release.

To learn more and see the platform in action, book a demo.


Did you like our post? Share it on social!

Related Articles

View all articles

  • Breaches & Vulns

    CVE-2026-115560: PHP session RCE needs no runtime switch

    CVE-2026-115560 is a pre-auth PHP RCE via upload progress in shared session stores with mixed serializers. Fixed in 8.6.0, 8.5.13, 8.4.28, 8.3.37, and 8.2.36.

  • Breaches & Vulns

    Ruby2Shell: Pre-auth heap overflow in Ruby 3.3, 3.4, and 4.0

    Ruby2Shell (GHSA-34m4-m9fh-gqp5) is a pre-auth heap overflow in Ruby that can lead to RCE in Rails and Sinatra apps. Fixed in Ruby 4.0.10, 3.4.13, and 3.3.14.


    • Alexandra WellsAlexandra Wells
    • Eugen SaraciEugen Saraci

    Nov 19, 2026

    Read more: Ruby2Shell: Pre-auth heap overflow in Ruby 3.3, 3.4, and 4.0