nginx2root: 5 nginx RCE Bugs, a Kernel Fix on 22 Nov, What to Patch
On 18 November 2026 nginx.org released nginx 1.30.7 stable and 1.31.9 mainline with fixes for ten vulnerabilities. Five of them were found by the research firm Xint and published as nginx2root: memory-corruption bugs that an unauthenticated attacker can use to crash an nginx worker or, per Xint, run code as the worker user. Xint also found a Linux kernel bug that turns that foothold into root on the host, including from inside a Docker container. The kernel fix landed in Linux v7.4-rc4, tagged on 22 November. That is the new part this week, and it is why this post covers a disclosure from Wednesday.
I did not write this up on disclosure day, so here is where things stand five days later: what is fixed, what is not, and what is still exposed.
What happened
The five nginx2root bugs each need a different configuration. From the nginx.org advisory list and the CVE records, F5 scores all five at CVSS 3.1 8.1 and CVSS 4.0 9.2:
| CVE | Bug | Needs | Vulnerable since |
|---|---|---|---|
| CVE-2026-123007 | HTTP/2 flow-control integer overflow, out-of-bounds read and write | HTTP/2 enabled | 1.9.5 (2015) |
| CVE-2026-123633 | HTTP/2 use-after-free | HTTP/2 plus proxy_pass to an upstream, worker low on connection slots |
1.19.7 |
| CVE-2026-121810 | HTTP/3 use-after-free | QUIC listener plus proxy_pass |
1.25.0 |
| CVE-2026-123634 | Resolver use-after-free | resolver, proxy_pass with a variable, and a mirror or SSI subrequest |
0.6.18 |
| CVE-2026-113425 | Mail proxy use-after-free | mail block with auth_http |
0.5.33 |
The same releases fix five lower-rated bugs, including CVE-2026-118899, an infinite loop when reading a request body over TLS 1.3. For context: in my nginx vs Caddy vs Traefik comparison last month, nginx had fixed 26 CVEs in 2026. Its advisory page now lists 36 for this year.
CVE-2026-123007 matters most, because HTTP/2 is on in most TLS deployments. Rapid7's analysis puts the known exploit route at about 128 GB of HTTP/2 traffic on one connection: about 2 minutes at 10 Gbit/s and 17 minutes at 1 Gbit/s. That is slow, but it is not a defence. Rapid7's proof of concept is public, and its README says it only works against a freshly started local container.
The kernel step. Xint's sixth bug is a use-after-free in the Linux SCTP send path, present since Linux 4.15 (2018). Code already running as the nginx worker can use it to get root. Xint withheld details until a kernel fix existed, and gave it no CVE. The upstream fix is commit f2540da93a11, "sctp: do not free a new asoc peeled off while sendmsg slept". The commit message says the bug is "reachable by an unprivileged user", and the commit is tagged for stable. I checked on 23 November that it is in v7.4-rc4, tagged at 22:57 UTC on 22 November. I found no stable-branch backport or distro kernel update yet.
Exploitation status. CISA's Known Exploited Vulnerabilities catalog, version 2026.11.20 (released 20 November, the latest when I checked), lists none of the ten nginx CVEs. I found no credible report of exploitation in the wild. Censys's exposure tracker, refreshed at 04:06 UTC on 23 November, counts 6.18 million services on an affected upstream version with HTTP/2 on, plus 4.05 million distro builds with HTTP/2 on, against 1.42 million seen patched. Distro version strings do not prove a host is vulnerable, because distributions backport fixes without changing the version number.
What changes for engineers
Your distro probably has a fix already. Every major distro had shipped a fix by 20 November:
| Source | Fixed package or image | Date |
|---|---|---|
| Ubuntu USN-9159-1 | noble 1.24.0-2ubuntu7.20, jammy 1.18.0-6ubuntu14.23 | 19 Nov |
| Debian DSA-6642-1 / DLA-4918-1 | trixie 1.26.3-3+deb13u11, bookworm 1.22.1-9+deb12u11 | 19 Nov |
| Red Hat RHSA-2026:100744 to 100748 | RHEL 10 nginx-1.26.3-16.el10_3.3, RHEL 9 and 8 streams | 20 Nov |
| Alpine | 1.30.7-r0 (3.24), 1.28.3-r8 (3.23, 3.22) | 18 Nov |
| Amazon Linux ALAS | AL2023, AL2027 and the AL2 nginx1 extra | 18 to 19 Nov |
Docker Hub nginx |
1.30.7 and 1.31.9, all variants |
18 to 20 Nov |
That means the version nginx -v prints is a poor guide. Ubuntu noble's fixed build still reports 1.24.0. Compare the full package version against the advisory instead.
Community ingress-nginx is not getting a fix. Kubernetes retired ingress-nginx in March. The repository is archived, and its last release, controller-v1.15.1 from 19 March, is built on nginx 1.27.1, which is in the affected range. There is no upstream patch and no issue tracking these CVEs. The only fixed build I found is a commercial fork from HeroDevs, which says it fixes four of the five. If you still run ingress-nginx, this is the week to finish the Gateway API migration. F5's own projects are fixed: NGINX Ingress Controller v5.8.0 and NGINX Gateway Fabric v2.9.0 both pin nginx 1.31.9. The CVE records list NGINX Plus as fixed in 37.0.8.1 and 37.3.0.1.
A CDN in front helps, if the origin is locked down. Cloudflare's write-up explains why its proxy stops the HTTP/2 and HTTP/3 bugs: the attacker's frames end at Cloudflare's edge and never reach your nginx. That only holds if the origin cannot be reached directly. The resolver and mail bugs are not covered. The same reasoning applies to any L7 proxy or load balancer that terminates HTTP/2 itself.
A reload does not patch. nginx -s reload re-reads config but keeps the old binary. You need a restart or a binary upgrade.
What I ran
I wrote a small read-only script that reads nginx -T (the full, include-expanded config) and reports which of the five preconditions a config meets. I tested it against six scratch configs on Homebrew nginx 1.27.5, an affected version, on my Mac. The script never sends traffic.
#!/usr/bin/env bash
# nginx2root-check.sh: read-only. Usage: nginx2root-check.sh [-p DIR -c FILE]
set -u
NGINX=${NGINX:-nginx}
ver=$("$NGINX" -v 2>&1 | sed -n 's|.*nginx/\([0-9.]*\).*|\1|p')
# one statement per line, so one-line and multi-line configs read the same
conf=$("$NGINX" "$@" -T 2>/dev/null | sed 's/#.*//' | tr ';{}' '\n\n\n' | sed 's/^[[:space:]]*//')
echo "version: $ver (upstream fix: 1.30.7 / 1.31.9; distro backports keep old numbers)"
has() { grep -Eq "$1" <<<"$conf" && echo yes || echo no; }
h2=$(has '^http2\s+on\b|^listen\s.*\bhttp2\b')
h3=$(has '^listen\s.*\bquic\b|^http3\s+on\b')
up=$(has '^(proxy_pass|grpc_pass|fastcgi_pass|uwsgi_pass)\s')
ppvar=$(has '^proxy_pass\s+.*\$'); sub=$(has '^(mirror\s+/|ssi\s+on\b)'); res=$(has '^resolver\s')
mail=$( [ "$(has '^mail\s*$')" = yes ] && has '^auth_http\s' || echo no)
both() { [ "$1" = yes ] && [ "$2" = yes ] && echo yes || echo no; }
printf '%-16s %s\n' CVE-2026-123007 "$h2" CVE-2026-123633 "$(both $h2 $up)" \
CVE-2026-121810 "$(both $h3 $up)" \
CVE-2026-123634 "$( [ $ppvar$sub$res = yesyesyes ] && echo yes || echo no)" \
CVE-2026-113425 "$mail"
The results on the six configs:
| Config | 123007 | 123633 | 121810 | 123634 | 113425 |
|---|---|---|---|---|---|
| a: static files, HTTP/1.1 only | no | no | no | no | no |
b: reverse proxy with http2 on; |
yes | yes | no | no | no |
c: resolver + proxy_pass http://$be + mirror |
no | no | no | yes | no |
d: config b with http2 off; |
no | no | no | no | no |
e: mail proxy with auth_http |
no | no | no | no | yes |
f: listen 18443 quic + proxy_pass |
no | no | yes | no | no |
Two things I learned. First, my first version matched directives at the start of a line, and it reported "no" for everything on one-line configs like server { listen 80; http2 on; ... }. Splitting the config on ;, { and } before matching fixed it. Real configs written by generators often look like that, so check your own tooling for the same mistake. Second, http2 off; passes nginx -t on 1.27.5. It is the documented stopgap from 1.25.1 onward. On older versions you remove http2 from the listen line instead.
The script is a triage aid, not proof. It does not see configs injected at runtime, such as an ingress controller's generated templates (dump those from inside the pod), and it does not test for the bug. I did not run any exploit code.
What to do this week
- Patch and restart every nginx you can reach from the internet first. Upstream 1.30.7 or 1.31.9, your distro's fixed package, or
nginx:1.30.7/nginx:1.31.9images. Then do the internal ones: an attacker who already has a foothold can reach them too. - If you cannot patch today, set
http2 off;and remove QUIC listeners where you can live without them. Use fixed upstream groups instead ofproxy_passwith variables, and bind mail listeners to trusted networks. Restart afterwards so existing connections close. - Block SCTP if you do not use it: add
install sctp /bin/falseto a file in/etc/modprobe.d/. That does not unload a module that is already loaded. Plan a kernel update and reboot once your distro ships the v7.4-rc4 fix. - Replace ingress-nginx, or at least put an HTTP/2-terminating load balancer in front of it while you migrate.
- Watch for the signals Cloudflare lists:
worker process ... exited on signal 11on servers that proxy HTTP/2 or HTTP/3,could not cancel ... resolvingalerts, and single HTTP/2 connections that receive tens of gigabytes while sending little back.
FAQ
Which nginx versions fix nginx2root?
nginx 1.30.7 (stable) and 1.31.9 (mainline), released on 18 November 2026, fix all five nginx2root CVEs and the five other CVEs disclosed the same day. Distributions ship backported fixes under older version numbers, for example Ubuntu 24.04's 1.24.0-2ubuntu7.20, so check the full package version against your distro's advisory rather than nginx -v.
Is nginx2root being exploited in the wild?
As of 23 November 2026 I found no credible report of exploitation, and none of the CVEs is in CISA's KEV catalog version 2026.11.20. A public proof of concept for CVE-2026-123007 exists, but Rapid7 says it only suits a freshly started local container, and the known route needs about 128 GB of HTTP/2 traffic on a single connection.
Does turning off HTTP/2 protect nginx from nginx2root?
Partly. http2 off; (nginx 1.25.1 and later) blocks CVE-2026-123007 and CVE-2026-123633. It does nothing for the HTTP/3, resolver or mail proxy bugs, which need their own mitigations, and it costs HTTP/2's performance benefits. Treat it as a stopgap until you can patch.
Related: Ingress NGINX Is Retired, How to Migrate From ingress-nginx to Gateway API and Vulnerability Management in 2026.
Spot an error or something out of date? Email me and I will fix it and log it on the corrections page.
I'm Ajay Kumar — I build and operate PandaStack, an open-source Firecracker microVM cloud for AI agents, and write about the infrastructure and tooling around it.
Need this kind of infrastructure work? See what I do or email hello@ajayk.sh.
Related
ELB for Envoy Is GA: AWS Now Runs Your Envoy Gateway Proxies
On 25 November 2026 AWS made ELB for Envoy generally available: managed Envoy 1.40 proxies that take your own config and an open source Envoy Gateway provider. What it accepts, what it rejects, the pricing, what I ran on kind, and what to do this week.
8 minNov 24, 2026Kubernetes 1.38 Sneak Peek: The cgroup Driver Change and 5 More
The Kubernetes 1.38 deprecations blog landed on 23 November 2026. The kubelet will take its cgroup driver from the runtime, kuberc goes v1, kubectl drops two WebSocket variables, swap changes. What breaks and what to check before 16 December.
7 minNov 17, 2026kube-proxy IPVS Mode Stops Working by Default in Kubernetes 1.40
SIG Network set the end of kube-proxy's ipvs backend on 16 November 2026: off by default in 1.40, gone in 1.43. The blog and the KEP word the dates differently. What each says, who is affected, and how to check your clusters.
5 min