Illuminate Risk Making AI risk visible. Book a discovery call
Editorial

nginx2root: the HTTP/2 flaw in millions of nginx servers, and what to do about it now

Five memory-corruption flaws in nginx, led by an HTTP/2 bug present since 2015, let an unauthenticated attacker execute code on the server. Here's what's real, who's affected, and what to do before it's exploited.

· updated

  • ai-security
  • vulnerability-disclosure
  • nginx
  • remote-code-execution
  • http2

On November 18, 2026, F5 and nginx fixed ten nginx vulnerabilities. Five of them — published by the Xint research team as nginx2root — are memory-corruption flaws that let an unauthenticated attacker execute code on the server. The worst has shipped in every nginx release since 2015.

Bottom line: any nginx with HTTP/2 enabled, on a version from 1.9.5 through 1.30.6, or 1.31.0 through 1.31.8, can be driven to run attacker code as the nginx worker — no login and no application bug required. HTTP/2 is not enabled by default in nginx, but it is commonly turned on for TLS listeners, so a large share of internet-facing nginx is in scope. Exploitation gives code execution as an unprivileged worker; root requires chaining the separate Linux kernel bug described below. Upgrade to 1.30.7 (stable) or 1.31.9 (mainline), or your distribution’s fixed build, then restart and verify. Interim mitigations exist, and each one covers only part of the problem.

What was disclosed

Xint published five independent memory-corruption bugs, one for each of five nginx configurations. Each can, on its own, let a remote unauthenticated attacker run commands as the nginx worker. Xint also found a separate Linux kernel use-after-free in the SCTP send path (present since kernel 4.15) that turns that foothold into root on the host, including from inside a Docker container. The same November 18 releases fixed five further nginx flaws, among them CVE-2026-125283 (a buffer overflow when using alias with try_files), CVE-2026-120993 (a NULL-pointer dereference with PROXY protocol v2) and CVE-2026-118899 (an infinite-loop denial of service while reading a request body over TLS 1.3).

CVE Bug Affected configuration First affected version Fixed in
CVE-2026-123007 HTTP/2 flow-control integer underflow → out-of-bounds read/write HTTP/2 enabled (commonly on, not default) 1.9.5 (2015) 1.31.9 / 1.30.7
CVE-2026-123633 Use-after-free HTTP/2 proxied to a backend, worker low on connections 1.19.7 1.31.9 / 1.30.7
CVE-2026-121810 Use-after-free HTTP/3 (QUIC) proxied to a backend 1.25.0 1.31.9 / 1.30.7
CVE-2026-123634 Use-after-free resolver + variable proxy_pass + a subrequest (mirror/SSI) 0.6.18 1.31.9 / 1.30.7
CVE-2026-113425 Use-after-free Mail proxy with auth_http 0.5.33 1.31.9 / 1.30.7

First-affected versions differ between sources: F5 and nginx.org give 0.6.18 (resolver) and 0.5.33 (mail proxy), while Xint’s tested paths start at 1.13.4 and 0.5.15 respectively. F5 rates all five at CVSS 4.0 9.2 (Critical) / 8.1 (High); nginx.org labels three of them “medium,” and F5 notes the HTTP/3 flaw depends on conditions beyond the attacker’s control. For a vulnerable, internet-facing stack, treat them as critical.

The one that matters most

CVE-2026-123007 is the bug to check first. It needs only HTTP/2 switched on, and it has been in nginx since HTTP/2 support arrived in 2015. Xint demonstrated command execution over the public internet against hosts on AWS, GCP and Azure; Wiz confirmed code execution against a server serving nothing but static files, with no backend and no third-party module. F5 notes that exploiting it for code execution requires ASLR to be disabled or bypassed — which Xint does by leaking memory addresses.

Mechanically, it is an accounting error that becomes a length error: a client manipulates HTTP/2 flow-control windows until nginx overstates how much response data it may send, a later bounds check underflows (some vendors describe the same bug as an integer overflow), and nginx converts the corrupted value into a huge byte count for a memory copy, producing out-of-bounds reads and writes. Public analyses by Cloudflare and Rapid7 describe the fix as a small counter change that makes nginx reject the invalid credit instead of accepting it.

What is the actual exploitation risk right now?

As of the latest catalog check, these CVEs are not in CISA’s Known Exploited Vulnerabilities catalog, and the reporting researchers saw no confirmed exploitation in the wild at disclosure. Both facts can change quickly — re-check on the day you act. Exploitation also has real friction worth knowing: the published chain for CVE-2026-123007 is heavy — Rapid7’s route needs roughly 128 GB of HTTP/2 traffic over one long-lived connection (about two minutes on a 10 Gbit/s link, seventeen on 1 Gbit/s, and it fails below roughly 300 Mbit/s because nginx closes the connection after an hour). FIRST’s EPSS score for the two HTTP/2 bugs sits around 6% (~93rd percentile), elevated but not certain.

None of that is a reason to wait. “Not yet exploited” is a snapshot, not a promise; millions of servers sit behind an affected version string; and a public proof of concept lowers the barrier for anyone with bandwidth. The riskiest assumption is “our application code is fine, so we’re fine.”

