Skip to content
Speedchilli
Critical· 9.2Public exploit code

nginx2root: remote code execution in nginx HTTP/2

CVE-2026-123007 · CVE-2026-123633 · Updated

A memory-corruption bug in nginx's HTTP/2 flow-control code lets an unauthenticated attacker corrupt the heap by sending crafted HTTP/2 frames, which can lead to remote code execution. It has been present since nginx 1.9.5 (2015). A related HTTP/2 use-after-free, CVE-2026-123633, was fixed at the same time and has the same workaround. Any nginx server with HTTP/2 enabled is exposed until it is upgraded.

Latest update · 20 November 2026

No exploitation in the wild reported

Public exploit code is available, but no attacks have been reported and the CVE is not in CISA KEV.

Product
nginx Open Source, NGINX Plus and products built on them
Exploitation
Public exploit code exists. No exploitation in the wild reported as of 20 November 2026.
First published
23 November 2026
Last updated
20 November 2026

CVE-2026-123007

CWE-787

Memory corruption in HTTP/2 flow control

  • CVSS 4.0: 9.2(F5)
  • CVSS 3.1: 8.1(Red Hat)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

CVE-2026-123633

CWE-825

Use-after-free in HTTP/2 when proxying

  • CVSS 4.0: 9.2(F5)
  • CVSS 3.1: 8.1(Red Hat)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

What to do

  1. Upgrade nginx

    Move to nginx 1.30.7 (stable) or 1.31.9 (mainline), your distribution's fixed package, or the fixed NGINX Plus release. This also fixes the other nginx flaws released on 18 November (listed below). After reloading, confirm old worker processes have exited.

  2. If you cannot upgrade yet, turn HTTP/2 off

    This blocks CVE-2026-123007 and CVE-2026-123633 only. It does not fix the other flaws in the same release. On nginx 1.25.1 and later, add http2 off; and also remove http2 from every listen line: in one lab test http2 off; had no effect while a listen … http2 parameter remained. On versions before 1.25.1 the http2 directive does not exist, so just remove http2 from the listen lines.

    server {
        listen 443 ssl;          # no "http2" here
        listen [::]:443 ssl;
        http2 off;               # nginx 1.25.1 and later
        ...
    }
  3. Confirm the change took effect

    Reload nginx, check that no workers are stuck in “shutting down” (they keep serving HTTP/2 to existing clients), and test negotiation from outside your network with the ALPN check below.

Who is affected

  • HTTP/2 is enabled on at least one listener (http2 on; in a server block, or http2 on a listen line).
  • The attacker can reach nginx over HTTP/2 directly. A CDN or WAF that terminates HTTP/2 in front of nginx may block parts of the attack, but does not remove the need to patch.
  • No authentication is required. Wiz demonstrated exploitation of CVE-2026-123007 against a server only serving static files, with no backend and no third-party modules.
  • CVE-2026-123633 additionally needs nginx to be proxying to an upstream while running low on worker connections.

Affected versions

  • nginx Open Source, stable

    Affected: 1.30.0 – 1.30.6

    Fixed in: 1.30.7

  • nginx Open Source, mainline

    Affected: 1.31.0 – 1.31.8

    Fixed in: 1.31.9

  • nginx Open Source, older branches

    Affected: 1.9.5 – 1.29.x

    Fixed in: No fix. Upgrade to 1.30.7 or 1.31.9

  • NGINX Plus 37.0.x

    Affected: Before 37.0.8.1

    Fixed in: 37.0.8.1

  • NGINX Plus 37.1.x – 37.3.x

    Affected: Before 37.3.0.1

    Fixed in: 37.3.0.1

  • NGINX Plus R33 – R36

    Affected: Affected

    Fixed in: Check F5 K000163926

  • NGINX Ingress Controller (F5)

    Affected: Earlier releases

    Fixed in: 5.8.0 (OSS images)

  • NGINX Gateway Fabric

    Affected: Earlier releases

    Fixed in: 2.9.0

  • Community ingress-nginx

    Affected: All

    Fixed in: No fix. Project archived March 2026

