Executive Summary
CVE-2026-123633 is a use-after-free vulnerability in NGINX HTTP/2 that may let an unauthenticated attacker cause a denial of service. In the CVE record, F5 says code execution may be possible when address space layout randomization (ASLR) is disabled or bypassed.
CVE-2026-123633 affects NGINX servers that accept HTTP/2 client connections and proxy requests to a backend when free worker connections run low. A fragmented request can leave an active connection marked reusable. Under connection pressure, NGINX can close that connection and free memory the active request still uses.
F5's CVE record scores the issue 9.2 Critical under CVSS 4.0. The NGINX security advisories page labels the issue 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 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 should review HTTP/2 reverse-proxy exposure and upgrade to a fixed NGINX release or a vendor package containing the CVE-2026-123633 fix.
Palo Alto Networks customers are better protected from the threats discussed above through the following products and services:
Organizations can access tailored adversary intelligence, direct analyst consultations, and specialized exposure tracking through Unit 42 Threat Intel Services and its Deep and Dark Web Service.
If you think you might have been compromised or have an urgent matter, contact the Unit 42 Incident Response team.
| Related Unit 42 Topics | HTTP, DNS, Threat Detection |
Background
While researching NGINX, I independently found the HTTP/2 connection-state defect now 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 its DNS resolver is still using.
I reproduced the use-after-free with AddressSanitizer (ASan) on builds of unmodified NGINX 1.31.7 and 1.31.8 source. The NGINX security advisories page lists 1.19.7 through 1.30.6 and 1.31.0 through 1.31.8 as affected and 1.30.7 and 1.31.9 as fixed releases.
I reported the HTTP/2 use-after-free privately to F5. F5's CVE record scores it 9.2 Critical under CVSS 4.0 and 8.1 High under CVSS 3.1. The NGINX security advisories page labels it Medium.
In my ASan test on a Debian guest, ASan stopped NGINX at the first read from freed DNS lookup memory.
The resolver path in my test stems from the HTTP/2 connection bug tracked as CVE-2026-123633. CVE-2026-123634 is a separate DNS resolver vulnerability fixed in the same release.
I also found a memory disclosure vulnerability that leaked a libc pointer. I used the address to calculate the libc base and work around ASLR when chaining the disclosure with CVE-2026-123633. I reported this additional bug to F5 as a separate issue. From an attacker VM, I achieved pre-authentication remote code execution on a target VM as the non-root NGINX worker. The chain required a non-default NGINX configuration, and some attempts did not open a shell.
F5 assessed the memory disclosure as a behavior limited to a non-typical configuration and has not assigned it a CVE at the time of writing, so I am leaving out its details and the exploit steps.
How the Connection State Defect Works
NGINX marks a connection 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 reusable and returns early. The code below shows that decision:
|
1 2 3 4 5 |
ngx_reusable_connection(c,1); if(h2c->state.incomplete){ return; } |
The reusable mark lets NGINX reclaim connections stalled on partial frames before they exhaust the worker's slots.
|
1 2 3 4 5 6 7 |
h2c->processing++; if(h2c->connection->read->timer_set){ ngx_del_timer(h2c->connection->read); } returnstream; |
|
1 2 |
c->close=1; c->read->handler(c->read); |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
if(ngx_resolver_send_query(r,rn)!=NGX_OK){ /* immediately retry once on failure */ rn->last_connection++; if(rn->last_connection==r->connections.nelts){ rn->last_connection=0; } (void)ngx_resolver_send_query(r,rn); } if(ngx_resolver_set_timeout(r,ctx)!=NGX_OK){ gotofailed; } |
|
1 2 3 |
if(ctx->event||ctx->timeout==0){ returnNGX_OK; } |
| Test | Builds | Result |
| ASan | 1.31.7, 1.31.8 (tested before the HTTP/2 fix) | Read from freed resolver state during request-time DNS setup |
| Source review | Released NGINX 1.30.7 and 1.31.9 source | Clears the reusable mark when NGINX creates an HTTP/2 stream |
| Tested Path | Key Conditions |
| Resolver socket | Split HEADERS frame header, worker_connections set to 16, 13 filler connections, a variable upstream hostname, a new resolver UDP socket and an abortive client close |
| Signal | What I Saw in Testing | What to Check |
| Unexpected NGINX process exit | ASan aborted the single-process NGINX test after NGINX read freed memory. | Investigate unexpected worker exits in production near HTTP/2 requests and connection pressure. A worker exit on its own is weak evidence of exploitation. |
| Connection pressure with request-time DNS | NGINX logged "16 worker_connections are not enough, reusing connections" at warn level during the ASan test. | Correlate the warning with resolver traffic and connection pressure on routes that resolve at request time. The warning and DNS traffic can also occur under ordinary load. |
| Date | Event |
| Oct. 16, 2026 | HTTP/2 reusable connection defect documented |
| Oct. 16, 2026 | Resolver use-after-free reproduced with ASan; sending all nine frame-header bytes first left NGINX running |
| Nov. 1, 2026 | Use-after-free reported privately to F5 through its coordinated disclosure process |
| Nov. 18, 2026 | NGINX 1.30.7 and 1.31.9 released with the HTTP/2 fix |
| Nov. 18, 2026 | F5 published CVE-2026-123633 for the HTTP/2 issue |