Why this is different from a routine patch

The scale is the first factor. nginx serves a large share of the world’s web traffic. Cloudflare reports that Shodan found 56.7 million hosts identifying as nginx, and that Censys counted roughly 8.8 million services running a potentially affected build with HTTP/2 enabled. Version counts are not exposure counts — they do not show whether a given server speaks HTTP/2 or carries a backported fix — but the population in play is enormous.

The second is proximity. Rapid7 published a working proof of concept on disclosure day, and Cloudflare reports that fake “exploits” are already circulating on GitHub. This is not a theoretical vulnerability with an abstract CVSS score.

Action plan

1. Inventory every nginx — including the ones you forgot. nginx Plus, distribution packages, containers and official Docker images, appliances, Kubernetes ingress controllers, and load balancers that embed nginx. Run nginx -V and nginx -T on each and record: HTTP/2 listeners, HTTP/3/QUIC listeners, proxy_pass with variables plus SSI or mirror, and any mail block. An origin that only accepts HTTP/1.1 cannot be attacked over HTTP/2, so this step is also where you learn what is actually reachable.

2. Upgrade and restart. Open Source → 1.30.7 (stable) or 1.31.9 (mainline). NGINX Plus → 37.0.8.1 / 37.3.0.1 for CVE-2026-123007, or 37.0.7.1 / 37.2.0.1 for CVE-2026-123633; F5 lists releases R34–R36 as affected with no fixed build, so move those to a fixed 37.x. A config reload does not replace the running binary — restart the service or do a binary upgrade, then confirm the old workers exited. Distribution builds are patched separately: most backported within days (see Ubuntu USN-9159-1 and Debian DSA-6642-1), but RHEL 8/9’s default nginx was still unfixed at the time of writing — check your vendor’s advisory rather than trusting nginx -v, since backports often leave the visible version unchanged.

3. If you cannot patch immediately, disable only what you don’t need. These are holding actions, not fixes, and none covers all five bugs:

  • http2 off; (nginx 1.25.1+) or removing http2 from the listen directive blocks CVE-2026-123007 and CVE-2026-123633. This breaks services that require HTTP/2 — notably gRPC — so test before you rely on it.
  • For CVE-2026-121810, remove the quic parameter from all listen directives (and set http3 off; where supported). Disabling HTTP/2 does not block this bug.
  • Point variable proxy_pass at fixed upstream groups to reduce CVE-2026-123634 (F5’s advice: avoid SSI/mirror and variable proxied names). Don’t rely on mirror_request_body alone.
  • Bind mail listeners to trusted networks for CVE-2026-113425.
  • Block the kernel module: add install sctp /bin/false to a file in /etc/modprobe.d/. This stops the module loading on first use; it does not unload an already-loaded module or disable SCTP compiled into the kernel. There is no kernel fix yet.

4. Put the origin out of direct reach — and verify it. A CDN or reverse proxy that terminates HTTP/2/HTTP/3 genuinely shields CVE-2026-123007, 123633 and 121810, because the attacker’s flow-control frames never reach your nginx — but only if the origin IP is not directly reachable (firewall to the proxy’s published ranges, a tunnel, or mTLS). Test the origin directly, e.g. openssl s_client -alpn h2 -connect origin:443, to confirm what it actually negotiates. The mail-proxy and resolver bugs are not covered by any of this, and the origin still needs the patch regardless.

5. Watch for the attack’s footprint. The published chains are hard to hide: nginx receiving tens of gigabytes from a single client over one long-lived HTTP/2 connection while sending little back — far more than the access log accounts for, because control frames are not logged as requests. Look for long-lived connections with an extreme send/receive imbalance, flow-control error log lines, unexpected worker crashes, and unexpected commands spawned by nginx.

The bigger picture

Two of these flaws were found with AI-assisted research — Wiz says its team used an AI harness with frontier models to discover its two HTTP/2 bugs, the same pattern that surfaced PHP2Shell a month earlier. That is the part worth sitting with: the vulnerable code had been in nginx for a decade, and what changed was the cost of turning “theoretically exploitable” into a working exploit. When AI lets a small team find and weaponize a longstanding flaw quickly, “too complex to exploit” stops being a valid way to triage risk, and “patch later” stops being a safe default.

The practical response is the same every time: know every instance of the software you run, patch it before the window closes, and treat the window as days, not months. That discipline — an accurate inventory, an honest read of which configurations are exposed, and a patch pipeline that can move this fast — is what decides whether nginx2root is a patching exercise or the opening of an incident.

About Illuminate Risk

Illuminate Risk LLC helps mid-market organizations map their exposure, govern agent capabilities, and monitor for threats aimed at the software their business actually runs on. If this advisory raised questions your team can’t answer from your current asset list, schedule a 25-minute discovery call to map your exposure before the next disclosure lands.

Sources

Work with us

If this is the shape of your problem

Illuminate Risk maps what your AI agents can reach, governs what they can do, and makes the risk visible before it becomes an incident.

Book a discovery call