Rapid7 Details NGINX HTTP/2 Integer Underflow Enabling Conditional Unauthenticated RCE

Summary
Rapid7 disclosed CVE-2026-123007, an HTTP/2 flow-control integer underflow that can enable unauthenticated RCE in affected NGINX servers. Its PoC required about 128 GB of traffic and specific x86-64/glibc conditions; fixes are listed.
Key points
- CVE-2026-123007 is an integer underflow in NGINX HTTP/2 connection flow-control accounting, rated CVSS 9.2 by the article.
- When queued DATA is cancelled, nginx can restore connection credit above the HTTP/2 maximum; a later WINDOW_UPDATE can exploit the underflow.
- The excessive credit can become an invalid response-buffer length, causing out-of-bounds memory reads and writes during buffered TLS output.
- Rapid7 reports demonstrating unauthenticated RCE with a proof of concept against an nginx 1.31.8 Linux/amd64 Docker image with HTTP/2 and TLS enabled.
- The demonstrated route depends on a specific x86-64 glibc EVEX/YMM memcpy implementation and suitable memory layout; the PoC required about 119 GiB of plaintext traffic, with additional network overhead.
- NGINX Open Source fixes are 1.31.9 and 1.30.7 for the listed affected branches. NGINX Plus fixes include 37.3.0.1 and 37.0.8.1; the article lists no fix for R34–R36.
Article Details
- Attack Vectors
- A remote unauthenticated client can exploit the flaw over an HTTP/2 connection to an affected nginx server with HTTP/2 enabled. The described proof of concept used an exposed HTTPS service.
- The exploit queues selected response DATA frames by slowing or stopping reads, manipulates HTTP/2 flow-control credit and stream settings, then triggers an integer underflow that can lead to out-of-bounds memory reads and writes.
- The reported proof of concept achieves code execution with the nginx worker process's permissions under specific x86-64 glibc EVEX/YMM memcpy and memory-layout conditions. The article reports approximately 128 GB of HTTP/2 data as a practical requirement for the demonstrated approach.
- Defensive Notes
- Upgrade NGINX Open Source 1.31.0–1.31.8 to 1.31.9, or versions 1.9.5–1.30.6 to 1.30.7.
- Upgrade NGINX Plus 37.1.0–37.2.0.1 to 37.3.0.1, or 37.0.0–37.0.7.1 to 37.0.8.1. The article lists no fixed version for NGINX Plus R34–R36.
