HudHud Tech — Tech & AI news platform
Wednesday, 25 November 2026
Breaking
Cybersecurity

Analysis of NGINX HTTP/2 Vulnerability CVE-2026-123633

25 November 2026 4 min read هدهد تك | Hudhud Tech

Executive Summary

CVE-2026-123633 is a use-after-free vulnerability in NGINX HTTP/2 that may allow an unauthenticated attacker to cause a denial of service. According to F5, code execution could be possible if address space layout randomization (ASLR) is disabled or bypassed.

This vulnerability affects NGINX servers that accept HTTP/2 client connections and proxy requests to a backend when free worker connections are low. A fragmented request can leave an active connection marked as reusable. Under connection pressure, NGINX may close that connection and free memory that the active request still uses.

F5’s CVE record assigns a score of 9.2 (Critical) under CVSS 4.0 to this issue. The NGINX security advisories page categorizes it as medium and lists versions 1.19.7 through 1.30.6 and 1.31.0 through 1.31.8 as affected. F5 credits memN0ps (Palo Alto Networks Unit 42) among the reporters.

NGINX versions 1.30.7 on the stable branch and 1.31.9 on the mainline branch contain the fix. F5 also lists affected NGINX Plus releases. Administrators are advised to review HTTP/2 reverse-proxy exposure and upgrade to a fixed NGINX release or a vendor package containing the CVE-2026-123633 fix.

Background

While researching NGINX, memN0ps independently discovered the HTTP/2 connection-state defect tracked as CVE-2026-123633. An unauthenticated client can send a fragmented HTTP/2 request that leaves an active connection marked as reusable. When the server resolves a hostname during the request and free connection slots run low, NGINX can reclaim that connection mid-request and free memory that its DNS resolver is still using.

Testing with AddressSanitizer (ASan) on builds of unmodified NGINX 1.31.7 and 1.31.8 confirmed the use-after-free vulnerability. The NGINX security advisories page lists versions 1.19.7 through 1.30.6 and 1.31.0 through 1.31.8 as affected, while 1.30.7 and 1.31.9 are noted as fixed releases.

F5’s CVE record scores the vulnerability as 9.2 Critical under CVSS 4.0 and 8.1 High under CVSS 3.1, while the NGINX security advisories page classifies it as Medium.

How the Connection State Defect Works

NGINX marks a connection as reusable when it can close that connection under pressure. Stream creation should clear the reusable mark once a request starts, but ngx_http_v2_create_stream() leaves it set in affected releases.

When a client sends only part of an HTTP/2 HEADERS frame header, ngx_http_v2_handle_connection() marks the connection as reusable and returns early. This allows NGINX to reclaim connections stalled on partial frames before exhausting the worker’s slots.

When the client sends the remaining header bytes, ngx_http_v2_create_stream() builds a live stream and increments the active stream counter, but returns with the reusable mark still set. This creates a situation where NGINX has a live request on a connection that its cleanup logic still considers reusable.

The fixes in versions 1.30.7 and 1.31.9 clear the reusable mark at stream creation with ngx_reusable_connection(h2c->connection, 0).

Reaching the Resolver Use-After-Free

The stale reusable mark allows NGINX to reclaim a live connection when it needs a free slot. In testing, a request-time DNS lookup opened a new socket and triggered the drain.

The test used an HTTP/2 proxy route with a variable upstream. The variable evaluated to a hostname that was neither a literal IP address nor a configured upstream group, prompting NGINX to look it up during the request. This lookup required opening a new resolver UDP socket.

When the worker opens a new UDP socket, it checks for available connection slots. If free slots fall below a certain threshold while at least one reusable connection exists, NGINX’s drain function selects entries from the reusable queue, sets each connection’s close flag, and calls its read handler.

In the test, the client closed its socket after completing the frame, leaving NGINX with an active request on a reset connection. When connection pressure triggered the drain, the HTTP/2 read handler attempted to send a GOAWAY on that socket, which failed due to a connection reset. Consequently, NGINX finalized the connection and request.

Detection and Hunting

During the ASan test, NGINX logged a connection-drain warning before the sanitizer aborted the process. This warning can also appear under ordinary connection pressure, while a worker exit can have unrelated causes. A release build may continue running after reading freed memory.

Signals to investigate include unexpected NGINX process exits and connection pressure with request-time DNS. Administrators should correlate the warning with resolver traffic and connection pressure on routes that resolve at request time.

For further protection, Palo Alto Networks customers can utilize products such as Cortex XDR and XSIAM, as well as access tailored adversary intelligence and direct analyst consultations through Unit 42 Threat Intel Services.

 

Source: Unit 42 Palo Alto

What do you think of this story?

Share this story: