Skip to content
Unauthenticated Remote Code Execution in NGINX HTTP/2

Unauthenticated Remote Code Execution in NGINX HTTP/2

Lumificyber • November 20, 2026

On November 18, 2026, F5 released security updates for two critical memory-safety vulnerabilities in the HTTP/2 implementation of NGINX Open Source and NGINX Plus. Both flaws can be triggered remotely by an unauthenticated attacker and can lead to worker process crashes, memory disclosure, or remote code execution (RCE) as the NGINX worker user. Both are rated CVSS v4.0 9.2 (Critical) and CVSS v3.1 8.1 (High).

The flaws were independently discovered by Wiz Research, Rapid7, Xint, Ikotas Labs, and Metnir. CVE-2026-123007 has existed since HTTP/2 was introduced in NGINX 1.9.5 (2015) and is reachable on any server with HTTP/2 enabled, including one that only serves static files. CVE-2026-123633 affects NGINX 1.19.7 and later when it is acting as a reverse proxy.

Why this matters now: Rapid7 has published a working proof-of-concept RCE exploit for CVE-2026-123007 on GitHub. Researchers have also shown a chain that combines CVE-2026-123007 with an unpatched Linux kernel SCTP flaw to gain root, including from inside a container. No in-the-wild exploitation has been reported, and neither CVE is in CISA's KEV catalog as of publication. NGINX sits in front of a large of internet-facing applications and APIs, so Lumifi recommends treating internet-facing NGINX with HTTP/2 enabled as an emergency patch priority.

Threat hunting: Lumifi's analyst team is reviewing indicators of compromise (IOCs) as researchers and vendors release them, and is building threat hunts to look for exploitation activity across customer environments.

Detection engineering: Lumifi's Content team is building behavior-based detections from the technical details now public, so attacks can be caught even where specific IOCs are not yet available.

Lumifi will update this advisory as new indicators emerge, distribution patches ship, exploitation activity is observed, or CISA adds either CVE to its Known Exploited Vulnerabilities (KEV) catalog.

Vulnerability Details

CVE-2026-123007 — HTTP/2 Flow-Control Integer Underflow (CWE-191)

A flaw in NGINX's HTTP/2 flow-control accounting lets an attacker push the connection send window past its protocol limit. Cancelling queued DATA frames restores send credit without checking the window maximum, and a SETTINGS change that overflows a stream window resets only that stream instead of closing the connection. A subsequent WINDOW_UPDATE check uses unsigned arithmetic that wraps, so NGINX eventually treats the counter as a negative length and performs out-of-bounds memcpy reads and writes.

Affected: NGINX Open Source 1.9.5 through 1.31.8, wherever HTTP/2 is enabled — including servers that only serve static content.

Exploitation: The public PoC leaks heap and glibc pointers in the TLS response to defeat ASLR, then redirects a request-pool cleanup callback to run an attacker-chosen command. Wiz confirmed RCE on official 1.31.7 and 1.31.8 builds over TLS on 64-bit systems, and Xint reports success against AWS, Google Cloud, and Azure under normal traffic.

Constraints (Rapid7 PoC): 128 GB of HTTP/2 data over one connection ( 2 minutes at 10 Gbit/s, 17 minutes at 1 Gbit/s). Links slower than 300 Mbit/s will likely hit the default one-hour connection limit. The current technique depends on an AVX-512 glibc memcpy routine on x86-64, and proxied HTTP/2 connections are unlikely to carry the required frames. Other teams used different techniques, so these limits should not be relied on as a mitigation.

CVE-2026-123633 — HTTP/2 Connection Use-After-Free (CWE-416)

A use-after-free in NGINX's HTTP/2 connection lifecycle management. When a worker runs low on available worker_connections and starts draining reusable connections, a proxied request can interact with an HTTP/2 connection that is still marked reusable after it has been freed. Wiz reported confirmed RCE with an ASLR bypass to F5.

Affected: NGINX Open Source 1.19.7 through 1.30.6 and 1.31.0 through 1.31.8.

Conditions: HTTP/2 enabled, NGINX proxying client requests to an upstream backend, and the worker running short of worker_connections. A static-content server with no upstream proxying does not meet F5's documented conditions.

