nginx2shell

Remote code execution in NGINX HTTP/2

Two HTTP/2 flaws in NGINX can let an unauthenticated attacker run code on the server. Wiz Research, Ikotas Labs, Metnir, Rapid7, and Xint found them independently. F5 published fixes on 18 November 2026.

CVE-2026-123633CVE-2026-123007Critical 9.2ngx_http_v2_module

Fixed Releases

ProductVulnerable fromFixed releases
NGINX Open Source CVE-2026-123633 from 1.19.7. CVE-2026-123007 from 1.9.5. 1.30.7 stable
1.31.9 mainline
NGINX Plus CVE-2026-123633 from R33 and 37.0.0 37.0.7.1
37.2.0.1
NGINX Plus CVE-2026-123007 from R33 and 37.0.0 37.0.8.1
37.3.0.1

NGINX Plus has a different fixed release for each vulnerability.

What to Do Now

  1. Install a fixed release and restart NGINX. A reload leaves the old master process running, so the binary does not change.
  2. If you cannot upgrade yet, turn HTTP/2 off. On NGINX 1.25.1 or later, set http2 off; in the affected server blocks. On older versions, remove http2 from the listen directive.
  3. Turn HTTP/2 back on after the upgrade.

CVE-2026-123633: HTTP/2 use after free

Conditions

HTTP/2 is enabled, and NGINX is proxying to an application while free worker connections run low.

Cause

A partial HEADERS frame makes ngx_http_v2_handle_connection mark the connection reusable. When the rest of the frame arrives, ngx_http_v2_create_stream starts the request and does not take the connection off that list. ngx_drain_connections can then close and free it while the request still uses that memory.

Impact

Wiz reported that this use after free can become unauthenticated remote code execution, and that their lab included an ASLR bypass. F5 says code execution applies when ASLR is disabled or an attacker can bypass it.

CVE-2026-123007: Flow control underflow

Conditions

HTTP/2 is enabled. Wiz demonstrated it against NGINX serving ordinary static files over HTTPS, with no backend application and no third party module.

Cause

When a stream is canceled with data still queued, ngx_http_v2_filter_cleanup adds the unused flow control allowance back to send_window without stopping at the maximum. A later check in ngx_http_v2_state_window_update subtracts that counter with an unsigned integer and underflows. The TLS send path in ngx_ssl_send_chain can turn the resulting length into an out of bounds memory copy.

Impact

Wiz confirmed unauthenticated remote code execution, including an ASLR bypass. F5 says code execution applies when ASLR is disabled or an attacker can bypass it. Wiz has not published exploit code. Rapid7 has published a proof of concept for this vulnerability.

Research Credits

Wiz Research (Nir Ohfeld and Tomer Schwartz), Ikotas Labs, Metnir, Rapid7, and Xint each reported these flaws to F5. Ikotas Labs and Metnir have not published a separate account.

Xint describes a wider set of NGINX vulnerabilities at nginx2root.com. The same NGINX releases fix three other vulnerabilities. Turning HTTP/2 off does not cover them.

Xint also reported chaining CVE-2026-123007 with a separate Linux kernel SCTP flaw to reach root on the host. The NGINX update does not fix that kernel issue.

References

This domain is available to those teams. Email hello@previdian.com.

Early Warning from Previdian

Previdian warns when a vulnerability moves into active exploitation. Proprietary honeypots feed that warning into Exposure checks of internet-facing systems and into virtual patches Enterprise teams can deploy while the vendor fix is tested. Previdian sensors have not observed exploitation attempts against either of these vulnerabilities.

Request a Demo