ENGINEERING

NGINX2Root (CVE-2026-123007): find every nginx, check its version and whether HTTP/2 is on

Xint disclosed NGINX2Root on November 18, 2026: five nginx flaws that let an attacker with no credentials run code as an nginx worker. F5 published advisories the same day and nginx released 1.31.9 and 1.30.7. The lead flaw, CVE-2026-123007, is an integer overflow in HTTP/2 flow control in every official nginx from 1.9.5 (2015) through 1.31.8. F5 scores it 9.2 under CVSS 4.0 and 8.1 under CVSS 3.1. A public exploit for it showed up on GitHub the same day. Nobody has reported exploitation in the wild, and none of the five is in CISA’s KEV catalog yet.

Xint also found a Linux kernel SCTP use-after-free that takes a worker foothold to root. It has no CVE and no fix yet.

The five flaws and HTTP/2

CVENeeds HTTP/2
CVE-2026-123007 (F5 K000163926)Yes
CVE-2026-123633Yes, with requests passed to a backend
CVE-2026-123634No
CVE-2026-121810No
CVE-2026-113425No

Turning HTTP/2 off blocks two of the five. It’s a stopgap for the worst one, and the other three still need the update.

Where the fixes are

ProductFixed
nginx Open Source mainline1.31.9
nginx Open Source stable1.30.7
NGINX Plus37.3.0.1 and 37.0.8.1. F5 lists no fix for R34 to R36.
UbuntuNo fixed package on November 18. Ubuntu’s tracker lists nginx as vulnerable, including 24.04’s 1.24.0.
DebianBookworm (1.22.1-9+deb12u9) and trixie (1.26.3-3+deb13u7) vulnerable on November 18. Unstable is fixed in 1.30.6-4.

Distribution packages keep their old version number when they backport a fix, so on Ubuntu, Debian and RHEL the package changelog tells you whether you’re fixed, not nginx -v.

Check one server

nginx -v
sudo nginx -T 2>/dev/null | grep -nE '^\s*(http2\s+on|listen[^;]*\shttp2)'
zgrep -c CVE-2026-123007 /usr/share/doc/nginx*/changelog.Debian.gz   # Debian, Ubuntu
rpm -q --changelog nginx | grep -c CVE-2026-123007                    # RHEL and rebuilds

nginx -T prints the whole configuration with every include, so it catches HTTP/2 turned on in a site file that /etc/nginx/nginx.conf never mentions.

Keep the ^\s* in the pattern. Without it the grep also matches a commented-out # http2 on;.

To turn HTTP/2 off until you can update:

Then sudo nginx -t && sudo systemctl reload nginx.

On Windows, nginx is a zip that gets unpacked anywhere, often inside another product’s folder. nginx.exe -v has to run from the folder it’s in, because it finds conf\ relative to itself.

What I found in the lab

I ran the RFF check against real builds in throwaway containers: the official nginx images for 1.30.6, 1.30.7, 1.31.8 and 1.31.9, Ubuntu 24.04’s own nginx 1.24.0, and Rocky 9’s 1.20.1. I didn’t try the exploit.

On Windows I unpacked the nginx.org zips for 1.24.0, 1.31.8 and 1.31.9 into six folders on a Windows Server 2025 lab VM, started one of them, and ran the check as SYSTEM. All six verdicts were right, and it marked the running copy.

What to do

  1. Find every nginx, including copies inside other products and containers you build yourself.
  2. Update nginx.org builds to 1.31.9 or 1.30.7.
  3. On Ubuntu and Debian, turn HTTP/2 off now and install your distribution’s package when it ships.
  4. Start with servers that face the internet.
  5. Watch for the SCTP kernel fix too. Until it ships, a compromised worker can still become root.

Doing it with RFF

The RFF Script Library has two new entries, “NGINX2Root (CVE-2026-123007) - Find NGINX, Its Version and HTTP/2”, one for Linux and one for Windows. The Linux one checks the binaries on PATH, the usual install paths and the one behind each running nginx, and reads the package changelog for a backported fix. The Windows one walks every fixed drive for nginx.exe. Both run nginx -T to see whether HTTP/2 is on, and report each copy as vulnerable, needing the update, fixed, not affected, or NGINX Plus to check with F5. I tested them on the containers and the lab VM above.

RFF is free for your first 100 endpoints: getrff.com.

Sources

One email per new post, nothing else. Unsubscribe in one click. Or use the RSS feed.

Comments

Comments use GitHub Discussions, so you'll need a GitHub account to post. Corrections are especially welcome.