What happened
The nginx team published fixes for over a dozen bugs at once. Researchers described five of them together as NGINX2Root. The main flaw, CVE-2026-123007, is memory corruption in HTTP/2 flow control handling. An attacker who can connect to an nginx port with HTTP/2 enabled can run their own code with the privileges of an nginx worker process, with no account or password. F5 rates it 9.2 on CVSS 4.0.
The other four flaws in the group need more specific settings:
- CVE-2026-123633: client-side HTTP/2, proxying to a backend and a worker running low on connections;
- CVE-2026-123634: a backend name with variables in
proxy_passplus SSI ormirrorsubrequests to the same name; - CVE-2026-121810: HTTP/3 enabled;
- CVE-2026-113425: nginx used as a mail proxy.
Who is really exposed
Every release from 1.9.5 to 1.31.8 is affected, which means practically every nginx from the last ten years. The main flaw has one condition: HTTP/2 enabled on a port the attacker can reach. In many companies that is the default, because ready-made configuration templates, hosting panels and certificate wizards turn HTTP/2 on.
Public exploit code has been available since disclosure day. According to Qualys it is hard to use: it needs a long connection with direct access to nginx and works only on a specific CPU and glibc combination. As of 18 November no attacks in the wild were confirmed. Still, this is a flaw to patch now rather than in the next maintenance window. The researchers also showed that after taking over the nginx process, root can be reached through a separate Linux kernel bug (the SCTP module), including from a Docker container. That bug has no CVE and no fix yet.
Affected and fixed versions
- nginx open source: affected 1.9.5–1.31.8;
- fixed: 1.30.7 (stable) and 1.31.9 (mainline);
- NGINX Plus: fixed in 37.0.8.1 and 37.3.0.1.
Older branches will not get separate fixes. Move to 1.30.7 or later, or to a distribution package that includes the fix. On disclosure day Debian and Ubuntu had no fixed packages yet, while Alpine did.
How to check your server
Version and HTTP/2 module:
nginx -vnginx -V 2>&1 | grep -o with-http_v2_module
Whether the configuration actually enables HTTP/2 or HTTP/3:
sudo nginx -T 2>/dev/null | grep -nE 'listen .*(http2|quic)|http2 +on|http3 +on'
Whether the server answers HTTP/2 from outside:
openssl s_client -connect example.com:443 -servername example.com -alpn h2 </dev/null 2>&1 | grep ALPN
nginx also runs where nobody looks for it: in Docker images (for example as a proxy in front of an application), Kubernetes ingress controllers, vendor appliances and panels, and ready-made cloud machine images. Each of these needs a separate check.
What to do now
- Upgrade nginx to 1.30.7 or 1.31.9. If the distribution has no fix yet, switch to the official packages from nginx.org. After upgrading, check that the installer did not replace
nginx.confand confirm the service is running. - If you cannot upgrade right away, disable HTTP/2 in every
listenblock (removehttp2or sethttp2 off;) and reload nginx. This closes the main flaw and CVE-2026-123633. If HTTP/3 and the mail proxy are not needed, disable them too until you upgrade. - Container images must be rebuilt on a new nginx base image and redeployed. Updating the host does not change nginx inside containers.
- Review logs and the system for unusual, very long HTTP/2 connections, worker restarts (
worker process exited on signalinerror.log) and new files or processes started by the nginx user. - Limit the impact: the nginx worker should not run as root, and if SCTP is not used, block the kernel module from loading (
install sctp /bin/truein/etc/modprobe.d/).
Summary
NGINX2Root affects almost every nginx web server, and HTTP/2 being enabled is enough for an attack. Upgrading to 1.30.7 or 1.31.9 is simple and should happen today. Where that is not possible, disabling HTTP/2 is an effective workaround for a few days. It is also a good moment to list where nginx actually runs in the company, because container images and vendor appliances are the easiest to miss.
Sources
The information in this post comes from the sources below. Each link was checked before publication.