NGINX2Root: Update nginx to 1.30.7 or 1.31.9 Now (CVE-2026-123007)

Key points
- nginx 1.30.7 (stable) and 1.31.9 (mainline), released on 18 November 2026, fix ten security issues.
- Five of them, grouped under the name NGINX2Root, are critical memory-corruption bugs rated 9.2. The worst, CVE-2026-123007, needs nothing more than HTTP/2 being enabled.
- Public proof-of-concept code exists for CVE-2026-123007. No attacks had been reported by 19 November.
- Update, then restart nginx. A reload keeps the old, vulnerable binary in memory.
nginx sits in front of a huge share of the web, often as the only thing between the internet and everything else on the server. That is what makes this nginx security update different from the usual handful of low-severity fixes. Ten CVEs were closed at once, and the most serious one has been in the HTTP/2 code since version 1.9.5, back in 2015.
What is NGINX2Root?
NGINX2Root is the name given to five memory-corruption bugs in nginx that can lead to remote code execution in a worker process. Each one lives in a different part of the server, so whether a machine is exposed depends on which features it uses:
| CVE | Where the bug is | Exposed when |
|---|---|---|
| CVE-2026-123007 | HTTP/2 flow control | HTTP/2 is enabled (the common case) |
| CVE-2026-123633 | HTTP/2 (use-after-free) | HTTP/2 is enabled |
| CVE-2026-121810 | HTTP/3 (QUIC) | A quic listener is configured |
| CVE-2026-123634 | DNS resolver | resolver is used, for example with variable proxy_pass targets |
| CVE-2026-113425 | Mail proxy | The mail module is in use |
CVE-2026-123007 is the one to worry about first. An unauthenticated client only needs to reach an HTTP/2 listener. Code execution was shown even on a server that delivered nothing but static files.
The same release also fixes CVE-2026-118899, a denial-of-service loop when request bodies are read over TLS 1.3, which nginx enables by default, plus four lower-rated issues in the stream SSL modules and the map directive.
How dangerous is it in practice?
The published exploit for CVE-2026-123007 is far from a one-click attack. It needs to defeat address randomisation, push roughly 128 GB of HTTP/2 traffic and, even when it works, runs code as the unprivileged nginx worker user, not as root. Servers behind a proxy that ends HTTP/2 before nginx are much harder to reach.
That is not a reason to wait. Researchers also showed how a worker-level foothold can be combined with an unpatched Linux kernel bug in the SCTP module to become root on the host. Exploits only get easier once code is public.
Which versions are affected and fixed?
| Branch | Vulnerable | Fixed in |
|---|---|---|
| 1.31 (mainline) | 1.31.8 and earlier | 1.31.9 |
| 1.30 (stable) | 1.30.6 and earlier | 1.30.7 |
| 1.29 and older | All | No fix: upgrade to 1.30.7+ |
Distribution packages often keep their own version number and backport the patch. Compare the full package version with your distribution’s security notice, or search the changelog:
# Debian / Ubuntu
apt changelog nginx | grep -m3 CVE-2026-123007
# AlmaLinux / Rocky Linux / RHEL
rpm -q --changelog nginx | grep -m3 CVE-2026-123007When this was written, fixes had shipped in the official nginx packages and several distributions, while others were still preparing theirs. If yours has not shipped yet, the official nginx repository already carries 1.30.7 and 1.31.9.
How do I update nginx?
1. Check what is running
nginx -v
nginx -V 2>&1 | tr ' ' '\n' | grep -E 'http_v2|http_v3|mail'The second command shows which of the affected modules are compiled in.
2. Install the update
# Debian / Ubuntu
sudo apt update && sudo apt install --only-upgrade nginx
# AlmaLinux / Rocky Linux / RHEL
sudo dnf upgrade nginx3. Restart, do not reload
sudo nginx -t && sudo systemctl restart nginx
ps -o pid,lstart,cmd -C nginxThe start time of the master and worker processes should be after the update. If it is older, the previous binary is still serving traffic.
4. Containers and control panels
Rebuild Docker images from an updated nginx tag and redeploy. On servers where a control panel builds its own nginx (for example as a reverse proxy in front of Apache), use the panel’s update tool and check the version it reports afterwards.
What if I cannot update today?
These steps reduce exposure for a day or two. None of them replaces the update.
- Turn off HTTP/2 with
http2 off;in eachserverblock (or removehttp2fromlistenlines on older configs). This covers the two HTTP/2 bugs only. - Remove HTTP/3 listeners (
listen 443 quic;) if you have them. - Keep the mail proxy off the internet: bind it to
127.0.0.1or block its ports in the firewall. - Avoid variable
proxy_passtargets that need the resolver; point to a fixedupstreaminstead. - Block the SCTP kernel module on hosts that do not use it, to break the known path to root:
echo "install sctp /bin/true" | sudo tee /etc/modprobe.d/disable-sctp.conf
There is no workaround for the TLS 1.3 denial-of-service issue.
How can I tell if someone tried?
- Worker processes that start shells or tools:
ps -ef --forest | grep -A3 "nginx: worker" - Repeated worker crashes in the error log (
worker process ... exited on signal 11). - Very long HTTP/2 connections that send unusually large amounts of data to the server.
Running nginx on your own server means this update is in your hands. Our KVM VPS plans give you root access to patch on your schedule, and the Linux VPS security checklist covers automatic updates and service restarts so the next release is quicker to deal with.