nginx2root: Five nginx Flaws Led by CVE-2026-123007, and How to Patch Them
Five nginx vulnerabilities fixed in 1.30.7 and 1.31.9, led by an HTTP/2 memory corruption (CVE-2026-123007) that researchers chained with an unpatched Linux kernel bug to reach root. Who is exposed, how to check, how to patch distro and Docker installs, and what to do until you can.
On 18 November 2026 F5 shipped an out-of-band set of fixes for nginx. They cover five memory-safety vulnerabilities, each rated 9.2 (Critical) under CVSS v4.0 and 8.1 (High) under CVSS v3.1 by F5, and the research group that found several of them named the set nginx2root. The lead bug, CVE-2026-123007, is a memory corruption in nginx’s HTTP/2 flow-control code. As of the sources cited below (19 November), no in-the-wild exploitation had been reported and none of the five CVEs was in CISA’s Known Exploited Vulnerabilities catalog. Working exploit code for the lead bug is public, however, so this is a patch-this-week event rather than a curiosity.
Facts below come from the vendor advisory page and the vulnerability write-ups listed under Sources. Where sources disagree or have not published details, the article says so.
TL;DR
- What: five nginx vulnerabilities fixed together. CVE-2026-123007 (HTTP/2 flow-control memory corruption) and CVE-2026-123633 (HTTP/2 use-after-free) need HTTP/2 enabled. CVE-2026-123634 (resolver), CVE-2026-121810 (HTTP/3) and CVE-2026-113425 (mail proxy) are separate use-after-free bugs in other components.
- Who: NGINX Open Source from 1.9.5 through 1.31.8 for the lead bug, plus NGINX Plus and anything that bundles nginx. The exploitable configurations are mostly non-default: HTTP/2 on a listener the attacker can reach, HTTP/3, a mail proxy, or a specific resolver setup.
- Do now: upgrade to nginx 1.30.7 (stable) or 1.31.9 (mainline), or your distribution’s patched package, then restart nginx. A reload does not replace the running binary.
- Root: the “root” part comes from chaining CVE-2026-123007 with a separate Linux kernel SCTP bug that, per the researchers, had no CVE and no patch on 19 November. Patching nginx does not close that second step.
The five bugs, from an operator’s point of view
The affected-version ranges below are those listed on nginx.org’s security advisories page. The preconditions come from the Tenable and Qualys write-ups.
| CVE | Component | nginx.org severity | Affected (Open Source) | Precondition |
|---|---|---|---|---|
| CVE-2026-123007 | HTTP/2 flow control, memory corruption | major | 1.9.5 - 1.31.8 | HTTP/2 enabled on a reachable listener |
| CVE-2026-123633 | HTTP/2, use-after-free | medium | 1.19.7 - 1.31.8 | HTTP/2 enabled, requests proxied to a backend, worker low on connections (Qualys) |
| CVE-2026-123634 | Resolver, use-after-free during response processing | medium | 0.6.18 - 1.31.8 | Backend name derived from request data, with an SSI or mirror subrequest looking up the same name (Qualys, Tenable) |
| CVE-2026-121810 | HTTP/3 (QUIC), use-after-free | medium | 1.25.0 - 1.31.8 | HTTP/3 enabled |
| CVE-2026-113425 | Mail proxy module, use-after-free | major | 0.5.33 - 1.31.8 | nginx used as a mail proxy |
All five are fixed in 1.30.7 and 1.31.9. F5 scores all five 9.2 under CVSS v4.0, even though nginx.org labels three of them “medium”.
CVE-2026-123007 (the lead bug). Qualys describes it as nginx losing count of how much data the client is allowed to send when a client cancels requests at the right moment, which corrupts memory in a worker. The typical outcome is a worker crash. Code execution is possible where ASLR is disabled or bypassed, and Xint reports leaking addresses and running commands as the worker process. The public exploit is demanding: per Qualys it sends many HTTP/2 control messages over one long-lived connection for several minutes, needs direct network reach to nginx, and depends on a specific memory-copy routine in glibc on 64-bit x86. Tenable puts the traffic at roughly 128 GB. Censys reproduced code execution as the unprivileged nginx worker, not root. Qualys cautions that these limits are not a reliable protection.
CVE-2026-123633. BleepingComputer reports that Wiz demonstrated unauthenticated remote code execution against a server hosting static files over HTTP/2 with TLS. Wiz is not publishing its proof of concept. Censys reproduced the use-after-free but did not obtain code execution.
The other three. No exploitation has been reported, and Censys did not obtain code execution on the mail proxy or HTTP/3 bugs in its lab. Treat them as patch-with-the-rest, not as a reason to panic.
The kernel step. Xint chained CVE-2026-123007 with an unpatched Linux kernel SCTP use-after-free to go from the nginx worker to root, including out of a Docker container onto the host kernel. Tenable and Qualys both say it had no CVE and no patch as of 18 and 19 November, and that Xint is withholding most details until a kernel fix exists. This is the part that matters for container users: a container boundary is not a mitigation against the kernel it shares with the host.
BleepingComputer also lists further nginx fixes in the same release, including CVE-2026-118899, a high-severity unauthenticated infinite loop while reading a TLS 1.3 request body that leads to denial of service. Another reason to take the whole release rather than cherry-pick.
Who found it, and when
Per Tenable, Xint discovered the bugs on 11 October 2026 and reported them to F5 on 16 October. BleepingComputer reports that the two HTTP/2 flaws were found independently by Xint, Wiz, Ikotas Labs, Metnir and Rapid7. F5 released the fixes on 18 November.
Am I affected?
First, which nginx and which build. HTTP/2 support exists since 1.9.5, so older releases and builds compiled without the module are not exposed to the lead bug (Qualys):
nginx -v
nginx -V 2>&1 | grep -o -- '--with-http_v2_module'
Second, is HTTP/2 actually turned on. These commands come from the Qualys write-up:
sudo nginx -T 2>&1 | sed 's/#.*//' | grep -nE 'listen[[:space:]].*http2|^[[:space:]]*http2[[:space:]]+on[[:space:]]*;'
Third, does the internet see it. An h2 result means HTTP/2 is accepted from outside:
openssl s_client -connect HOST:443 -servername HOST -alpn h2 </dev/null 2>&1 | grep -E 'ALPN protocol:|No ALPN negotiated'
For the other CVEs, look for listen ... quic or http3 (HTTP/3), a mail { } block (mail proxy), and proxy_pass targets built from variables combined with resolver, ssi or mirror.
Remember that nginx is often bundled. Check anything that embeds it:
# containers
docker ps --format '{{.Names}}\t{{.Image}}'
docker exec <container> nginx -v
Qualys notes that F5 NGINX Ingress Controller 5.8.0 and NGINX Gateway Fabric 2.9.0 are built on NGINX Open Source 1.31.9, and that F5 lists BIG-IP, BIG-IQ and F5OS as not vulnerable. It also points out that the community ingress-nginx project was archived in March 2026 and will ship no further security fixes, so that controller will not receive this fix.
Patch paths
Upstream packages and source. Move to 1.30.7 (stable) or 1.31.9 (mainline). For NGINX Plus, Tenable reports fixes in 37.0.8.1 and 37.3.0.1 and no fix for R34 to R36, which need to move to the 37.x line.
Distribution packages. Distributions backport fixes without changing the upstream version number, so compare against the tracker, not against 1.30.7. On the day Qualys published (18 November), Debian and Ubuntu still listed their packages as vulnerable. When this article was written (24 November), the trackers showed fixes:
-
Debian (security-tracker, CVE-2026-123007): bookworm 1.22.1-9+deb12u11, trixie 1.26.3-3+deb13u11, and forky/sid 1.30.6-4.
-
Ubuntu (CVE-2026-123007, priority High): 26.10 1.30.4-7ubuntu1.2, 26.04 LTS 1.28.3-2ubuntu1.13, 24.04 LTS 1.24.0-2ubuntu7.20, 22.04 LTS 1.18.0-6ubuntu14.23. 20.04 and 18.04 are fixed through Ubuntu Pro, and 16.04 through the Legacy Support add-on. 14.04 is listed as not affected.
-
Red Hat (CVE-2026-123007, rated Critical): fixed packages shipped from 19 November for RHEL 8, 9 and 10, including the nginx module streams (for example RHSA-2026:100744 on RHEL 10, RHSA-2026:100745 to RHSA-2026:100748 on RHEL 9, RHSA-2026:100747 on RHEL 8). Rebuilds such as AlmaLinux and Rocky follow these errata; check
dnf updateinfo list --cve CVE-2026-123007on the host.
# Debian / Ubuntu
sudo apt update && sudo apt install --only-upgrade nginx
apt changelog nginx 2>/dev/null | grep -m1 CVE-2026-123007
# RHEL family
sudo dnf upgrade nginx
rpm -q --changelog nginx | grep -m1 CVE-2026-123007
Then restart, because a configuration reload keeps the old binary running in memory:
sudo nginx -t && sudo systemctl restart nginx
Official Docker images. Qualys reports that the official image’s mainline tags point to 1.31.9. A running container keeps its old build until you pull and recreate it, and images built on top of nginx need their own rebuild:
docker pull nginx:1.31.9 # or the tag you track
docker build --pull -t myorg/web:latest .
docker compose up -d --force-recreate web
docker exec web nginx -v
Pinning a tag below 1.30.7 or 1.31.9 means you are still vulnerable no matter how often you rebuild. Both nginx:1.30.7 (stable) and nginx:1.31.9 (mainline) are published on Docker Hub; pin one of them rather than a floating tag.
If you run ingress controllers or gateways in Kubernetes, update the controller image, not just the nodes. Our Kubernetes hardening guide covers the surrounding controls.
If you cannot patch today
These mitigations come from the Tenable write-up. They narrow exposure and do not replace the upgrade.
- HTTP/2 off on every reachable listener (remove
http2fromlistenlines, orhttp2 off;). This covers CVE-2026-123007 and CVE-2026-123633 only, clients fall back to HTTP/1.1, and gRPC or other HTTP/2-dependent services will break. It does not help with the other three. - HTTP/3: remove QUIC/HTTP/3 listeners (CVE-2026-121810).
- Mail proxy: bind mail listeners to loopback or restrict them with a firewall (CVE-2026-113425).
- Resolver: point
proxy_passat a fixed upstream group rather than a name derived from the request, and disablemirrorwhere it is not needed. Tenable notes that turning mirror off does not make a server safe. - Kernel: Xint’s chain needs SCTP. Tenable suggests blocking the SCTP kernel module on hosts that do not use it, for example with a
modprobe.dentry (install sctp /bin/false) and a reboot or module unload. Test that nothing on the host needs SCTP first.
Also reduce what a compromised worker can do. Run nginx workers as an unprivileged user, keep containers off --privileged, and apply the usual hardening from our reverse proxy hardening article and Docker security best practices. Those controls do not fix a kernel bug, but they shrink the blast radius of a worker takeover.
How worried should you be?
Be honest about both sides. Censys counts about 8.8 million services that run an affected version and offer HTTP/2, based on version banners, and notes that another 104 million services do not disclose a version (BleepingComputer). That is a large attack surface. On the other hand, the public exploit is hard to use, the exploitable configurations are mostly non-default, and BleepingComputer quotes Florian Roth saying the risk does not look imminent for most deployments. The sensible reading: not a reason to take sites offline, but exploit code for the lead bug is public and the lead author says it is holding back the final steps, so waiting for a quieter week is a poor plan.
Checklist
- Inventory every nginx: hosts, containers, ingress controllers, appliances and products that bundle it.
- Check whether HTTP/2, HTTP/3 or the mail proxy are enabled and reachable.
- Upgrade to 1.30.7 / 1.31.9, or a distro package whose changelog lists the CVEs.
- Restart nginx, do not just reload, and confirm with
nginx -vinside each container. - Rebuild and redeploy Docker images that embed nginx; do not leave tags pinned to a vulnerable release.
- Where patching waits: disable HTTP/2 (and HTTP/3 or the mail proxy if used), and block SCTP on hosts that do not need it.
- Watch for kernel updates addressing the SCTP flaw; the root step stays open until then.
- Replace or isolate the archived community
ingress-nginxif you still run it.
Key Takeaways
- nginx2root is five nginx memory-safety bugs fixed together on 18 November 2026 in 1.30.7 (stable) and 1.31.9 (mainline). The lead bug, CVE-2026-123007, affects Open Source 1.9.5 through 1.31.8 when HTTP/2 is enabled.
- Exploitation requires non-default features (HTTP/2, HTTP/3, mail proxy or a specific resolver setup). No in-the-wild exploitation had been reported as of 19 November, but public exploit code exists for the lead bug.
- Root comes from chaining with a separate, then-unpatched Linux kernel SCTP flaw, including from inside a Docker container. Patching nginx does not close that step, so also watch for kernel updates.
- Upgrade, then restart nginx. A reload keeps the vulnerable binary running. Rebuild and recreate Docker containers, since running containers keep their old build.
- Disabling HTTP/2 is a stop-gap for two of the five CVEs only.
- Verify distro packages by changelog, not version number. Debian, Ubuntu and Red Hat list fixes as of this writing, and community
ingress-nginxwill not get one.
Sources
- nginx.org security advisories: nginx.org/en/security_advisories.html
- Tenable, NGINX2Root FAQ: tenable.com/blog/nginx2root-cve-2026-123007-frequently-asked-questions-about-five-critical-nginx
- Qualys, how to find, mitigate and patch: blog.qualys.com/…/nginx2root-five-nginx-flaws-led-by-cve-2026-123007-how-to-find-mitigate-and-patch-now
- BleepingComputer, 19 November 2026: bleepingcomputer.com/news/security/critical-nginx-nginx2root-bugs-let-attackers-hijack-servers
- Debian security tracker: security-tracker.debian.org/tracker/CVE-2026-123007
- Ubuntu CVE page: ubuntu.com/security/CVE-2026-123007
- Red Hat CVE page: access.redhat.com/security/cve/CVE-2026-123007