Public PoC: Rapid7 researcher Stephen Fewer published a crash trigger and a full RCE chain for CVE-2026-123007, tested against a linux/amd64 Docker image of NGINX 1.31.8 with HTTP/2 and TLS.

Withheld exploits: Wiz and Xint have withheld their full exploit code.

Fake exploits: Precursor Security warns that fake "nginx2root" exploit repositories are circulating on GitHub. Do not run untrusted PoC code outside an isolated lab.

Privilege escalation: Xint's "NGINX2Root" chain pairs CVE-2026-123007 with a use-after-free in the Linux kernel SCTP code (present since Linux 4.15) to reliably gain root, including from inside a Docker container. No kernel patch or CVE for the SCTP bug was public at disclosure.

In the wild: No confirmed exploitation reported; not in CISA KEV as of November 18, 2026. Lumifi expects scanning and exploit attempts to follow quickly given the public PoC.

1. Patch (Priority: Immediate)

Inventory all NGINX instances, prioritizing internet-facing reverse proxies, load balancers, API gateways, and Kubernetes ingress. Run nginx -v and nginx -T | grep -i http2 to confirm version and HTTP/2 use.

Upgrade NGINX Open Source to 1.30.7 or 1.31.9, and NGINX Plus to 37.0.8.1 or 37.3.0.1. Upgrade F5 NGINX Ingress Controller to 5.8.0.

Fully restart NGINX after upgrading (systemctl restart nginx). A reload leaves old worker processes serving existing connections.

For distribution packages, compare against the vendor's advisory — backported fixes may not change the upstream version number.

Rebuild and redeploy container images that bundle NGINX or its forks.

2. Temporary Mitigation If You Cannot Patch

Disable HTTP/2: on NGINX 1.25.1 and later set http2 off; in each server block; on older builds remove http2 from listen Validate with nginx -t, restart, and confirm HTTP/2 is no longer negotiated.

Community ingress-nginx: set use-http2: "false" in the controller ConfigMap.

On hosts that don't need SCTP, block the module by adding install sctp /bin/false under /etc/modprobe.d/ to reduce the root-escalation path. This does not unload a module that is already loaded.

A CDN or WAF that terminates HTTP/2 before NGINX may partially disrupt exploitation, but it is not a substitute for patching. Verify there are no origin paths that bypass it.

Disabling HTTP/2 does not address the other CVEs fixed in the same release (HTTP/3, DNS resolver, mail proxy). See Related Vulnerabilities below.

3. Detection and Threat Hunting

Unexpected NGINX worker crashes or segmentation faults ("worker process exited on signal 11") in error logs. Treat these as investigative leads, not proof of compromise.

Child processes spawned by NGINX worker processes (for example sh, bash, curl, wget, python), and new files, cron jobs, or scheduled tasks created by the NGINX service user.

Unexpected outbound connections from NGINX worker processes.

Long-lived HTTP/2 connections that transfer unusually large volumes of data (tens to hundreds of GB from a single client) and sustained worker_connections exhaustion.

Standard access logs may not capture the HTTP/2 frame sequences involved. Use protocol-aware network telemetry where available.

Related Vulnerabilities in the Same Release

The November 18 NGINX security release (1.30.7 / 1.31.9) also fixes three related memory-safety flaws that Xint groups with the two HTTP/2 CVEs under the name "NGINX2Root", each rated CVSS v4.0 9.2. Upgrading addresses all of them:

CVE-2026-121810 — Use-after-free in HTTP/3 (QUIC) with upstream forwarding. Mitigate by disabling HTTP/3 listeners.

CVE-2026-123634 — Use-after-free in the DNS resolver (proxy_pass with resolver and mirror). Mitigate with fixed upstream groups.

CVE-2026-113425 — Use-after-free in the mail proxy auth_http module. Mitigate by binding mail listeners to loopback or firewalling them.

Tony Simone, Field CISO of Lumifi, curates the top cybersecurity news every weekday, delivering the latest breaches, alerts, and industry developments in the Daily Blast, your go-to morning source for InfoSec updates.