Most of my self-hosted services sit behind nginx somewhere, either directly or inside a reverse proxy container. So when nginx 1.30.7 and 1.31.9 came out on 18 November with fixes for ten CVEs, and researchers branded five of them "nginx2root", I stopped what I was doing and went through every box that serves a web page.
This is the checklist I'd hand anyone running nginx: how to find your version (including the copies hidden inside Docker images and GitLab), how to update, what to switch off if you can't update today, and where Cloudflare protects you and where it doesn't.
Quick answer
nginx2root is five nginx bugs disclosed on 18 November 2026. The worst, CVE-2026-123007, is memory corruption in HTTP/2 flow control that works without login on any nginx from 1.9.5 to 1.31.8 with HTTP/2 on. Update to nginx 1.30.7 (stable) or 1.31.9 (mainline), or your distribution's patched build, and restart. If you can't update yet, turn HTTP/2 off, which covers the two HTTP/2 bugs but not the HTTP/3, resolver and mail proxy ones. Docker images and GitLab bundle their own nginx, so check those separately.
What nginx2root actually is
The name comes from Xint, the security company that published the research. It's five independent nginx bugs, each needing a different configuration, plus a Linux kernel bug that turns code execution as the nginx worker into root on the host. The Cloudflare write-up has the clearest summary I found:
| CVE | Bug | You're exposed if |
|---|---|---|
| CVE-2026-123007 | HTTP/2 flow control memory corruption | HTTP/2 is enabled (since 1.9.5) |
| CVE-2026-123633 | Use-after-free in HTTP/2 | HTTP/2 with proxy_pass, worker low on connections |
| CVE-2026-121810 | Use-after-free in HTTP/3 | HTTP/3 (QUIC) with proxy_pass |
| CVE-2026-123634 | Use-after-free in the resolver | resolver + proxy_pass with variables + mirror or SSI |
| CVE-2026-113425 | Use-after-free in mail proxy | Mail proxy with auth_http |
F5 rates each of them 8.1 on CVSS 3.1 and 9.2 on CVSS 4.0. The same releases also fix five more CVEs, including an infinite loop over TLS 1.3 (CVE-2026-118899) that lets anyone stall a worker. The full list is on the nginx security advisories page.
CVE-2026-123007 is the one to lose sleep over. It only needs HTTP/2, which almost every HTTPS setup turns on, and it has been there since 2015. Cloudflare reports that Xint ran the exploit over the internet against servers on AWS, GCP and Azure. As of 19 November nobody had reported attacks in the wild, but a Rapid7 proof of concept is public and fake "exploits" are already circulating on GitHub. Don't run those.
Step 1: Find every nginx you run
This took me longer than the patching. nginx hides in more places than the one you installed with apt.
# the system nginx
nginx -v
# every running container that has nginx inside it
for c in $(docker ps -q); do
v=$(docker exec "$c" sh -c 'nginx -v 2>&1' 2>/dev/null) && echo "$(docker inspect -f '{{.Name}}' "$c"): $v"
done
# GitLab Omnibus ships its own copy
sudo /opt/gitlab/embedded/sbin/nginx -v
Reverse proxy images such as Nginx Proxy Manager and SWAG bundle their own nginx (Nginx Proxy Manager is built on OpenResty, which has its own nginx core version). Your host update does nothing for them. You need the maintainer's updated image.
Step 2: Check whether your build is already patched
A version below 1.30.7 doesn't always mean vulnerable. Debian, Ubuntu and Red Hat often backport fixes and keep the old version number. Check the changelog for the CVE:
# Debian / Ubuntu
apt changelog nginx | grep -i CVE-2026-123007
# RHEL / Rocky / Alma / Fedora
rpm -q --changelog nginx | grep -i CVE-2026-123007
If nothing comes back, your package isn't patched yet. Distribution timing varies: as of 20 November some enterprise distributions still listed no fix, so check your vendor's security tracker before assuming.
Step 3: Update nginx
If you use the official nginx.org repository, the update is already there:
sudo apt update && sudo apt install --only-upgrade nginx
nginx -v
sudo nginx -t && sudo systemctl restart nginx
Use a full restart, not a reload. A reload starts new workers but the master process keeps running the old binary until you restart, or until you do the binary upgrade dance with signals.
For Docker, pull and recreate:
docker compose pull
docker compose up -d
docker exec <container> nginx -v
Pin to a tag that actually contains 1.30.7 or 1.31.9. A floating tag like latest is only as fresh as the last time you pulled it.
Step 4: If you can't update today, switch HTTP/2 off
Turning off HTTP/2 closes CVE-2026-123007 and CVE-2026-123633. Your site still works over HTTP/1.1; browsers fall back on their own.
# nginx 1.25.1 and newer: in each server block (or http block)
http2 off;
# older nginx: remove "http2" from the listen line
listen 443 ssl; # was: listen 443 ssl http2;
Then sudo nginx -t && sudo systemctl restart nginx. If you have HTTP/3 enabled (listen 443 quic), comment that out too. The resolver and mail proxy bugs are configuration specific; if you don't use mail { } or a resolver with variable proxy_pass and mirror/SSI, they don't apply to you.
For GitLab Omnibus, heise reports the workaround is:
# /etc/gitlab/gitlab.rb
nginx['http2_enabled'] = false
sudo gitlab-ctl reconfigure
Where Cloudflare helps (and where it doesn't)
This part made me feel a bit better about my own setup. If your hostname is proxied through Cloudflare (orange cloud), the attacker's HTTP/2 and HTTP/3 frames end at Cloudflare's edge. Cloudflare opens its own connection to your origin and doesn't relay the crafted WINDOW_UPDATE and RST_STREAM floods the attack needs. So CVE-2026-123007, CVE-2026-123633 and CVE-2026-121810 can't reach your nginx through the proxy.
The catch: that only holds if nobody can reach your origin directly. If your server's public IP answers on 443, an attacker just skips Cloudflare. The two clean fixes are a Cloudflare Tunnel, which needs no open inbound ports at all, or a firewall that only accepts 80/443 from Cloudflare's IP ranges. The resolver and mail bugs aren't covered by the proxy either. Patch anyway.
The kernel part: block SCTP if you don't use it
The "root" in nginx2root comes from a separate Linux kernel use-after-free in the SCTP send path, present since Linux 4.15. Someone who already has code running as the nginx worker can use it to become root, even from inside a Docker container. As of 18 November there was no kernel fix, and many distributions load the SCTP module automatically the first time something opens an SCTP socket.
Almost no web server needs SCTP. Blocking the module is an old hardening step and takes ten seconds:
echo "install sctp /bin/true" | sudo tee /etc/modprobe.d/disable-sctp.conf
lsmod | grep sctp # should print nothing after a reboot
Skip this if you run telecom software or anything else that really uses SCTP.
How to roll back
If the new nginx breaks a site, check sudo nginx -t and the error log first. Most problems after an upgrade are config warnings, not the binary. To go back to the previous package temporarily, sudo apt install nginx=<previous-version> (list them with apt-cache policy nginx), and turn HTTP/2 off while you're on it. For Docker, change the tag back in your compose file and run docker compose up -d. To undo the SCTP block, delete /etc/modprobe.d/disable-sctp.conf and reboot.
A few things I learned
- Count your nginx copies first. The host package, each proxy container and GitLab's embedded copy all need checking on their own.
- Reload isn't restart. A reload keeps the old master binary running; restart after a security update.
- Cloudflare only shields what it fronts. If the origin IP is reachable, the protection is gone.
- HTTP/2 off is a stopgap. It closes two of five bugs. It isn't the fix.
Earlier this month I wrote about the WordPress CVE-2026-119977 and the AI-found Fortinet flaws, and it's the same pattern: automated bug hunting is finding old bugs faster than most of us patch. My Homelab Intelligence page shows how my own services are laid out. If you'd like your web servers checked and patched properly, that's what my server and network services are for.
Frequently asked questions
What is nginx2root?
nginx2root is the name Xint gave to five nginx vulnerabilities disclosed on 18 November 2026, plus a Linux kernel SCTP bug that can turn code execution into root. The most serious is CVE-2026-123007, an HTTP/2 flow control bug that needs no login. They are fixed in nginx 1.30.7 and 1.31.9.
Which nginx version fixes CVE-2026-123007?
nginx 1.30.7 (stable) and nginx 1.31.9 (mainline), both released on 18 November 2026, fix CVE-2026-123007. Versions from 1.9.5 to 1.31.8 are vulnerable when HTTP/2 is enabled. Distributions may backport the fix into an older version number, so check your package changelog for the CVE.
Does disabling HTTP/2 protect nginx from nginx2root?
Partly. Turning off HTTP/2 blocks the two HTTP/2 bugs, CVE-2026-123007 and CVE-2026-123633, which are the most dangerous. It does nothing for the HTTP/3, resolver and mail proxy bugs. Treat it as a temporary workaround until you can update to nginx 1.30.7 or 1.31.9.
Am I safe from nginx2root if my site is behind Cloudflare?
For the HTTP/2 and HTTP/3 bugs, yes, as long as your origin can't be reached directly. Cloudflare ends the attacker's connection at its edge. If your server's IP answers on port 443, attackers can bypass Cloudflare. A Cloudflare Tunnel or a firewall limited to Cloudflare IPs closes that gap.
How do I check the nginx version inside a Docker container?
Run docker exec followed by the container name and nginx -v, for example docker exec proxy nginx -v. Reverse proxy images bundle their own nginx, so updating the host does not patch them. Pull the maintainer's updated image and recreate the container with docker compose up -d.
