nginx2root: nginx RCE bugs fixed in 1.31.9 and 1.30.7
Xint says an nginx HTTP/2 bug lets a remote attacker run commands without logging in. nginx 1.31.9 and 1.30.7 fix it. How to check and what to do first.
By Shaheer Q. · · Updated · 25 min read
On Wednesday 18 November 2026, nginx released 1.31.9 (mainline) and 1.30.7 (stable) with fixes for ten security bugs. Five of them were published the same day by the security firm Xint under the name nginx2root. Xint says the worst one, CVE-2026-123007, lets a remote attacker with no login run commands on an nginx server that has HTTP/2 enabled, and that it is present in every release from 1.9.5 to 1.31.8.
If you run nginx yourself, upgrade and restart it today. If you can't upgrade today, turning off HTTP/2 blocks the two HTTP/2 bugs until you can. The rest of this post covers which claims nginx has confirmed and which are Xint's alone, how to check a server, and what to do in what order.
What is confirmed, and by whom
Three sources matter here, and they do not say quite the same thing.
Xint's post (NGINX2Root) describes five nginx bugs and one Linux kernel bug. It rates the set "Critical" and states the impact as: "An unauthenticated remote attacker can execute arbitrary commands with nginx worker privileges". It says it tested the main exploit against servers on AWS, GCP and Azure, including over a public HTTPS endpoint and under normal traffic.
nginx's own pages confirm that the bugs are real and fixed. The security advisories page lists all five CVEs, with "Not vulnerable: 1.31.9+, 1.30.7+" for each. They are more cautious about the impact:
- nginx rates CVE-2026-123007 and CVE-2026-113425 as "major" and the other three as "medium". It does not use "critical". F5, the company that owns nginx, does: its advisories, such as K000163926 for the HTTP/2 bug, score all five at 8.1 under CVSS 3.1 and at 9.2, Critical, under CVSS 4.0. I read those advisories on 23 November.
- The changelog says the HTTP/2 bug "might allow an attacker to cause a segmentation fault in a worker process, or might have potential other impact". It does not mention code execution.
- The changelog credits CVE-2026-123633 to "Albert of Vexera AI", not to Xint. Xint's post lists it among its five.
Wiz Research published its own write-up of the two HTTP/2 bugs the same day. It says: "We confirmed remote code execution with an ASLR bypass on official NGINX 1.31.7 and 1.31.8 builds." Wiz gives both bugs a CVSS 4.0 score of 9.2, which is Critical. It also says four other teams, "Ikotas Labs, Metnir, Rapid7, and Xint also independently discovered and reported these issues to F5", which would explain the credit to someone other than Xint.
So the bugs, the affected versions and the fixes are confirmed by the vendor. Remote code execution through the HTTP/2 bugs is claimed by two research teams who each say they built a working exploit, and nginx's "potential other impact" leaves room for it. Ubuntu's entry for CVE-2026-123007 rates it High priority and lists the same 9.2 score, with one condition: code execution is possible "on systems with Address Space Layout Randomization (ASLR) disabled or when the attacker can bypass ASLR." Both Xint and Wiz say they bypassed it.
Neither Xint nor Wiz reports attacks in the wild, and neither has published exploit code. Xint says "we intentionally omit the final steps needed to reproduce the full exploits", and Wiz says "we will not be releasing these exploits at this time."
Update, 22 November: exploit code for CVE-2026-123007 is now public. Help Net Security reported on 19 November that Rapid7's Stephen Fewer has published a technical analysis and a proof-of-concept exploit on GitHub. Rapid7 is one of the teams that found the bug independently. I have not read Rapid7's post or the repository myself, so what follows is from two write-ups about them.
- Tenable says the repository holds a small script that triggers the bug and a full remote code execution exploit, shown against nginx 1.31.8 in a Docker container. It says Rapid7 "describes the exploit as constrained": it depends on a memory-copy routine in glibc on x86-64, "requires roughly 128 gigabytes of HTTP/2 traffic", and has to defeat ASLR.
- StepSecurity ran both tools. It says the full exploit needs a direct connection to nginx, about 119 GiB sent within nginx's one-hour connection limit, an otherwise idle server and a CPU with AVX-512. The smaller script only crashes the worker, and that worked on a CPU without AVX-512.
- StepSecurity also tested the fixes. Against 1.31.9 nothing crashed. With
http2 offon 1.31.8 the script could not connect.
Those limits make the public exploit hard to use against a busy production server. They are limits of this one exploit and not of the bug. As of 20 November StepSecurity found no reported exploitation, and Help Net Security says none of the CVEs was in CISA's Known Exploited Vulnerabilities catalog on 19 November.
The five bugs
The "needs" column is from Xint. Severity and version ranges are from nginx.org.
| CVE | What it is | Needs | nginx severity | Vulnerable versions |
|---|---|---|---|---|
| CVE-2026-123007 | Memory corruption in HTTP/2 flow control | HTTP/2 enabled | major | 1.9.5 to 1.31.8 |
| CVE-2026-113425 | Use-after-free in the mail proxy | Mail proxy with proxy on and auth_http | major | 0.5.33 to 1.31.8 |
| CVE-2026-123634 | Use-after-free in the DNS resolver | resolver, a proxy_pass destination taken from the request, and mirror with mirror_request_body off | medium | 0.6.18 to 1.31.8 |
| CVE-2026-123633 | Use-after-free in HTTP/2 | HTTP/2 with requests proxied to a backend | medium | 1.19.7 to 1.31.8 |
| CVE-2026-121810 | Use-after-free in HTTP/3 | HTTP/3 with requests proxied to a backend | medium | 1.25.0 to 1.31.8 |
Xint gives later starting versions for two of these (1.13.4 for the resolver bug and 0.5.15 for the mail proxy bug, which is earlier than nginx's 0.5.33), and labels them as the first release affected "for this path". Use nginx's ranges.
CVE-2026-123007 is the one that matters most, because its only requirement is a common one. HTTP/2 flow control gives each connection a send window, a counter of how many bytes the server may send. Xint found that when a client raises the window and then cancels streams, nginx's cleanup returns credit to the counter and "never checks the result against the HTTP/2 maximum". The counter overflows, a later length calculation goes wrong, and nginx copies far more memory than it should. Xint says it turned that into reading and writing heap memory, and from there into running commands.
The other four have narrower triggers. Three of them also need the server to reach out to something the attacker controls: Xint says the resolver bug needs nginx's resolver to reach the attacker's DNS server, and the HTTP/2 and HTTP/3 use-after-free bugs need nginx to open a connection to the attacker.
The same two releases also fix five nginx bugs that are not part of nginx2root, including a "major" infinite loop in TLS 1.3 request body handling (CVE-2026-118899) and a buffer overflow with alias and try_files (CVE-2026-125283). That is one more reason to take the upgrade instead of only applying a workaround.
Does it really give root?
Not from nginx alone. The name describes a chain.
The nginx bugs give an attacker code running as the nginx worker process, which normally runs as an unprivileged user such as www-data or nginx. That is already serious: the worker can read the TLS private keys it has loaded, see traffic passing through it, and reach whatever backends the server can reach.
Root comes from a sixth bug, a use-after-free in the Linux kernel's SCTP networking code. Xint says it has been there since Linux 4.15 in 2018, and that "an attacker already running code as an nginx worker could reliably gain root." It also says "the chain also escaped a Docker container running nginx and obtained root on the underlying host." This kernel bug had no CVE and no patch when Xint published, and Xint is withholding most of its details. Xint adds that whether it is reachable "still depends on the kernel, the available modules, and the container's restrictions."
Update, 23 November. A fix that matches this bug is now in the mainline kernel. The commit is titled "sctp: do not free a new asoc peeled off while sendmsg slept". Its author works at Theori, the company behind Xint, and its message says: "This was found by Xint Code, an AI code review agent, and reproduced as an unprivileged user". It describes the same mechanism as Xint's post: a send that sleeps while its association is moved to another socket, and then frees it. The patch is dated 12 November, was merged by Linus Torvalds on 19 November and is in the 7.4-rc4 tag.
Two cautions. Neither Xint nor the commit says in so many words that this is the nginx2root kernel bug. The commit never mentions nginx, and Xint's post still said on 23 November that it is withholding details "until a kernel patch is available". The match is my reading of the two descriptions. And mainline is not what your servers run. The commit is marked for backporting to stable kernels, but I searched the changelogs of the stable releases published on 23 November (7.3.6, 6.18.65 and 6.12.119) and it is in none of them. A second pass that evening covered all seven stable and longterm releases of that day, down to 5.10.275, with the same result, and the patch was not yet in the stable queue either. Until your distribution ships a kernel with the fix, the SCTP block in step 4 below is still the mitigation.
Check whether you are exposed
Start with the version and whether HTTP/2 is compiled in and switched on. The first command is Xint's. The other two are my shorter versions of the checks in its post.
# 1. Which version is running?
nginx -v 2>&1
# 2. Is the HTTP/2 module compiled in?
nginx -V 2>&1 | grep -o -- '--with-http_v2_module'
# 3. Does any server block turn HTTP/2 on?
sudo nginx -T 2>/dev/null | grep -nE 'listen .*http2|http2 +on'
Then confirm from outside your network. This is Xint's command, and it prints a line only if the server agrees to speak HTTP/2:
openssl s_client -connect HOST:443 -servername HOST -alpn h2 </dev/null 2>&1 | grep -F 'ALPN protocol: h2'
nginx's documentation lists http2 off; as the default, so a server speaks HTTP/2 only where someone turned it on. Plenty of TLS configurations do, so run the check instead of assuming.
Three things make the version number less useful than it looks.
Distribution packages keep old version numbers. Xint notes that Ubuntu 24.04 ships nginx 1.24.0, Ubuntu 22.04 ships 1.18.0 and Debian 12 ships 1.22.1, and that these distributions backport fixes without changing that number. nginx -v cannot tell you whether a backport is installed. Check the package version (apt list --installed nginx or rpm -q nginx) against your distribution's security tracker.
Distribution fixes are out (updated 22 November). When this post went up on 18 November, Debian and Ubuntu listed every release as vulnerable with no fixed version. Both have shipped patched packages since. These are the fixed versions for CVE-2026-123007 on Debian's tracker and Ubuntu's page, read on 22 November:
| Release | Fixed package version | Notes |
|---|---|---|
| Debian 12 bookworm | 1.22.1-9+deb12u11 | Security archive, DLA-4918-1 |
| Debian 13 trixie | 1.26.3-3+deb13u11 | Security archive, DSA-6642-1 |
| Debian forky and sid | 1.30.6-4 | |
| Ubuntu 26.10 | 1.30.4-7ubuntu1.2 | |
| Ubuntu 26.04 LTS | 1.28.3-2ubuntu1.13 | |
| Ubuntu 24.04 LTS | 1.24.0-2ubuntu7.20 | |
| Ubuntu 22.04 LTS | 1.18.0-6ubuntu14.23 | |
| Ubuntu 20.04 LTS | 1.18.0-0ubuntu1.7+esm5 | Ubuntu Pro only |
| Ubuntu 18.04 LTS | 1.14.0-0ubuntu1.11+esm6 | Ubuntu Pro only |
| Ubuntu 16.04 LTS | 1.10.3-0ubuntu0.16.04.5+esm11 | Ubuntu Pro with the Legacy Support add-on |
| Ubuntu 14.04 LTS | not affected |
Debian's advisory for trixie lists all five nginx2root CVEs. The one for bookworm lists four and leaves out the HTTP/3 bug, which nginx says starts at version 1.25.0. On 22 November I had checked Ubuntu's page for CVE-2026-123007 only. Ubuntu's notice USN-9159-1, published on 19 November, lists all five nginx2root CVEs, so one package update covers them. Other distributions I did not check. After the package update, restart nginx, as in step 1 below.
Upstream only fixed two branches. nginx.org lists 1.31.9 and 1.30.7 as not vulnerable and nothing older. If you build from source on 1.28 or earlier, there is no patched release on your branch, and you need to move to 1.30.7 or 1.31.9.
Update, 23 November: there are newer releases. nginx published 1.31.10 and 1.30.8 on 23 November. They fix a different bug, CVE-2026-132779, rated "medium": with ssl_early_data on, a client "might cause excessive CPU usage". nginx lists every version from 1.21.4 to 1.31.9 as vulnerable to it, so 1.31.9 and 1.30.7 are fixed for nginx2root and exposed to this one. If you have not upgraded yet, go straight to 1.31.10 or 1.30.8. If you already have, F5's advisory for the new bug gives the stopgap: set ssl_early_data off;, which is also nginx's default.
Xint also gives a sense of scale: on 10 November, Shodan returned 56.7 million hosts identified as nginx, 11.94 million of which reported a version, and 98.9% of those fell in the affected range. Xint adds that these numbers "don't confirm that a server is vulnerable", and they say nothing about how many have HTTP/2 enabled or carry a distribution backport.
What to do, in order
1. Upgrade to 1.31.9 or 1.30.7 or later, or your distribution's patched package, and restart. Since 23 November the current releases are 1.31.10 and 1.30.8. A reload is not enough. Xint: "A configuration reload alone does not replace the running executable." Restart the service or do a live binary upgrade, then check that the old worker processes are gone.
2. If you can't upgrade today, turn off HTTP/2. This blocks CVE-2026-123007 and CVE-2026-123633. On nginx 1.25.1 and later:
listen 443 ssl;
http2 off;
On 1.9.5 through 1.25.0, remove http2 from the listen line instead, so listen 443 ssl http2; becomes listen 443 ssl;. Then run sudo nginx -t, reload, and restart nginx so existing HTTP/2 connections are closed. Run the openssl check above again and expect no output. Clients fall back to HTTP/1.1, but anything that needs HTTP/2, such as native gRPC, will break.
3. Cover the other three bugs if their conditions match your config. These are Xint's mitigations:
- HTTP/3 (CVE-2026-121810): remove the
quiclisteners, sethttp3 off;, and sendadd_header Alt-Svc 'clear' always;so browsers stop trying HTTP/3. - Mail proxy (CVE-2026-113425): bind mail listeners to loopback, or restrict them with a firewall.
- Resolver (CVE-2026-123634): point
proxy_passat a fixed upstream and setmirror off;if you don't need mirroring. Xint notes thatmirror_request_body onstopped its exploit but does not fix the bug. F5's advisory for this CVE names a second trigger, "a Server Side Includes (SSI) or mirror directive", and its mitigation reads: "Avoid using SSI or mirror directives and avoid configuring a proxied server name with variables." So turning offmirroralone is not enough if you use SSI.
4. Block SCTP if you don't use it. Until there is a kernel patch, Xint's suggestion is an install sctp /bin/false line in a file under /etc/modprobe.d/. The file name below is my choice:
echo 'install sctp /bin/false' | sudo tee /etc/modprobe.d/disable-sctp.conf
lsmod | grep sctp # no output means the module is not loaded now
Xint's caveat is that this "does not unload a module that is already loaded, and it does not disable SCTP compiled into the kernel." Skip this step on systems that use SCTP on purpose, which mostly means telecom workloads.
5. Don't forget the nginx you didn't install by hand. Container images, ingress controllers and appliances bundle their own copy. Run nginx -v inside the container, not on the host. Xint tested against the official nginx:1.31.8 image. Since the evening of 23 November, Docker's official image definitions point mainline and latest at 1.31.10 and stable at 1.30.8, so pull the tag again and recreate the container, because a running container keeps the old image. F5's NGINX Ingress Controller went the same way: 5.8.1 and 2026-lts-r12, released on 23 November, build on nginx 1.31.10.
Xint's own summary of the workarounds applies to steps 2 to 4: they "block the attack paths we know about, but they aren't a substitute for a patch."
On CDNs: Wiz says CDNs or WAFs that terminate HTTP/2 "may mitigate parts of the exploit." My own reading goes a little further. If clients can only reach your nginx through a proxy that speaks HTTP/1.1 to it, an attacker cannot send it HTTP/2 frames directly. Origins are often reachable around the CDN, though, so treat that as a reason for less panic and not as a reason to skip the upgrade.
Looking for signs of an attack
Xint says an attack "may leave little evidence in nginx access logs", and that the signals below are weak on their own. They are still worth ten minutes on an internet-facing server.
A failed attempt can crash a worker, so look for crashes first:
sudo grep -Ei 'worker process.*exited|signal 11|segfault' /var/log/nginx/error.log
sudo coredumpctl list nginx
Xint's exploit ends by starting another program from the worker, which a healthy nginx worker has no reason to do. On systems with auditd, you can record that from now on. Find the worker's numeric UID, then add the rule with it in place of NGINX_UID:
ps -eo uid,user,pid,ppid,args | grep '[n]ginx: worker process'
sudo auditctl -a always,exit -F arch=b64 -S execve,execveat \
-F euid=NGINX_UID -k nginx_worker_exec
sudo ausearch -k nginx_worker_exec -ts recent -i
This only records executions after you install the rule. In Xint's words, "An empty result cannot rule out an earlier compromise." Xint's post also has a custom log_format that logs requests per HTTP/2 connection, if you want more detail.
How it was found and disclosed
Xint says one of its researchers found CVE-2026-123007 while preparing for the ZeroDay Cloud 2026 competition, and that "a fully automated Xint scan found the other four without human guidance" a few days later. Its timeline, in UTC:
| Date | Event |
|---|---|
| 11 Oct | Xint finds the bugs |
| 16 Oct | Reported to F5 through HackerOne |
| 20 Oct | HackerOne completes validation |
| 27 Oct | Reports reach F5's nginx development team |
| 9 Nov | nginx team asks Xint to validate the patches |
| 10 Nov | Xint completes patch validation |
| 18 Nov | nginx 1.31.9 and 1.30.7 released |
That is 33 days from report to fixed release.
Xint also points to a trend: nginx's advisories page "recorded two new vulnerabilities" in 2025, and by 17 November this year "it had recorded 26, not counting nginx2root." Xint attributes this to AI-assisted research finding bugs faster. Whatever the cause, the practical point for anyone running nginx is that security releases now arrive often enough that a manual, once-a-quarter upgrade habit will leave you exposed. The three releases before this one were on 15 September, 14 October and 21 October, and the next security release followed five days after it.
What is still unknown
- OpenResty, third-party ingress controllers and other products built on nginx. Xint's post does not cover them, and F5's advisories cover only F5's own products. If you run one of these, check with its vendor. Update, 25 November: OpenResty has answered for itself. Its changelog lists "Version 1.31.9.1 - 23 November 2026", which "Upgraded from Nginx 1.31.8 to 1.31.9, incorporating 10 upstream security fixes." It names the five CVEs in this post among them. That covers nginx2root. The changelog does not mention nginx 1.31.10 or CVE-2026-132779, the separate
ssl_early_databug, and nginx's own advisory puts 1.31.9 in the range that bug affects. So if you run OpenResty withssl_early_dataon, that one is still open for you as far as I can tell. I have not checked third-party ingress controllers. - Whether the other three bugs are exploitable in practice. Only Xint describes exploits for the resolver, HTTP/3 and mail proxy bugs. Censys says it "reproduced use-after-free conditions for three of the other four CVEs, though none resulted in remote code execution": crashes for the second HTTP/2 bug and the mail proxy bug on unmodified 1.31.8, the resolver bug only under a memory checker and on a debug build, and the HTTP/3 bug "Not reproduced". F5 says of the HTTP/3 bug that exploitation "depends on conditions beyond the attacker's control".
- When the kernel SCTP fix reaches the kernels people run, and whether it gets a CVE. A matching fix is in mainline Linux as of 19 November, as described above. On the evening of 23 November it was in none of the seven stable and longterm releases published that day and not in the stable queue, I found no CVE for it, and Xint had not updated its post. Debian and Ubuntu have shipped their nginx fixes, as listed above. On 25 November this had not moved. There had been no new stable kernel release since 23 November. The fix was on none of the seven stable branches and in none of the stable queue's seven directories, the kernel's CVE list had no record for the commit, and Xint's post still said it was withholding details. Debian's unstable kernel moved to 7.3.6-1 on 24 November without it. Three other SCTP fixes did get kernel CVEs on 20 November. They are different commits, and none of them is this bug.
- Whether attacks have started. None were reported as of 20 November. Exploit code for the HTTP/2 bug has been public since 18 November, so do not count on that lasting. On 23 November none of the five CVEs was in CISA's list of known exploited vulnerabilities, and I found no report of attacks. The same was true of the 24 November edition of that list, read on 25 November.
Answered on 23 November: what F5's advisories say. They rate all five bugs 9.2, Critical, under CVSS 4.0. For CVE-2026-123007 they confirm the NGINX Plus fixes in 37.3.0.1 and 37.0.8.1 that Wiz listed, and show no fix for Plus R34 to R36. They also list fixed versions of F5's other products, including NGINX Ingress Controller 5.8.0 and 2026-lts-r11 and NGINX Gateway Fabric 2.9.0. F5 credits the HTTP/2 bug to researchers at Rapid7, Wiz, Xint and Ikotas Labs.
I will update this post again when the kernel fix reaches stable and distribution kernels.
The short version
- What happened: nginx 1.31.9 and 1.30.7, released 18 November 2026, fix five bugs that Xint disclosed as nginx2root, plus five others. Since 23 November the current releases are 1.31.10 and 1.30.8, which also fix a separate CPU-exhaustion bug.
- The worst one: CVE-2026-123007, memory corruption in HTTP/2 flow control, in every version from 1.9.5 to 1.31.8. Xint and Wiz each say they used it to run code as the nginx worker with no login. nginx rates it "major" and confirms a crash "or potential other impact". Wiz, Ubuntu and F5 list CVSS 4.0 at 9.2.
- Root: needs a second Linux kernel bug in SCTP. A matching fix reached mainline Linux on 19 November but was in no stable kernel release on 23 November. Xint says the chain works and escapes Docker.
- What to do: upgrade and restart, not reload. Debian and Ubuntu now have patched packages. If you can't upgrade yet, turn off HTTP/2. Check distribution packages against the distribution's tracker, not the version string. Block the SCTP module if you don't use it.
- Exploits: proof-of-concept code for CVE-2026-123007 is public, from Rapid7. Write-ups describe it as hard to use against a busy server. No attacks were reported as of 20 November.
Yesterday's security story on this site was a different kind of trust problem: malicious JavaScript served to 178 organisations through Optimizely.
Frequently asked questions
Which nginx versions fix nginx2root?
nginx 1.31.9 on the mainline branch and 1.30.7 on the stable branch, both released on 18 November 2026. nginx.org lists both as not vulnerable for all five CVEs. If your nginx comes from a Linux distribution, you need that distribution's patched package instead, and the upstream version number will not tell you whether you have it.
Am I affected if HTTP/2 is turned off?
Not by the most serious bug. CVE-2026-123007 and CVE-2026-123633 both need HTTP/2. The other three need HTTP/3 with proxying, the mail proxy with auth_http, or a specific resolver and mirror setup. Turning off HTTP/2 is a temporary measure, so you still need the patched version.
Does nginx2root really give an attacker root?
Not from nginx alone. Xint says the nginx bugs give code execution with the privileges of the nginx worker process. Root came from chaining a separate Linux kernel bug in SCTP, which had no CVE when Xint published. A kernel fix that matches Xint's description reached mainline Linux on 19 November 2026, but it was in no stable kernel release on 23 November. Xint says that chain also escaped a Docker container in its tests.
Is there a public exploit, and is it being used in attacks?
There is a public exploit for one bug. Rapid7's Stephen Fewer published proof-of-concept code for CVE-2026-123007 on GitHub, which Help Net Security reported on 19 November 2026. Tenable says Rapid7 describes it as constrained, and it runs code as the nginx worker, not root. No attacks were reported as of 20 November.
My server says nginx 1.24.0. Does that mean it is vulnerable?
Not necessarily, and not necessarily safe either. Ubuntu and Debian keep the old version number and backport fixes into it, so nginx -v cannot tell you. Check the package version against your distribution's security tracker. Debian and Ubuntu had no fix on 18 November 2026. Both have published patched packages since, and the fixed versions are listed in this post.