Linux distributions backport fixes without changing the version string, so nginx -v alone does not tell you whether a distro package is fixed. Check the package changelog instead (see “How to check”). Ubuntu 26.04 was fixed on 19 November (USN-9159-1). Red Hat is shipping fixes for RHEL 8, 9 and 10 (RHSB-2026-019). Debian, Alpine, Ubuntu 22.04/24.04 and Amazon Linux 2023 were still pending when last checked on 18 November.

Exploitation

  • The name nginx2root comes from Xint, which reported the set of flaws. Wiz and Rapid7 independently found the HTTP/2 issues.
  • Researchers at Wiz achieved code execution and bypassed ASLR on official 64-bit nginx 1.31.7 and 1.31.8 builds. Wiz has not released its exploit.
  • Red Hat and Qualys report that working exploit code is publicly available.
  • As of 20 November 2026, no exploitation in the wild had been reported and the CVE was not in CISA's Known Exploited Vulnerabilities catalogue.

How to check

Is the HTTP/2 module built in?

If this prints nothing, the build has no HTTP/2 support.

nginx -V 2>&1 | grep -o -- '--with-http_v2_module'

Is HTTP/2 enabled in the config?

Lists every line that turns HTTP/2 on. Run as root so nginx -T can read all included files.

sudo nginx -T 2>&1 | sed 's/#.*//' | grep -nE 'listen[[:space:]].*http2|^[[:space:]]*http2[[:space:]]+on[[:space:]]*;'

Does the server actually offer HTTP/2?

Run from outside your network. “ALPN protocol: h2” means HTTP/2 is being negotiated.

openssl s_client -connect HOST:443 -servername HOST -alpn h2 </dev/null 2>&1 | grep -E 'ALPN protocol:|No ALPN negotiated'

Has your distro package been patched?

A non-zero count (Debian/Ubuntu) or any output (RHEL family) means the fix is in the installed package.

apt changelog nginx 2>/dev/null | grep -cE "CVE-2026-(123007|123633)"
rpm -q --changelog nginx | grep -E "CVE-2026-(123007|123633)"

F5 fixed these at the same time. Upgrading fixes all of them; turning HTTP/2 off does not. Severity is nginx.org's rating.

  • CVE-2026-123634Use-after-free in the resolver during response processing (medium). Affects 0.6.18 – 1.31.8.
  • CVE-2026-121810Use-after-free in HTTP/3 (medium). Affects 1.25.0 – 1.31.8.
  • CVE-2026-118899Infinite loop reading a request body over TLS 1.3 (major). Affects 1.13.0 – 1.31.8.
  • CVE-2026-113425Use-after-free in the mail proxy module (major). Affects 0.5.33 – 1.31.8.
  • CVE-2026-120993NULL pointer dereference with PROXY protocol v2 (minor). Affects 1.31.4 – 1.31.8; fixed in 1.31.9 only.
  • CVE-2026-125283Buffer overflow using alias with try_files (minor). Affects 0.9.6 – 1.31.8.
  • CVE-2026-123640Insufficient validation in stream ssl_preread (minor). Affects 1.15.2 – 1.31.8.
  • CVE-2026-120967SNI bypass with client certificate validation in stream (medium). Affects 1.25.5 – 1.31.8.

Updates

  1. No exploitation in the wild reported

    Public exploit code is available, but no attacks have been reported and the CVE is not in CISA KEV.

  2. Red Hat and Ubuntu respond

    Red Hat published bulletin RHSB-2026-019 and is expediting fixes for RHEL 8, 9 and 10. Ubuntu 26.04 received a fixed package (USN-9159-1).

  3. F5 releases fixes and discloses the flaws

    nginx 1.30.7 and 1.31.9 and NGINX Plus fixes released, with five researcher teams credited (Wiz, Ikotas Labs, Metnir, Rapid7 and Xint).

Notes on sources

  • Severity ratings differ: nginx.org rates CVE-2026-123007 “major” and CVE-2026-123633 “medium”. F5 scores both 9.2 (CVSS 4.0), and Red Hat rates both Critical for RHEL. We follow the CVSS scores.
  • Wiz describes the root cause as an integer underflow in send-window accounting. Red Hat classifies the result as a heap-based buffer overflow (CWE-787). Both describe the same bug.
  • NGINX Plus R-series fix status varies between sources. Check F5 article K000163926 for your exact release.

References

Need a hand with this?

Our engineers can check your exposure, apply fixes through your change process and confirm the result.