Skip to content

Checking your reading list…

Retry verification

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

NGINX2Root: 11-Year-Old Nginx HTTP/2 Flaw Chains to Host Root

NGINX2Root: 11-Year-Old Nginx HTTP/2 Flaw Chains to Host Root

Five unauthenticated memory corruption vulnerabilities in Nginx (CVE-2026-123007 etc.) allow remote code execution as worker; chaining with an unpatched Linux kernel SCTP use-after-free yields host root and container escape. Affected versions 1.9.5–1.31.8; patches in 1.31.9/1.30.7; mitigation includes disabling HTTP/2/HTTP/3.

Overview

On November 18, F5 released five Nginx CVEs in a single day, accompanied by fixed versions 1.31.9 (mainline) and 1.30.7 (stable). The vulnerability cluster, dubbed NGINX2Root by discoverer Xint, consists entirely of memory-safety issues that require no authentication and can be triggered remotely. All five flaws let an attacker execute arbitrary commands with the privileges of the nginx worker process. Critically, Xint demonstrated that chaining one Nginx flaw (CVE-2026-123007) with an unpatched Linux kernel SCTP use-after-free (present since kernel 4.15, 2018) yields full host root access, including escape from Docker containers — validated on AWS, GCP, Azure, and bare metal.

No in-the-wild exploitation has been observed, and the vulnerabilities are not yet in CISA's Known Exploited Vulnerabilities (KEV) catalog, giving operators a window to patch.

The Five Vulnerabilities

The five CVEs are independent; each requires different configuration conditions. The widest impact is CVE-2026-123007 , which only needs HTTP/2 enabled — a feature shipped since Nginx 1.9.5 (September 2015). The remaining four are use-after-free (UAF) bugs with stricter prerequisites:

CVE-2026-123007 – HTTP/2 flow control; trigger: HTTP/2 enabled; affected: 1.9.5 – 1.31.8

CVE-2026-123633 – HTTP/2 use-after-free; trigger: HTTP/2 + upstream proxying + worker connection exhaustion; affected: 1.19.7 – 1.31.8

CVE-2026-123634 – DNS resolver; trigger: proxy_pass with variables + SSI or mirror subrequests; affected: 0.6.18 – 1.31.8

CVE-2026-121810 – HTTP/3; trigger: HTTP/3 enabled + upstream proxying; affected: 1.25.0 – 1.31.8

CVE-2026-113425 – Mail proxy; trigger: proxy on + auth_http; affected: 0.5.33 – 1.31.8

Nginx rated only two as major ; the others are medium . Independent discovery timeline: Xint found the HTTP/2 flow-control bug on October 11, reported via HackerOne on October 16 (reached Nginx team October 27); Wiz independently confirmed a second RCE on October 21; Xint completed patch verification November 10; coordinated disclosure November 18.

Exploit Chain for CVE-2026-123007

The most severe flaw is an integer overflow leading to heap buffer overflow, exploited in four steps:

Step 1: Inflate the Send Window

HTTP/2 uses flow-control windows. Nginx deducts queued response bytes from the connection-level send window; when a stream is cancelled ( RST_STREAM), the cleanup function returns the quota to the connection window. The bug: this "return" operation does not verify that the result stays within the HTTP/2 spec maximum ( 0x7fffffff). An attacker queues many responses, raises the connection window with WINDOW_UPDATE frames, then cancels the streams — causing the quota to be counted twice and the window to exceed the 31-bit limit.

Step 2: Integer Underflow

After the window exceeds the limit, the calculation NGX_HTTP_V2_MAX_WINDOW - h2c->send_window (unsigned) underflows, wrapping to a huge positive value. Nginx now believes it has near-infinite send quota and accepts arbitrary WINDOW_UPDATE frames, pushing the window to any 64-bit value.

Step 3: Heap Out-of-Bounds Copy

