NGINX2Root: does it concern your server, and what to do
I got an email from DigitalOcean about two critical vulnerabilities in nginx. They concern you if your nginx has HTTP/2 enabled and is older than 1.30.7 or 1.31.9. How to check with two commands, and what to do if you cannot update right away.
On Friday, 20 November, I got an email from DigitalOcean, a company that rents out servers, about two vulnerabilities in nginx. Nginx is a web server: it takes connections from the internet and either serves files itself or passes the request on to an application.
The email does not report a break-in. It says that through these vulnerabilities a stranger can run their own code on the server, without logging in, and that patching is up to you.
The same day an email came about Java, and a day later one about PHP. After these three emails I checked every project I look after.
Is it urgent
Yes, if both conditions are met:
- your nginx is older than 1.30.7 (the stable line) or 1.31.9 (the mainline line),
- it has HTTP/2 enabled, the newer version of the protocol a browser uses to talk to a server.
Both vulnerabilities in the email need HTTP/2 to be enabled.
Your site does not need to have any bug. The email says the attack was shown on a server that serves ordinary static files, with no application behind it.
CERT-EU wrote on 18 November that no attacks using these vulnerabilities had been reported so far.
How to check
nginx -v
nginx -T 2>/dev/null | grep -nE '\b(listen|http2|http3)\b'
The first command prints the version. If the output of the second has http2 on; or the word http2 in a listen line, HTTP/2 is enabled.
The version number misleads in two cases.
Nginx from a system package. Linux distributions add fixes to an old version without changing its number. Check your distribution’s security advisory, not the number alone.
Nginx in Docker. Ask the running container, not the image tag:
docker exec <container> nginx -v
The nginx:mainline-alpine image I have on disk reports version 1.31.8, the last vulnerable one. The tag says “mainline”, and the patched mainline is 1.31.9.
What to do
- Update nginx to 1.30.7 or 1.31.9, or newer, and restart it. Rebuild a container from the patched image.
- If you cannot update right away, turn HTTP/2 off for the time being: on nginx 1.25.1 or later put
http2 off;in theserverblocks and removehttp2from thelistenlines. Reload nginx and check that the old worker processes have exited. - If you run a Kubernetes cluster, check what lets traffic into it. The ingress-nginx controller carries its own nginx inside. Aikido writes that it is vulnerable to one of these flaws and that the project was archived in March 2026, so no fix will come from its authors.
For the curious: what is underneath
There are five vulnerabilities. On 18 November versions 1.30.7 and 1.31.9 came out, and they fix five vulnerabilities. The researchers at Xint, who had reported them a month earlier, named the set NGINX2Root. The email names two. The other three need rarer settings: HTTP/3, the mail proxy, or a resolver with a target address built from request data. Turning HTTP/2 off does not close them.
CVE-2026-123007 is a bug in how nginx counts how much data it may still send on an HTTP/2 connection. Xint writes that it has been in the code since version 1.9.5 of 2015, the first release with HTTP/2.
CVE-2026-123633 also needs nginx to pass requests on to a server standing behind it. It affects versions from 1.19.7.
Where the “root” in the name comes from. The nginx bug alone gives the attacker the privileges of an nginx worker process, not of the administrator. Xint chained it with a separate vulnerability in the Linux kernel and only then got full privileges, and in its tests it also got out of a Docker container onto the machine underneath.
The scores differ. The email calls both vulnerabilities critical and gives a score of 9.2. CERT-EU gives them 8.1. The nginx.org page rates one “major” and the other “medium”.
How often HTTP/2 is on. In the official Docker image I have on disk, the default configuration listens only on port 80 and does not enable HTTP/2. Florian Roth, a researcher quoted by BleepingComputer, checked a few hundred nginx servers with HTTPS and about 66% of them supported HTTP/2.
Who found them. The first vulnerability was found by an Xint researcher preparing for the ZeroDay Cloud 2026 event. The other four, Xint writes, were found a few days later by a fully automated scan, with no human guiding it. BleepingComputer adds that the two HTTP/2 bugs were found independently by five teams, and that the attack on a server with static files was shown by Wiz.
Caveats. As of 23 November 2026. I write from the DigitalOcean email and from public write-ups; I reproduced none of these vulnerabilities. About the ingress-nginx controller I write from Aikido, a company that sells security tools. Xint deliberately left the final steps needed to reproduce the attacks out of its write-up. The statement that no attacks were reported is dated 18 November and may have changed since.
Not sure which version of nginx runs on your servers? Write to me.
In November I got two emails about a security incident, one from Autopay about card data and one from bunny.net about TLS certificates. Both carry the same sentence, "we cannot rule it out", and in both the break-in happened at a company the customer never sees. How to read such an email, what to do about your card, and what follows if you hold other people's data yourself.
I got an email from DigitalOcean about a critical vulnerability in Java. It concerns you only when three things are true at once, the Java version, the server's processor and the application. How to check with one command, and what to set before you update.