NGINX nginx2root flaw: what to do if your server uses HTTP/2
By Jorge Graells · November 18, 2026 at 7:05 PM UTC · 6 min read
NGINX has fixed nginx2root (CVE-2026-123007), an HTTP/2 flaw that lets attackers run code on the server without logging in. It affects almost every release since 2015 and is fixed in 1.31.9 and 1.30.7. No known attacks yet. What to check and what to do.
NGINX nginx2root flaw: what to do if your server uses HTTP/2
- Type
- News
- Author
- Jorge Graells
- Date
- Reading time
- 6 min read
- Topics
- Cybersecurity
- Subjects
Summary
NGINX has fixed nginx2root (CVE-2026-123007), an HTTP/2 flaw that lets attackers run code on the server without logging in. It affects almost every release since 2015 and is fixed in 1.31.9 and 1.30.7. No known attacks yet. What to check and what to do.
NGINX, the web server behind a huge share of the websites, online shops and APIs we use every day, released versions 1.31.9 and 1.30.7 on Wednesday, November 18, to fix a serious flaw in its HTTP/2 support. The bug, CVE-2026-123007, nicknamed nginx2root, lets an attacker run code on the server without logging in, as long as HTTP/2 is enabled, according to The Hacker News1. It has been in the code since version 1.9.5, from September 2015.
There are no known attacks so far, but the message is to update now. I will update this story if F5, the company that owns NGINX, or CISA release new details.
◢What is nginx2root?
HTTP/2 is the version of the web protocol that almost every modern site uses to load faster. According to the flaw description reproduced on Ubuntu's security page2, certain traffic can push the HTTP/2 flow control window past its allowed limit, which can cause a heap buffer overflow. Usually the NGINX process handling the connections just crashes, but an attacker can also corrupt its memory or execute code.
F5 says code execution is possible where ASLR, a system protection that places memory at random addresses, is turned off or can be bypassed. Wiz researchers say they bypassed it and ran code in their tests, and Xint's researchers say they did it with nothing more than a reachable HTTP/2 port, according to The Hacker News.
The attacker's code runs with the permissions of an NGINX worker process, not as an administrator. Getting root on the machine takes a second way to raise privileges, according to Luxembourg's CERT (CIRCL). In Xint's tests that came from a separate bug in the Linux kernel's SCTP code, even with NGINX running inside a Docker container.
It scores 9.2 out of 10 on CVSS 4.0, and Ubuntu rates it high priority.
◢Which versions are affected?
Every NGINX Open Source release from 1.9.5 through 1.31.8, according to the NGINX advisories cited by The Hacker News. NGINX Plus is affected too. These are the fixed versions:
- ▹NGINX Open Source mainline (1.31.0 to 1.31.8): fixed in 1.31.9.
- ▹NGINX Open Source 1.9.5 to 1.30.6, including older branches such as 1.28: fixed in 1.30.7.
- ▹NGINX Plus 37.1.0 to 37.2.0.1: fixed in 37.3.0.1. NGINX Plus 37.0.0 to 37.0.7.1: fixed in 37.0.8.1.
- ▹NGINX Plus R34 to R36: no fix listed.
The official NGINX images on Docker Hub already have 1.31.9 and 1.30.7 tags, Alpine variants included. Distributions are slower: as of November 18, Ubuntu lists the nginx package as vulnerable on every release from 16.04 to 26.10, and Debian had not shipped fixed packages either, according to The Hacker News.
◢Four more flaws fixed at the same time
The same releases fix four other flaws that, according to the vendor, can also lead to code execution under the same ASLR condition, and they also score 9.2. Each one only affects a specific setup:
- ▹CVE-2026-123633: HTTP/2 enabled, with requests passed to a backend while the worker is running low on
worker_connections. - ▹CVE-2026-123634: a proxied server name built from variables, plus an SSI include or a
mirrorsubrequest to a location that looks up the same name. - ▹CVE-2026-121810: HTTP/3 enabled.
- ▹CVE-2026-113425: NGINX used as a mail proxy.
◢Is it being exploited yet?
Not as far as anyone knows. Neither the vendor nor the Wiz and Rapid7 researchers have reported attacks, and the flaw was not in CISA's Known Exploited Vulnerabilities catalog as of November 18, according to The Hacker News.
There is a public proof of concept on GitHub, although its notes say it only works to demonstrate the attack against a freshly started Docker container on the same machine. Rapid7's version needs about 128 GB of HTTP/2 traffic and took two and a half minutes in its demonstration. On links slower than about 300 Mbit/s it would run past NGINX's default one-hour connection limit and fail. It is not a trivial attack, but this month's experience with SSHole in OpenSSH shows the jump from proof of concept to real attacks can be very fast.
◢How do I know if my server is affected?
If your company runs its own website, shop or API, ask whoever manages your servers, or your provider, today whether you use NGINX and which version.
HTTP/2 is on if any listen directive includes http2 or if http2 on is set. To check from outside, openssl s_client -alpn h2 against the server prints ALPN protocol: h2 when it accepts HTTP/2. If you sit behind a CDN, test the origin server itself, because an origin that only accepts HTTP/1.1 cannot be attacked over HTTP/2.
Watch out for distribution packages: they can carry the fix without changing the number nginx -v reports. Compare the full package version with your distribution's advisory.
◢What to do now
- ▹Upgrade to NGINX 1.31.9 or 1.30.7 (or the fixed NGINX Plus build), or rebuild your containers from the new official images.
- ▹Then restart NGINX fully or use its live binary upgrade. A plain
reloadleaves the old executable running. - ▹If you cannot upgrade today, turn off HTTP/2 as a temporary measure, as CIRCL recommends. On NGINX 1.25.1 or later, set
http2 off;in each affectedserverblock and removehttp2from thelistendirectives. On 1.9.5 through 1.25.0, removehttp2fromlisten(listen 443 ssl http2;becomeslisten 443 ssl;). Then restart and rerun the openssl check. This blocks the two HTTP/2 flaws, not the other three. - ▹Turn off HTTP/3 if you use it and do not need it, avoid SSI and
mirrorwith server names built from variables, and limit the mail proxy to trusted networks. - ▹On hosts that do not use SCTP, stop its kernel module from loading by adding
install sctp /bin/falseto a.conffile in/etc/modprobe.d/. It does not unload a module that is already loaded.
To spot a possible attack, CIRCL suggests looking for NGINX workers that start unexpected programs or exit abnormally leaving core dumps, long-lived HTTP/2 connections with heavy incoming traffic but few logged requests, and unusual outbound connections or DNS lookups. A clean access log rules nothing out, because HTTP/2 control frames do not show up there as requests.
◢What to learn from this
A flaw that sat for eleven years in software as widely used as NGINX is a reminder that no software is ever finished. What makes the difference is knowing what you have deployed and being able to update it in hours, not weeks. If this story made you unsure whether you run NGINX, that is the first job.
The second lesson is that every feature you switch on is attack surface. HTTP/3, SSI or the mail proxy should only be on if someone really needs them.
And if you do not need to expose something, do not. If you want your team to understand why this matters, that is what I work on in my cybersecurity training.
Related documents
- Article
GL.iNet routers hacked via GoodCloud: how to check yours
On 20 November an attacker used GoodCloud, GL.iNet's remote management cloud, to run root commands on customers' routers and KVMs. GL.iNet has shipped fixed firmware, but updating does not clean a device that was already hit. What happened, how to check and what to do.
- News
pCloud Pass cyberattack: what we know and what to do if you use it
pCloud has confirmed a cyberattack on its pCloud Pass password manager after users received alerts about unknown devices connecting to their accounts. It says some email addresses were exposed and its cloud storage was not affected. What we know, what we don't and what to do.
- News
SAP confirms a security incident in its GitHub environment
SAP has confirmed a cybersecurity incident after reports that attackers stole employee tokens and got into its GitHub development environment. It says it sees no access to customer data. What we know, what we don't and what to watch if your company runs SAP.