A signed negative distance is incorrectly converted to an enormous unsigned copy length. Via the TLS output path's memcpy, this triggers heap out-of-bounds read/write. The attacker can leak addresses to bypass ASLR and corrupt heap metadata, overwriting cleanup callback pointers to achieve arbitrary command execution as the nginx worker.

Step 4: From Worker to Root

Xint chained the worker RCE with a Linux kernel SCTP subsystem UAF (no CVE assigned, no patch released as of disclosure). This second bug has existed since kernel 4.15 (2018). The full chain — from containerized nginx worker to host root — was verified on major cloud providers and bare metal. For Kubernetes ingress controllers, compromise of a single ingress controller equals cluster takeover.

Real-World Risk Assessment

Rapid7 estimates a full RCE requires transmitting ~128 GB of HTTP/2 data, taking ~17 minutes on a 10 Gbit/s link. Below ~300 Mbps the attack is impractical. For random internet scanning this is uneconomical, but targeted attacks against production reverse proxies are feasible because traffic is continuous and attackers have unlimited time. The other four vulnerabilities have even higher exploitation barriers (e.g., requiring control of authoritative DNS servers or precise worker-connection exhaustion), yet both Wiz and Xint produced working ASLR-bypass exploits; PoCs are public on GitHub (marked for same-host Docker demo only).

Bottom line: patch now, but no need for panic-driven all-nighters.

Mitigation Steps

1. Inventory & Exposure Check

Test whether your endpoint negotiates HTTP/2:

openssl s_client -connect your-domain.com:443 -alpn h2 2>/dev/null | grep ALPN

Output ALPN protocol: h2 means HTTP/2 is active and you are in scope for CVE-2026-123007 and CVE-2026-123633. If behind a CDN, test the origin directly — if the origin only speaks HTTP/1.1, the HTTP/2 attack path is blocked.

Check the full package version , not just nginx -v; distros may backport patches without changing the version string. Cross-reference with your distribution's security advisories.

2. Preferred Fix: Upgrade

Open Source Mainline 1.31.0–1.31.8 → 1.31.9

Open Source Stable 1.9.5–1.30.6 (including older branches like 1.28) → 1.30.7

NGINX Plus 37.1+ (37.1.0–37.2.0.1) → 37.3.0.1

NGINX Plus 37.0 (37.0.0–37.0.7.1) → 37.0.8.1

Plus R34–R36 have no dedicated fix; contact F5. Backup config and data before upgrade; restart service after.

The same release also fixes five additional issues: TLS 1.3 request-body read loop, alias + try_files buffer overflow, PROXY protocol v2 null-pointer dereference, etc.

3. Temporary Mitigation: Disable Features

If immediate upgrade is impossible, disable the vulnerable protocols in nginx.conf:

# Block CVE-2026-123007 and CVE-2026-123633
http2 off;
# Also remove 'http2' from listen directives

# Block CVE-2026-121810
http3 off;

Caveat: This only blocks two of the five vulnerabilities; the other three remain exposed. It buys time, not a solution.

4. Detection Guidance

No mature attack signatures exist yet. Monitor for:

Unexpected worker process crashes

Abnormally high volumes of WINDOW_UPDATE frames

Suspicious outbound connections from the nginx host

Container escape indicators in containerized deployments

Conclusion

NGINX2Root underscores a shifting landscape: high-severity base-software vulnerabilities are appearing at unprecedented density (PHP2Shell → Java4Shell → NGINX2Root), with discovery-to-exploit cycles shrinking from months to days, partly driven by AI-assisted vulnerability research. The era of "wait for the patch window" is over. Operations teams must build hour-level processes for asset inventory, impact assessment, and remediation deployment — a capability that outlasts any single vulnerability.

If you still run Nginx 1.30.x with HTTP/2 enabled, verify your version and patch status today.

About this article

For questions about attribution, corrections or content rights, please contactadmin@besthub.devand we will review it promptly.

NginxLinux kernelRCEHTTP/2patch managementvulnerability analysiscontainer escapememory corruptionSCTPCVE-2026-123007

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion