You
Back/News
2 min left
NewsTech

Critical nginx flaw lets attackers run code through HTTP/2: update to 1.30.7 or 1.31.9

CVE-2026-123007 affects nginx from 1.9.5, released in 2015, on any server with HTTP/2 switched on. Rapid7 and F5 disclosed it on November 18, and no attacks using it have been reported yet.

Server racks in a data centre

Carl Lender, CC BY 2.0, Wikimedia Commons

A flaw in how nginx handles HTTP/2 can let an attacker corrupt the server's memory and run code with the rights of an nginx worker process. Rapid7 and F5, which owns nginx, disclosed it on November 18 as CVE-2026-123007, scored 9.2 under CVSS 4.0. Stephen Fewer of Rapid7 found it, and Wiz Research found the same bug with Wiz Atlas, its AI tool for hunting flaws.

Graphic: CVE-2026-123007 scores 9.2 under CVSS 4.0. It affects nginx from 1.9.5, released in 2015, and is fixed in 1.30.7 on the stable branch and 1.31.9 on mainline.

nginx runs more than 225 million websites, Wiz says, citing Netcraft's September survey. The faulty code goes back to version 1.9.5 in 2015, so most servers with HTTP/2 switched on are exposed. Servers that speak only HTTP/1.1 are not.

How the attack works

HTTP/2 lets a client tell the server how much data it can take at a time. Rapid7 found that when queued response data is cancelled, nginx's count of that allowance can drop below zero and wrap around, and nginx then copies data with an invalid length. Wiz showed it running code on an nginx server that did nothing more than serve static files over HTTPS.

It isn't easy to pull off. The attack needs about 128 GB of HTTP/2 traffic, around two minutes on a 10 Gbit/s link, and nginx's default limit of one hour per connection stops it on links slower than about 300 Mbit/s. No attacks using it had been reported as of November 18, and it was not on CISA's list of exploited flaws.

Which versions to install

The open-source fixes are 1.31.9 on the mainline branch and 1.30.7 on the stable branch. Every release from 1.9.5 to 1.30.6, and from 1.31.0 to 1.31.8, is affected. For NGINX Plus, the fixed releases are 37.0.8.1 and 37.3.0.1; R34 to R36 are affected and have no fix.

After updating, restart nginx rather than reloading it: a reload leaves running worker processes on the old code. Where an update has to wait, switching HTTP/2 off closes the hole until then, at the cost of HTTP/2's speed: http2 off; on 1.25.1 and later, or removing http2 from the listen lines on older releases.

A second flaw

The same releases fix CVE-2026-123633, also scored 9.2: a use-after-free in HTTP/2 that affects servers set up as a proxy, from 1.19.7 to 1.31.8.

Sources

  1. Rapid7: CVE-2026-123007: critical nginx HTTP/2 integer underflow leads to RCE (fixed)rapid7.com
  2. Wiz: nginx HTTP/2 remote code execution vulnerabilitieswiz.io
  3. NetSPI: NGINX HTTP/2 critical remote code execution vulnerability (CVE-2026-123007)netspi.com
Try asking
↑↓ move Enter open