nginx HTTP/2 RCE: CVE-2026-123007 and CVE-2026-123633

CVE-2026-123007 and CVE-2026-123633 are two nginx HTTP/2 memory-safety flaws, fixed on 18 November 2026 in nginx 1.31.9 and 1.30.7, that allow unauthenticated code execution. The first affects any HTTP/2 server from 1.9.5, the second proxying servers from 1.19.7. Upgrade and restart, or set http2 off until you can.

What was disclosed

On 18 November 2026 the nginx project released 1.31.9 (mainline) and 1.30.7 (stable), fixing ten security issues. Two of them, both in the HTTP/2 module, are why this release is urgent. Wiz Research published a coordinated write-up the same day describing both as unauthenticated remote code execution, and F5 gives each a CVSS 4.0 score of 9.2, Critical. Researchers have nicknamed the pair nginx2shell and nginx2root. nginx.org rates CVE-2026-123007 major and CVE-2026-123633 medium, and its changelog describes the first as a flow control window overflow that might cause a worker segmentation fault "or might have potential other impact". Red Hat rates CVE-2026-123007 Critical with a CVSS 3.1 score of 8.1, attack complexity high. Treat the CVSS 9.2 as the planning figure: an exploit for one of them is public. Several teams found these bugs independently. The nginx changelog credits Xint.io for CVE-2026-123007 and Albert of Vexera AI for CVE-2026-123633, and Wiz lists Ikotas Labs, Metnir, Rapid7 and Xint as independent reporters alongside its own team.

The two HTTP/2 bugs

Both need HTTP/2 on a listener the attacker can reach. What else must be true decides which servers are exposed.

CVE-2026-123007: flow control underflow

HTTP/2 lets a client tell the server how much response data it may send, and nginx tracks that allowance in an unsigned connection counter. Wiz and Rapid7 describe the same root cause: when queued response data is cancelled, nginx refunds the allowance without checking the protocol maximum. A later bounds check then underflows, the counter keeps growing, and nginx eventually treats the result as a negative length, which produces an out-of-bounds memory copy in the TLS send path. Affected: nginx 1.9.5 to 1.31.8. Wiz lists it as exploitable in default configurations with HTTP/2 enabled, and Wiz and JFrog both demonstrated it over HTTPS on 64-bit servers serving ordinary static files, with no backend and no third-party modules.

CVE-2026-123633: connection use-after-free

nginx keeps idle HTTP/2 connections on a reusable list so it can close them when connection slots run short. According to Wiz, a connection is not taken off that list when a request starts. If nginx runs low on free connections, it can close one that is still serving a request, and if building the GOAWAY frame fails on that path, the connection's memory is freed while the request still uses it. The nginx changelog puts the trigger plainly: use-after-free "if worker_connections were not enough". Affected: nginx 1.19.7 to 1.31.8. Wiz, Xint and JFrog all say it needs nginx forwarding requests to an upstream, such as proxy_pass, so a static-only server is exposed to CVE-2026-123007 but not this one.

How exploitable this is today

Rapid7 published a proof of concept for CVE-2026-123007 on GitHub. It demonstrated unauthenticated code execution against a linux/amd64 Docker image running nginx 1.31.8, in about two and a half minutes, with the privileges of the worker process rather than root. Rapid7 lists real constraints: roughly 128 GB of HTTP/2 traffic, which nginx's default one-hour connection lifetime cuts off on links slower than about 300 Mbit/s, and a technique tied to a specific x86-64 glibc memcpy routine. Wiz built exploits for both bugs and is not releasing them. It says either bug can leak memory before code execution, so ASLR is not a reliable defence, and it reports an ASLR bypass against official 1.31.7 and 1.31.8 builds. Xint's nginx2root demonstration chains an nginx bug with a separate Linux kernel SCTP privilege escalation to reach root and escape a Docker container, and Xint withholds the final steps. As of 20 November, Wiz reported no observed exploitation in the wild, and CISA's Known Exploited Vulnerabilities catalog listed neither CVE. Xint counted 56.7 million nginx hosts on Shodan, of which 11.94 million reported a version, and 98.9 percent of those were in the affected range. Those are version banners, not confirmed vulnerable servers, but with a public exploit, plan as if exploitation starts this week.

