NGINX2Root is the name researchers gave to five critical nginx flaws that can let an unauthenticated attacker run code on your web server. The fix is to move to nginx 1.31.9 (mainline) or 1.30.7 (stable) and fully restart the service. A reload isn’t enough.
No attacks in the wild had been reported when Security Affairs covered the disclosure on Nov. 19. But if you run nginx with HTTP/2 on, your server sits in the most exposed group, so this is worth fifteen minutes today.
Here’s the short version:
- Five flaws, all rated CVSS 4.0 9.2, disclosed Nov. 18 by Xint and Wiz.
- Open-source nginx is affected from as far back as 1.9.5 through 1.31.8.
- Fixed in nginx 1.31.9 and 1.30.7; NGINX Plus gets 37.3.0.1 and 37.0.8.1 for the worst bug.
- Worst case needs HTTP/2 enabled. Disabling it is a stopgap for two of the five.
- Exploitation is described as difficult, and no active attacks were reported at publication.
The stopgap only covers part of the problem, which is why the table further down matters.
Is your server exposed to NGINX2Root?
Probably, if it’s a typical public site. Shodan data from Nov. 10, cited by Security Affairs, showed 98.9% of nginx servers with a known version were running a vulnerable one. Censys counted nearly 10 million internet services on affected versions.
That doesn’t mean all of them can be attacked, because each flaw needs a specific setup. The headline bug, CVE-2026-123007, needs HTTP/2 turned on. According to Wiz, it dates back to nginx 1.9.5 in 2015, and ordinary static files can reach the vulnerable code path through normal TLS handling.
If you patched Java servers after Java4Shell or fixed Node.js in the Node2Shell patch, this is the same drill for your web server layer.
What the five nginx flaws actually do
Each bug depends on a different setting. The table below follows Xint’s write-up, so you can match it to your own config.
| Flaw | Needs this setup | First affected | Does disabling HTTP/2 help? |
|---|---|---|---|
| CVE-2026-123007 | HTTP/2 enabled | 1.9.5 | Yes |
| CVE-2026-123633 | HTTP/2 with requests forwarded to an upstream | 1.19.7 | Yes |
| CVE-2026-123634 | resolver, request-derived proxy_pass, and mirror with mirror_request_body off | 1.13.4 | No |
| CVE-2026-121810 | HTTP/3 with requests forwarded to an upstream | 1.25.0 | No |
| CVE-2026-113425 | Mail proxy using auth_http | 0.5.15 | No |
The takeaway: turning off HTTP/2 closes two doors, not five. If you use HTTP/3, request-time DNS lookups or nginx as a mail proxy, patching is the only real answer.
Xint says one researcher found CVE-2026-123007 while preparing for a hacking competition, and its automated scan turned up the other four. Wiz says exploitation is hard, since it needs a memory address leak and heap grooming. Wiz also didn’t release its proof-of-concept code.
How to check your nginx version and HTTP/2 setting
Start with the version, then see which of the risky features you’ve switched on.
nginx -v
nginx -T 2>/dev/null | grep -nE 'http2|http3|quic|resolver|mirror|auth_http'
The second command dumps your full config and filters for the settings in the table. To test whether a live site negotiates HTTP/2, Security Affairs suggests running openssl s_client -alpn h2 -connect yourdomain.com:443 and looking for “ALPN protocol: h2”. If you sit behind a CDN, test your origin server directly.
One catch: Linux distributions often backport fixes without changing the version number. Xint’s example is Ubuntu 22.04, where nginx -v may still show an older number on a patched package. Compare your full package version against your distro’s security advisory instead of trusting the number alone.
What to do if you can’t patch today
Xint lists a mitigation for each flaw, so here are the ones that apply to most setups:
- For the two HTTP/2 flaws, set
http2 off;on affected listeners (nginx 1.25.1 or later), or remove thehttp2parameter fromlistenon older versions. - For the HTTP/3 flaw, set
http3 off, remove QUIC listeners and clear theAlt-Svcheader. - For the mail proxy flaw, bind mail listeners to loopback or lock them down with a firewall.
- For the DNS-related flaw, point
proxy_passat a fixed upstream group and turn offmirrorwhere you don’t need it.
These tweaks have side effects. Disabling HTTP/2 breaks gRPC and other HTTP/2-only clients, so test first. Then restart nginx rather than reloading it, because a reload leaves old worker processes running.
Why the Linux kernel bug makes this worse
An nginx worker normally runs with limited privileges, so code execution there isn’t the end of the story. Xint also found a Linux kernel use-after-free in the SCTP subsystem, introduced in v4.15 in 2018. Chained with an nginx flaw, it gave root on the host in their tests, including from inside a Docker container.
No CVE ID or kernel patch was available when Xint published. If your servers don’t use SCTP, Xint’s interim fix is a file in /etc/modprobe.d/ containing install sctp /bin/false. That blocks the module from loading, but it won’t unload one that’s already running or disable SCTP built directly into the kernel.
Frequently Asked Questions
Is NGINX2Root being exploited right now?
Not as far as reports show. Security Affairs said no active attacks had been seen and CVE-2026-123007 wasn’t in CISA’s Known Exploited Vulnerabilities catalog at the time of writing. Xint did publish a demo video, so attackers know what’s possible.
Does a reload apply the nginx patch?
No. Install the fixed package, then restart nginx so every worker runs the new binary. A reload can leave the old one alive.
Am I safe if I use Cloudflare or another CDN?
Maybe partly. Wiz says a CDN or WAF that terminates HTTP/2 may block some attack paths, but your origin server still runs nginx. Patch the origin anyway.
Which NGINX Plus versions are fixed?
For CVE-2026-123007, Wiz and Security Affairs list 37.3.0.1 and 37.0.8.1. Check F5’s advisory K000163926 for your release line.
The verdict: patch this week, not next quarter
Exploiting these bugs is hard today, but a public demo plus a huge pool of unpatched servers is the exact pattern that tends to end badly. If you run a public-facing nginx, schedule the upgrade and restart for this week, and treat the HTTP/2 switch as a bridge, not a fix. If you run nginx only inside a private network, you have a little more breathing room, but not much.


Leave a Reply