DevOps

nginx2root: five critical nginx vulnerabilities, patch now

nginx vulnerabilities dubbed nginx2root: five RCE bugs in HTTP/2, HTTP/3, resolver and mail proxy, plus a path to root. Versions, stopgaps, patch plan.

nginx2root: five critical nginx vulnerabilities, patch now

nginx2root: five critical nginx vulnerabilities, patch now

If you run nginx anywhere, and almost every team does, the nginx vulnerabilities disclosed on 18 November 2026 under the name nginx2root belong at the top of this week's backlog. Five memory-corruption bugs in HTTP/2, HTTP/3, the DNS resolver and the mail proxy can, under the right conditions, give an attacker remote code execution inside an nginx worker. Two days later, Cloudflare published a thorough technical breakdown of every bug, its fix and the interim mitigations.

The name earns its drama. The same researchers found a Linux kernel bug that turns code execution as the nginx worker into root on the host, containers included, and that kernel bug had no fix at disclosure time. For AI platform teams, the uncomfortable part is where nginx tends to live: in front of inference APIs, LLM gateways, MLflow, JupyterHub, and in countless container images nobody has rebuilt in a year.

The context

nginx is the open source web server and reverse proxy now stewarded by F5. In a typical deployment it terminates TLS, speaks HTTP/2 or HTTP/3 (QUIC) to clients, and forwards requests to internal services through proxy_pass.

A few terms you will need:

  • Use-after-free: code keeps using memory that has already been released. If an attacker can control what gets written there next, they can hijack execution.
  • Integer overflow: a number exceeds what its type can hold and wraps around, often to a negative value, which breaks size calculations.
  • ASLR: address space layout randomisation, an OS defence that makes exploitation harder. Cloudflare notes that code execution through these bugs requires ASLR to be disabled or bypassed.

The timeline was tight. Research firm Xint found the bugs on 11 October, reported them to F5 through HackerOne on 16 October, and coordinated public disclosure with patches on 18 November. Rapid7, Wiz Research, Palo Alto Networks Unit 42 and others independently found the HTTP/2 issues.

The five nginx vulnerabilities, one by one

According to the official nginx security advisories, everything is fixed in nginx 1.30.7 (stable) and 1.31.9 (mainline). F5 rates all five as high or critical on CVSS, while nginx.org uses its own scale, from "medium" to "major".

HTTP/2 flow control: the oldest and worst

CVE-2026-123007 affects HTTP/2 flow control from version 1.9.5, released in 2015, up to 1.31.8. A connection's send window is capped at 2^31−1. WINDOW_UPDATE frames respect the cap, but when queued DATA frames are cancelled, the window "refund" skips the check. The window can then exceed the limit, wrap negative, and corrupt the heap during a later memory copy.

This is not a stealthy attack. It takes billions of WINDOW_UPDATE frames, roughly 112 GB according to Cloudflare, and Rapid7 puts the total at 128 GB, about two minutes at 10 Gbit/s. Expensive, but well within reach of a determined attacker.

CVE-2026-123633 (1.19.7 onwards) is a use-after-free in HTTP/2 with proxy_pass when worker_connections is low. Once connection slots run out, nginx closes idle "reusable" connections to free them. Connections with active streams were never marked non-reusable, so one could be torn down mid-request.

HTTP/3, the resolver and the mail proxy

CVE-2026-121810 is the HTTP/3 (QUIC) twin of that bug, present since 1.25.0.

CVE-2026-123634 hits setups combining resolver, a proxy_pass with variables, and subrequests such as mirror. Two DNS resolution contexts belonging to the same request could be freed while the list holding them was being walked. Vulnerable since 0.6.18.

CVE-2026-113425 affects the mail proxy (IMAP, POP3, SMTP) with auth_http: if writing to the client fails during authentication, the session is freed while the upstream connection still points to it. Vulnerable since 0.5.33.

The same advisory batch on nginx.org includes other fixes too, such as an infinite loop when reading a request body over TLS 1.3 (CVE-2026-118899). Another reason to upgrade rather than stack workarounds.

From nginx worker to root: the SCTP kernel bug

This is the part that should worry infrastructure owners most. Xint found a use-after-free in the Linux kernel SCTP send path (Linux 4.15 and later, no CVE assigned yet). Anyone running code as the nginx worker can use it to become root on the host, even from inside a container.

As of 18 November there was no kernel patch, and details are withheld. The interim measure is to stop the module from loading:

