Cyber News Unit 42 6 days ago

NGINX HTTP/2 Use-After-Free: CVE-2026-123633

CN
CyberNew Threat Research Desk
• Original Reporting: Unit 42
CyberNew Threat Intel Assessment
Assessed Severity: CRITICAL
Impacted Surface
Enterprise Perimeter & Network Defense
Intelligence Sector
Cyber News

Analyst Takeaway

"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..."

Recommended Defense & Mitigation

  • Emergency Patching: Prioritize vendor patches and CVE mitigation across internet-facing assets immediately.
  • Perimeter Audit: Inspect perimeter firewall logs and hunt for unauthorized RCE indicators.
Curated & Verified by CyberNew Threat Intelligence Desk Standard Defense Framework (NIST / MITRE ATT&CK)

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:

The reusable mark lets NGINX reclaim connections stalled on partial frames before they exhaust the worker's slots.

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

Source Verification & Original Intelligence

This threat report was reviewed by CyberNew analysts and cross-referenced with primary security disclosures from Unit 42.

Primary Advisory →