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

NGINX2Root: update nginx
Rate this post

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:

CVEWhere the bug isExposed when
CVE-2026-123007HTTP/2 flow controlHTTP/2 is enabled (the common case)
CVE-2026-123633HTTP/2 (use-after-free)HTTP/2 is enabled
CVE-2026-121810HTTP/3 (QUIC)A quic listener is configured
CVE-2026-123634DNS resolverresolver is used, for example with variable proxy_pass targets
CVE-2026-113425Mail proxyThe 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?

BranchVulnerableFixed in
1.31 (mainline)1.31.8 and earlier1.31.9
1.30 (stable)1.30.6 and earlier1.30.7
1.29 and olderAllNo 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-123007

When 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 nginx

3. Restart, do not reload

sudo nginx -t && sudo systemctl restart nginx
ps -o pid,lstart,cmd -C nginx

The 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 each server block (or remove http2 from listen lines 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.1 or block its ports in the firewall.
  • Avoid variable proxy_pass targets that need the resolver; point to a fixed upstream instead.
  • 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.

Frequently asked questions

Which nginx versions fix NGINX2Root?

nginx 1.30.7 (stable) and 1.31.9 (mainline), released on 18 November 2026, fix all ten vulnerabilities. Distribution packages may keep an older version number and backport the fix, so check the package changelog for CVE-2026-123007.

Is a reload enough after updating nginx?

No. nginx -s reload and systemctl reload only re-read the configuration; the old binary keeps running. Restart the service so the new executable is loaded.

Does turning off HTTP/2 protect my server?

Only partly. Setting http2 off closes CVE-2026-123007 and CVE-2026-123633, the two HTTP/2 bugs. It does not cover the HTTP/3, resolver, mail proxy or TLS 1.3 issues, so it is a stopgap until the update is installed.

Is NGINX2Root being exploited?

As of 19 November 2026 no attacks in the wild had been reported, but proof-of-concept code for CVE-2026-123007 is public. The demonstrated exploit is slow and needs a lot of traffic, which is no reason to delay the update.

Are old nginx versions such as 1.28 or 1.29 fixed?

No. Only the 1.30 stable and 1.31 mainline branches received fixes. Servers on older branches need to move to 1.30.7 or newer.

Related articles