Who needs to act

Anyone running nginx with HTTP/2 enabled on a client-facing listener: reverse proxies, load balancers, API gateways and plain static sites. A CDN or WAF that terminates HTTP/2 in front of nginx may block parts of the attack, according to Wiz and JFrog, but only if the origin is not also reachable directly. NGINX Plus is affected from R33 and the 37.0.0 generation. F5's fixes are 37.0.7.1 or 37.2.0.1 for CVE-2026-123633 and 37.0.8.1 or 37.3.0.1 for CVE-2026-123007. Rapid7's table lists no fix for R34 to R36, so those deployments need to move to a fixed 37 build. Products that bundle nginx, such as OpenResty, appliances and ingress controllers, stay vulnerable until their maintainers ship a new build. JFrog notes that kubernetes/ingress-nginx is archived and will not receive a fix, so clusters still running it need a different controller or a vendor that patches its own fork. Official Docker Hub images for 1.31.9 and 1.30.7 were published on 19 and 20 November.

What to do now

Upgrade to nginx 1.31.9 or 1.30.7, or newer, and restart. A reload after replacing the binary keeps the old code running in existing processes. For containers, rebuild from the patched base image and check the running image digest, not the tag. On distribution packages, the version string will not change. Ubuntu shipped fixes in USN-9159-1 on 19 November (1.24.0-2ubuntu7.20 on 24.04 LTS). Debian fixed trixie in DSA-6642-1 and bookworm in DLA-4918-1. Red Hat's bulletin RHSB-2026-019 rates RHEL 8, 9 and 10 Critical, with fixes still being released. Compare the installed package with the advisory. To find exposure, run nginx -v, then nginx -T and search the output for http2 on or an http2 parameter on a listen line. If either appears and the config also contains proxy_pass or another *_pass directive, both CVEs apply. If you cannot upgrade immediately, set http2 off; in affected server blocks on 1.25.1 or later, remove http2 from listen directives, reload, and confirm the old workers have exited. Expect side effects: gRPC needs HTTP/2. It does nothing for the other fixes in the release, including use-after-free bugs in HTTP/3 (CVE-2026-121810), the resolver (CVE-2026-123634) and the mail proxy (CVE-2026-113425); Red Hat's bulletin lists mitigations for each. For detection, watch error logs for worker processes exiting on signal 11, alert on long-lived HTTP/2 connections moving unusually large volumes of data, and investigate any process started by an nginx worker. None of these is a confirmed indicator, and Xint warns that attacks on CVE-2026-123007 may leave little in the logs.

Frequently asked questions

Is an nginx server that only serves static files affected?
Yes, by CVE-2026-123007, if HTTP/2 is enabled. Wiz and JFrog both demonstrated it over HTTPS against nginx serving ordinary static files with no backend. CVE-2026-123633 needs nginx to proxy requests to an upstream, so a static-only server is exposed to one of the two HTTP/2 bugs, not both.
Does disabling HTTP/2 fully protect the server?
It removes the attack surface for CVE-2026-123007 and CVE-2026-123633. It does not fix the other eight issues in the same release, including use-after-free bugs in HTTP/3, the resolver and the mail proxy. Treat http2 off as a stopgap until the upgrade, and re-enable HTTP/2 only after the patched binary is running.
Why does nginx -v still show an old version after patching?
Distributions backport security fixes into the version they ship, so Ubuntu 22.04 still reports nginx 1.18.0 after the update. Check the package version instead, for example with dpkg -l nginx or rpm -q nginx, and compare it with your distribution's advisory, such as Ubuntu USN-9159-1 or Debian DSA-6642-1.
Are these vulnerabilities being exploited?
As of 20 November 2026, Wiz reported no observed in-the-wild exploitation and CISA's KEV catalog did not list either CVE. Rapid7 has published a working proof of concept for CVE-2026-123007, though, and Wiz and Xint have private exploits. That combination usually shortens the time to real attacks.