>_ AYSOLI CYBERSECURITY
← Back to Advisories
CRITICALAYS-2026-014 · 2026-11-20

CVE-2026-123007 et al. – NGINX2Root: Critical nginx Flaws Enable Code Execution

Several vulnerabilities in nginx, led by a flaw in HTTP/2 handling, allow attackers without authentication to crash the web server or run their own code. The HTTP/2 flaw has been in nginx since 2015 and therefore affects practically every nginx server with HTTPS. A public exploit exists, and updates are available.

What happened?

On November 18, nginx released versions 1.30.7 (stable) and 1.31.9 (mainline). They close ten vulnerabilities. The security company Xint groups five of them under the name "NGINX2Root". F5, the vendor behind nginx, rates them at CVSS 9.2:

  • CVE-2026-123007 (HTTP/2): nginx keeps track of how much data it may send to a client. With a particular sequence of HTTP/2 control messages, a client can make this accounting overflow. nginx then copies data far past the end of a memory area. The result is a crash, in the worst case code execution with the privileges of the nginx worker. The flaw has existed since nginx 1.9.5 (2015). HTTP/2 being enabled is all it takes.
  • CVE-2026-123633 (HTTP/2): A use-after-free when nginx forwards requests to a backend while running out of free connections at the same time.
  • CVE-2026-121810 (HTTP/3): A similar flaw in HTTP/3 (QUIC) with forwarding to a backend.
  • CVE-2026-123634 (resolver): A use-after-free during DNS resolution. Affected are configurations with resolver, a proxy_pass containing variables and mirror, possibly SSI as well.
  • CVE-2026-113425 (mail proxy): A use-after-free in the mail proxy with auth_http. No valid credentials are needed.

On top of that comes CVE-2026-118899 (CVSS 8.7): over TLS 1.3, a worker can be sent into an infinite loop. It doesn't allow code execution but does cause an outage, and there is no interim mitigation. The remaining four flaws are less severe and affect special configurations.

Rapid7 has published an exploit for CVE-2026-123007. It is demanding: each attack needs around 128 GB to flow over a single connection. Xint and Wiz have their own working exploits for all five flaws but are holding them back. Fake "exploits" are also circulating on GitHub, so be careful when trying them. No attacks in the wild are known so far. Xint additionally chains the flaws with a bug in the Linux kernel's SCTP module to gain root; there is no kernel patch for it yet.

Who is affected?

  • All nginx versions from 1.9.5 to 1.31.8 with HTTP/2 enabled. That covers most nginx servers with HTTPS, whether used as a web server, reverse proxy or load balancer. Fixes exist only for the 1.30 and 1.31 branches. Older versions receive no updates.
  • Kubernetes: The NGINX Ingress Controller from 5.8.0 and NGINX Gateway Fabric from 2.9.0 are fixed. The community project ingress-nginx has been discontinued and receives no further fixes. It has HTTP/2 enabled by default.
  • NGINX Plus: Fixed in 37.3.0.1 and 37.0.8.1 respectively. There is no fix for R33 to R36.
  • Software with built-in nginx: OpenResty and API gateways built on it, such as Kong and Apache APISIX, plus appliances and NAS systems. Here you have to wait for the vendor's update. BIG-IP and other F5 products are not affected.
  • Distribution status (November 20): Debian, Ubuntu, Alpine, Amazon Linux, Arch and openSUSE Tumbleweed have fixed packages, although Ubuntu doesn't cover all ten flaws yet. RHEL 8 to 10 and Fedora are still waiting for updates.

What needs to be done?

  1. Update: Install nginx 1.30.7 or 1.31.9 – or your distribution's security update. Afterwards you have to restart nginx (systemctl restart nginx). A reload is not enough; otherwise the old workers keep running. Container images have to be rebuilt and redeployed. Distribution packages often still show the old version number in nginx -v. What matters is your distribution's advisory.
  2. Build an inventory: Where does nginx run? Think of ingress controllers, containers, API gateways and appliances too.
  3. Interim mitigation if you cannot update yet: Turn off HTTP/2. From nginx 1.25.1, set http2 off; in every server block; on older versions, remove http2 from the listen line. You can check this with openssl s_client -alpn h2 -connect <host>:443: the output must no longer show "ALPN protocol: h2". This only protects against the two HTTP/2 flaws and breaks gRPC. For the others:
    • HTTP/3: remove quic listeners.
    • Mail proxy: make it reachable from trusted networks only.
    • Resolver flaw: switch proxy_pass to fixed upstream groups without variables, or turn off mirror.
  4. Assess upstream services correctly: A CDN or load balancer that terminates HTTP/2 itself only protects you if nginx isn't also directly reachable from the internet. It does not replace the update.
  5. Check for compromise: Search the error.log for "worker process … exited on signal 11" or "signal 6". Look for single connections receiving dozens of gigabytes and for nginx workers spawning a shell or other programs. If in doubt, isolate the system and replace the server's TLS keys.
  6. Block SCTP: If you don't need SCTP, which is almost always the case on web servers, install sctp /bin/false in a file under /etc/modprobe.d/ prevents the kernel module from loading. A module that is already loaded is not affected by this.

This advisory is for informational purposes. For support in securing your web servers, contact us.

Ready to know your attack surface?

Tell us briefly about your project. We'll come back with a concrete proposal.

Request a first call