Blog · Security · Published 19 November 2026
NGINX2Root (CVE-2026-123007 and Four More): How to Check, Mitigate, and Patch nginx
nginx sits in front of a large share of the internet, and on 18 November 2026 it shipped fixes for five memory-corruption bugs that can be reached by an unauthenticated client. Whether you are exposed depends on which features your configuration uses. Here is how to tell, what to patch, and what to switch off until you can.
Sources. Version ranges and fixes come from nginx.org security advisories and CHANGES-1.30; scores and preconditions from F5's CVE records (F5 is the CVE numbering authority for nginx); NGINX Plus releases from docs.nginx.com; package status from the Ubuntu, Debian, Red Hat, Amazon Linux and Alpine trackers; mitigations from Red Hat and CERT-EU 2026-022. Researcher claims are labelled as such. If an advisory changes after 19 November 2026, the advisory wins.
TL;DR
- Upgrade to nginx 1.30.7 (stable) or 1.31.9 (mainline), or your distribution's fixed package, then restart nginx — a reload does not replace the running binary.
- The headline bug, CVE-2026-123007, is a heap overflow in the HTTP/2 module, affecting every version from 1.9.5 to 1.31.8. If you serve HTTP/2, you are in scope.
- F5 scores all five CVSS v4 9.2 / CVSS v3.1 8.1, with code execution possible “if ASLR disabled or bypassed”.
- Can't patch today? Turn off HTTP/2 (and HTTP/3 if you use it) on internet-facing listeners. It costs some performance; it removes the main attack surface.
- Several distributions had no fixed package yet on 19 November — check yours before assuming
apt upgradefixed it.
The five vulnerabilities
All five are memory-safety bugs in the nginx data plane. Each needs a specific feature to be in use, so the first question is not “which version?” but “which of these does my config turn on?”
| CVE | Where | You are exposed if… | Vulnerable versions |
|---|---|---|---|
| CVE-2026-123007 | HTTP/2 module — flow-control window integer underflow leading to a heap overflow | Your configuration uses HTTP/2 | 1.9.5 – 1.31.8 |
| CVE-2026-123633 | HTTP/2 module — use-after-free | HTTP/2 to clients, proxying to a backend, and a worker running low on worker_connections | 1.19.7 – 1.31.8 |
| CVE-2026-121810 | HTTP/3 module — use-after-free | Your configuration uses HTTP/3 (QUIC); F5 notes it depends on conditions beyond the attacker's control | 1.25.0 – 1.31.8 |
| CVE-2026-123634 | Resolver — use-after-free | A proxied server name built from variables (so nginx resolves it at runtime), plus an SSI or mirror subrequest resolving the same name | 0.6.18 – 1.31.8 |
| CVE-2026-113425 | Mail proxy module — use-after-free | nginx is configured as a mail proxy (mail { } block) | 0.5.33 – 1.31.8 |
Severity labels differ by source: F5 scores all five 9.2 (v4.0) and 8.1 (v3.1) with high attack complexity; nginx.org labels CVE-2026-123007 and CVE-2026-113425 “major” and the other three “medium”; Red Hat rates four Critical and CVE-2026-123634 Important. The same release also fixes five further CVEs (CVE-2026-118899, -120967, -120993, -123640 and -125283) — one more reason to upgrade rather than only toggle features.
Is it being exploited?
As of 19 November 2026, none of the five is in CISA's Known Exploited Vulnerabilities catalog, and CERT-EU says that while CVE-2026-123007 has been demonstrated by researchers, “no exploitation in the wild has been reported yet”. The research team behind the “NGINX2Root” name has published demonstrations of command execution, and a second team claims an RCE with an ASLR bypass. Expect that to change quickly — patch on the assumption that working exploits will exist within days.
About the “root” in the name
The official advisories stop at code execution with the privileges of the nginx worker process. The researchers say they chained it with a separate, unpatched Linux kernel bug in SCTP to reach root and escape containers; that bug has no CVE or kernel fix yet and is not confirmed by any vendor. Their suggested interim step, if you don't use SCTP, is to stop the module loading: install sctp /bin/false in a file under /etc/modprobe.d/. Treat that as a researcher recommendation, not vendor guidance.
Step 1 — Find every nginx and what it has turned on
nginx tends to be everywhere: edge proxies, sidecars, container base images, ingress controllers, the “temporary” reverse proxy on a build server. Inventory the version and the features in use, not just the package name.
# Version of the binary on this host
nginx -v
# Compiled-in HTTP/2, HTTP/3 and mail support
nginx -V 2>&1 | grep -oE -- '--with-(http_v2_module|http_v3_module|mail[^ ]*)'
# What the running configuration actually uses
sudo nginx -T 2>/dev/null | grep -nE 'http2|http3|quic|resolver|mirror|ssi on|auth_http|^\s*mail\s*\{|load_module'
# Package version (distribution builds)
dpkg -l nginx 2>/dev/null; apt-cache policy nginx 2>/dev/null
rpm -q nginx 2>/dev/null
apk info -v nginx 2>/dev/null
# Containers currently running
for c in $(docker ps -q); do
printf '%s: ' "$(docker inspect -f '{{.Name}} {{.Config.Image}}' "$c")"
docker exec "$c" nginx -v 2>&1 || echo 'no nginx'
doneThe mail module can also be loaded dynamically, so look for load_module lines as well as compile flags. For CVE-2026-123634, the pattern to look for is a proxy_pass whose host part contains a variable together with a resolver, in a location that also uses ssi on or mirror.
Distribution packages: don't compare version strings
Distributions backport fixes without moving to 1.30.7. Ubuntu's fixed 24.04 package, for example, is still an nginx 1.24.0 build. Check your distribution's tracker for the CVE, not the output of nginx -v.
Step 2 — Patch
Fixed versions as of 19 November 2026
| Source | Fixed in |
|---|---|
| nginx Open Source | 1.30.7 (stable), 1.31.9 (mainline) — 18 November |
| NGINX Plus | PLS.37.0.8.1 (LTS) and PLS.37.3.0.1 (CR) — 18 November. CVE-2026-123633 was already fixed in Plus on 14 October. |
| Ubuntu (USN-9159-1) | 26.10: 1.30.4-7ubuntu1.2 · 26.04: 1.28.3-2ubuntu1.13 · 24.04: 1.24.0-2ubuntu7.20 · 22.04: 1.18.0-6ubuntu14.23 · 20.04 and older: ESM builds via Ubuntu Pro |
| Debian | trixie: 1.26.3-3+deb13u11 (DSA-6642-1) · sid: 1.30.6-4 · bookworm: still listed as vulnerable |
| Red Hat Enterprise Linux 8, 9, 10 | Affected, no fixed package yet — use the mitigations below |
| Amazon Linux 2 (Extras) | nginx-1.30.7-1.amzn2.0.1 (ALAS2NGINX1-2026-018) |
| Alpine | edge and 3.24: 1.30.7-r0 · 3.22 and 3.23: 1.28.3-r8 |
# Debian/Ubuntu
sudo apt-get update && sudo apt-get install --only-upgrade nginx
sudo nginx -t && sudo systemctl restart nginx
# RHEL-family / Amazon Linux
sudo dnf upgrade nginx # or: sudo yum update nginx
sudo nginx -t && sudo systemctl restart nginx
# Containers: rebuild from a fixed base, don't patch in place
docker build --pull -t my-proxy:patched .
kubectl rollout restart deployment/my-proxysystemctl reload nginx re-reads the config but keeps the old binary in memory. After a package upgrade you need a full restart (or nginx's on-the-fly binary upgrade with USR2/QUIT). The official nginx:stable and nginx:mainline images only help after --pull and a rebuild; anything pinned to a version or digest needs an explicit bump.
Kubernetes ingress and gateways
F5's NGINX Ingress Controller v5.8.0 and NGINX Gateway Fabric v2.9.0 both shipped on 18 November, but their release notes don't mention these CVEs, and the Ingress Controller notes say it moved to nginx 1.31.8 — a version nginx.org lists as vulnerable. I could not confirm F5's per-product status, so check F5's advisory for your controller and the nginx version inside the running pod (kubectl exec … -- nginx -v) rather than trusting the chart version.
Step 3 — If you can't patch today: switch the features off
Red Hat and CERT-EU list disabling HTTP/2 and HTTP/3 as mitigations. F5's own records list “none” as the workaround for those three CVEs, which is a fair warning: this reduces exposure, it is not a fix. Apply it to internet-facing listeners first.
# CVE-2026-123007 and CVE-2026-123633 — disable HTTP/2
# nginx 1.25.1+: use the directive and remove 'http2' from every listen line
server {
listen 443 ssl; # was: listen 443 ssl http2;
http2 off;
...
}
# CVE-2026-121810 — disable HTTP/3 / QUIC
server {
# remove: listen 443 quic reuseport;
http3 off;
# also drop any 'add_header Alt-Svc' that advertises h3
}
sudo nginx -t && sudo systemctl reload nginx # config-only change: reload is enough herelisten … http2 is a per-address option: if any server block on the same address:port still has it, HTTP/2 stays on for all of them. Check with the nginx -T grep from Step 1, then confirm from outside:
curl -sI --http2 https://your.host/ -o /dev/null -w '%{http_version}\n' # want: 1.1- CVE-2026-123634 (resolver): F5's guidance is to avoid SSI or
mirrordirectives and avoid a proxied server name built from variables. Usually the quickest change is to pointproxy_passat a fixedupstreamblock for the affected locations. - CVE-2026-113425 (mail proxy): F5's guidance is to restrict the mail listeners to trusted networks — a firewall or security-group rule, or
allow/denyin themailblock. - CVE-2026-123633: its trigger includes workers running low on connections, so watch for
worker_connections are not enoughin the error log and fix the capacity, but don't treat raising the limit as a mitigation.
Step 4 — Verify
- Re-run the Step 1 inventory and compare each host against the fixed version for its source — upstream, Plus, or the distribution package in the table.
- Check the processes are new. The master and workers should have started after the upgrade:
ps -o pid,lstart,cmd -C nginx. - Check the protocol from outside where you used the HTTP/2 or HTTP/3 mitigation, with the
curlcheck above. - Gate it. Fail the image build if nginx is older than the fixed release for its branch, so a vulnerable proxy cannot ship again.
# Build-time gate for upstream nginx images (distro builds: check the package instead)
v=$(nginx -v 2>&1 | sed 's|.*/||')
case "$v" in
1.30.*) min=1.30.7 ;;
1.31.*) min=1.31.9 ;;
*) echo "nginx $v: unsupported branch"; exit 2 ;;
esac
[ "$(printf '%s\n' "$min" "$v" | sort -V | head -1)" = "$min" ] \
&& echo "nginx $v OK" || { echo "nginx $v VULNERABLE"; exit 1; }Step 5 — Look back
The advisories publish no indicators of compromise. The practical signals are those of memory corruption in a web server:
- Workers dying: error-log lines like
worker process … exited on signal 11(or 6), especially in bursts on HTTP/2 listeners. - Processes started by the nginx worker user that nginx never starts — shells,
curl,wget— and unexpected outbound connections from proxy hosts. - New files in writable paths the worker can reach, such as cache and temp directories.
A worker can read whatever nginx holds in memory: TLS private keys loaded at startup, upstream credentials and headers in flight. If an internet-facing host shows signs of compromise, rebuild it and rotate its TLS keys and any secrets in its configuration.
The short version
Upgrade to 1.30.7 or 1.31.9 (or your distribution's fixed package), restart, and prove it against what actually serves traffic. Where no fixed package exists yet — RHEL and Debian bookworm at the time of writing — turn off HTTP/2 and HTTP/3 on public listeners and watch for the update.
The lasting lesson is the same as every critical CVE: know where your nginx runs, know which features each one uses, and be able to rebuild every image from a fresh base in one command. More on that in Is Your Organisation Ready for the Next Critical CVE?
Official sources
- nginx.org — security advisories
- nginx.org — CHANGES-1.30 (1.30.7)
- NGINX Plus releases
- CERT-EU 2026-022 — Critical vulnerabilities in Nginx
- Ubuntu USN-9159-1
- Debian security tracker — CVE-2026-123007
- Red Hat — CVE-2026-123007
- Amazon Linux ALAS2NGINX1-2026-018
- Alpine security — CVE-2026-123007
Need a second pair of hands on patch rollout?
I help teams build the inventory, rebuild-from-base pipelines and deploy-time version gates that turn a critical CVE into a routine afternoon.
Get in touch