echo "install sctp /bin/false" | sudo tee /etc/modprobe.d/disable-sctp.conf

Cloudflare is explicit about the limits: this blocks future loading, but does not unload a module that is already active, and does nothing if SCTP is built into the kernel. On Kubernetes nodes, check with lsmod | grep sctp and roll the setting out through your node configuration tooling, not by hand.

Exposure is huge. Cloudflare cites Censys at roughly 8.8 million services with HTTP/2 enabled as of 19 November, and a Shodan count from 10 November of 11.94 million nginx hosts advertising a version, 98.9% of them in the affected range. At that point none of the bugs were in CISA's Known Exploited Vulnerabilities catalogue, and Rapid7's public proof of concept targets a local container only.

Fixing the nginx vulnerabilities: inventory, patch, mitigate

The playbook

Cloudflare's recommended sequence is short:

  1. Inventory every nginx instance, including those baked into container images, with nginx -V (version and compiled modules) and nginx -T (effective configuration).
  2. Upgrade to 1.30.7, 1.31.9 or your distribution's fixed build, then restart. nginx -s reload re-reads configuration; it does not swap the binary.
  3. Check backports: distributions often patch without bumping the visible version string, so read the package changelog instead of trusting nginx -v.
  4. Lock down the origin if it sits behind a CDN or proxy.

Stopgaps while you patch

  • http2 off; neutralises CVE-2026-123007 and CVE-2026-123633;
  • http3 off; neutralises CVE-2026-121810;
  • replacing variable-based proxy_pass with fixed upstream groups limits CVE-2026-123634;
  • binding mail listeners to trusted networks covers CVE-2026-113425.

What an upstream proxy does and does not buy you. A proxy that terminates HTTP/2 and HTTP/3 at the edge and opens its own connections to the origin blocks the three protocol bugs, because control frames such as WINDOW_UPDATE and RST_STREAM stop at the proxy. That only holds if the origin is reachable exclusively through it, via an outbound tunnel, an IP allowlist or mTLS. TCP/UDP passthrough and DNS-only setups get no protection, and Cloudflare stresses that WAF rules are irrelevant here: these are protocol-level bugs, not request patterns.

For detection, watch for client violated connection flow control, worker process ... exited on signal 11 and worker_connections are not enough, reusing connections. The strongest signal of all is an unexpected execve from an nginx worker, exactly what Falco or an auditd rule is built to catch.

What this means for AI teams

These nginx vulnerabilities are not just a web hosting problem. In AI stacks, nginx is very often the front door: in front of an inference server, a home-grown LLM gateway, MLflow, Label Studio or JupyterHub. Those services tend to be stood up quickly from an image found in a tutorial and then forgotten, which is exactly the kind of infrastructure that stays vulnerable for months after a fix ships.

Three practical moves:

  • Hunt for nginx in images, not just hosts. Run an image scanner such as Trivy or Grype across your registry to find containers bundling an old nginx. An image pinned to an old tag will not heal itself; rebuild and redeploy it.
  • Treat streaming as a risk factor. Streaming inference endpoints keep long-lived, high-volume HTTP/2 connections open, which makes volume-based anomalies harder to spot. Baseline your normal traffic so the abnormal stands out.
  • Harden GPU nodes like any other node. The SCTP path to root is a reminder that a container is not a strong enough security boundary. Blocking the SCTP module, keeping ASLR on and applying restrictive seccomp profiles is basic hygiene, including on expensive nodes nobody likes to reboot.

Cloudflare also points out that nginx security advisories went from 2 in 2025 to 36 so far in 2026, a sign that AI-assisted research is finding bugs in heavily reviewed code faster than before. This week's nginx vulnerabilities will not be the last, so a fast, boring proxy patching process beats a fire drill for every advisory.

TL;DR

  • nginx2root is five nginx memory-corruption bugs (HTTP/2, HTTP/3, resolver, mail proxy), fixed in 1.30.7 and 1.31.9.
  • The oldest, CVE-2026-123007, has been present since version 1.9.5 in 2015.
  • An unpatched SCTP kernel bug turns an nginx worker compromise into root, even from a container: block the module.
  • Upgrade and restart; a reload does not replace the binary. Scan your container images too.
  • Until then, http2 off; and http3 off; neutralise the protocol bugs.

Industrialising AI agents? SeedVision offers 3-5 day AI audits and 15-30 day production rollouts. See the packages or book a 30-min call.

Cover photo: Photo by Scott Rodgerson on Unsplash.