In NGINX's HTTP/2 flow-control logic, refunding unsent data credit for a canceled stream skips a bounds check, letting a counter exceed its protocol maximum. A chain of signed/unsigned integer conversions that all trust that counter then collapses into an out-of-bounds heap memory copy. It triggers unauthenticated, on any NGINX with HTTP/2 enabled — no backend application or third-party module required — even a server doing nothing but serving static files.
HTTP/2 multiplexes multiple requests (streams) over a single connection. If one stream pushes response data too fast or in too large a volume, the client can't keep up and its buffers back up. HTTP/2 solves this with a credit system called flow control. (Related: University launches $5m smart system that checks who is...)
This counter has a protocol-defined ceiling — NGX_HTTP_V2_MAX_WINDOW. Under normal operation, it should never be able to exceed that ceiling.
Walking through the three-stage chain Wiz Research's technical writeup laid out:. (Related: Industry News: Introducing Daggr: Chain apps programmat...)
What happens if a stream is canceled while its response data is still sitting in the queue — meaning send_window has already been debited for it? ngx_http_v2_filter_cleanup() clears out that unsent data and refunds the unused credit.
Sources indicate that this refund never checks whether the result exceeds NGX_HTTP_V2_MAX_WINDOW. If the client already increased the window via WINDOW_UPDATE while that data sat queued, adding the refund on top can push the counter past the protocol's own ceiling. h2c->send_window now holds a value the rest of the HTTP/2 code assumes can never occur.
The next problem lives in ngx_http_v2_state_window_update(), which handles incoming WINDOW_UPDATE frames from the client.
This check computes remaining headroom as "ceiling minus current counter." But if send_window has already blown past the ceiling, that subtraction is unsigned arithmetic — it can't represent a negative number, so it wraps around into a huge positive value instead. The check now has no way of noticing the counter is already broken; it reads the wrapped value as "plenty of headroom left" and happily approves further increases.
In a recent development, this corrupted counter eventually reaches ngx_http_v2_send_chain(), where it's cast to the signed type off_t to compute how much data to send. A sufficiently large value becomes negative in that conversion, and that negative length gets handed to a structure describing a slice of the response buffer — producing a buffer whose end pointer sits before its start pointer.
Sources indicate that when this malformed buffer reaches the TLS send path, ngx_ssl_send_chain(), another round of signed/unsigned conversion turns the invalid length into an out-of-bounds heap memory copy. An attacker can use this to leak memory (defeating ASLR) and corrupt the heap, arriving at unauthenticated remote code execution.
According to recent reports, wiz Research confirmed RCE with an ASLR bypass on official NGINX 1.31.7 and 1.31.8 builds, over HTTP/2+TLS, on 64-bit systems, serving response data straight from memory. Worth underlining: this path is reachable with no backend application and no third-party module at all — ordinary NGINX serving static files is enough.
The core trigger is: cancel a stream, but first make sure the client has inflated the window enough.
Rapid7's Stephen Fewer published a working PoC (sfewer-r7/CVE-2026-123007) that quantifies exactly how hard this is in practice:.
Rapid7's team went a step further, demonstrating that this HTTP/2 bug chains with a separate Linux kernel SCTP networking flaw to reach root on the host — not stopping at the NGINX worker's privileges, but escaping the container/host entirely.
Real-world constraints that make this harder to pull off:.
One detail stands out: this exact code has existed since NGINX 1.9.5 in 2015. A bug nobody caught for over a decade was independently found by five different research teams at almost the same moment — Wiz Research, Ikotas Labs, Metnir, Rapid7, and Xint.
Wiz Research attributes this convergence to the advance of AI-assisted vulnerability research tooling (their own platform, "Wiz Atlas," plus the AI models they used to validate the finding's impact). Memory-safety bugs have traditionally required "tracing subtle interactions between memory operations and multiple code paths" to find — and that complexity itself has acted as a practical barrier for years. Wiz's own assessment: "complexity can no longer be relied upon as a barrier to discovery or exploitation.".
The public disclosure timeline to F5 bears this out:.
Five unrelated teams bringing in the same bug within days of each other is itself being read as a signal that the landscape of vulnerability research difficulty is shifting.
It has been revealed that according to Xint's Shodan-based scan, 98.9% of 11.94 million version-identifiable NGINX hosts were running an affected release. That figure counts versions only — it doesn't confirm whether HTTP/2 is actually enabled or whether a fix has already landed. Still, given that NGINX powers roughly 30% of the web server market, the base population here is enormous regardless.
Of the ten "NGINX2Root" vulnerabilities disclosed together, five are rated Critical with RCE potential:.
CVE-2026-123007 has by far the broadest blast radius here precisely because it needs no special proxy, mail, or DNS configuration — just "HTTP/2 turned on" in an otherwise default setup.
Interim mitigation if patching isn't immediately possible.
Special attention for containerized/orchestrated environments.
Patch internet-facing NGINX instances with HTTP/2 enabled and no HTTP/2-terminating CDN or WAF in front of them first. The real-world constraints — 128 GB of traffic, x86-64/glibc dependency — are not grounds for complacency: Rapid7 has already demonstrated reproduction in about 2.5 minutes, and Xint's scan demonstrates the unpatched population runs into the tens of millions.
![[CVE-2026-123007] Unauthenticated RCE via Integer Underflow in NGINX's HTTP/2 Flow Control](https://media2.dev.to/dynamic/image/width=1200,height=627,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbv8j5nud1nfr9vm7r08g.png)