NGINX HTTP/2 Use-After-Free: Exposure and Response
CVE-2026-123633 affects NGINX HTTP/2 reverse proxies under connection pressure. Here is what defenders should review, patch, and monitor.
A flaw in NGINX’s HTTP/2 connection handling can leave an active request associated with memory that the server later frees. Palo Alto Unit 42, which reported the issue to F5, tracked the vulnerability as CVE-2026-123633. The immediate security concern is denial of service against exposed NGINX reverse proxies, while F5’s vulnerability record says code execution may be possible when address space layout randomization (ASLR) is disabled or bypassed.
The defect does not affect every NGINX deployment equally. Unit 42’s testing focused on servers that accept HTTP/2 client connections, proxy requests to an upstream, and approach the configured worker-connection limit. The researcher reproduced the memory-safety failure with AddressSanitizer (ASan) using a request-time DNS resolution path. F5’s description is broader, covering affected HTTP/2 reverse-proxy configurations generally.
Administrators should treat this as an infrastructure exposure issue rather than an indicator of a known active campaign. The supplied research reports no confirmed indicators of compromise and does not establish exploitation in the wild.
What CVE-2026-123633 changes about NGINX risk
The vulnerable code is in NGINX’s HTTP/2 request-processing path. NGINX maintains a reusable-connection state so it can reclaim connections when worker capacity becomes constrained. According to Unit 42, a fragmented HTTP/2 HEADERS frame can cause a connection to be marked reusable before the request is fully established. When NGINX later creates the stream for that request, affected releases fail to clear the reusable state.
The result is an inconsistent internal state: NGINX has a live HTTP/2 request, but its connection-management logic still considers the underlying connection eligible for reclamation. Under sufficient connection pressure, NGINX can select that connection for draining, close it, and release memory still referenced by the active request.
Unit 42’s source review found that fixed releases clear the reusable flag when NGINX creates an HTTP/2 stream. This is the central correction for the HTTP/2 issue.
Reproduced path through request-time DNS
The clearest reproduction described by Unit 42 combines the stale reusable state with an upstream hostname that NGINX must resolve during request processing. In the test configuration, an HTTP/2 proxy route used a variable upstream target rather than a literal IP address or a configured upstream group. NGINX therefore performed a DNS lookup while handling the request.
The lookup required a new resolver UDP socket. Opening that socket required another connection slot, which invoked NGINX’s connection-draining logic when the worker was close to its limit. Unit 42 tested the path with a low worker_connections value, numerous filler connections, a fragmented HTTP/2 frame header, and an abortive client close. These conditions allowed the live HTTP/2 connection to be reclaimed while the resolver operation was still using its state.
During cleanup, the resolver context was freed. Execution then continued into resolver timeout handling, which accessed the released context. ASan reported a read from freed memory. Unit 42’s source review also found that execution could subsequently write through the stale pointer, although the sanitizer test stopped at the initial read.
This test demonstrates one route to the flaw; it should not be interpreted as a complete definition of all exploitable configurations. The researcher explicitly noted that upstream connection setup is another drain trigger and that F5’s vulnerability description covers HTTP/2 reverse proxies more broadly.
Potential impact and limits of the evidence
The confirmed technical finding is a use-after-free in affected NGINX releases. F5 says the issue may allow an unauthenticated attacker to cause denial of service when connection slots run low. A production build may continue running after reading freed memory, but it may also behave unpredictably depending on memory state and execution flow.
F5’s CVE record states that code execution may be possible when ASLR is disabled or bypassed. Unit 42 also described a separate memory-disclosure issue that it combined with CVE-2026-123633 in a two-virtual-machine demonstration. That demonstration used a non-default NGINX configuration and resulted in a shell as the non-root NGINX worker account in one attempt; another attempt did not open a shell. F5 assessed the disclosure behavior as limited to a non-typical configuration, and Unit 42 did not publish its details or exploit steps.
These findings support prioritizing remediation, but they do not prove that arbitrary code execution is available against every vulnerable installation. The tested ASan environment was isolated, used loopback traffic, and employed configuration values that differed from common defaults. Unit 42 also cautioned that worker exits and connection-drain warnings can have benign causes.
Affected versions and deployment review
The NGINX security advisories page lists versions 1.19.7 through 1.30.6 and 1.31.0 through 1.31.8 as affected. The reported fixes are in NGINX 1.30.7 on the stable branch and 1.31.9 on the mainline branch. F5 also lists affected NGINX Plus releases in its advisory material; organizations using NGINX Plus should consult the vendor’s applicable package guidance rather than infer status from the open-source version alone.
Exposure review should begin with internet-facing listeners that accept HTTP/2 and proxy traffic upstream. Pay particular attention to routes using variable targets in proxy_pass, grpc_pass, fastcgi_pass, uwsgi_pass, or scgi_pass. The Unit 42 reproduction used a variable proxy target and request-time DNS, but the research also notes that other upstream connection setup can allocate through the same connection-management path.
Do not rely only on the package’s apparent configuration path. Unit 42 notes that the master process can select another configuration with the -c option, while nginx -T shows the on-disk configuration, which may differ from what already-running workers loaded. Review the running command line, loaded configuration, binary version, HTTP/2 listener settings, resolver configuration, and the effective worker_connections value.
Detection and threat hunting
Unit 42 observed a connection-drain warning before ASan terminated its test process. The warning contains wording similar to “worker_connections are not enough, reusing connections.” Because this message can occur during ordinary load, it is not an exploitation indicator by itself. It is most useful when correlated with other evidence.
- Investigate unexpected NGINX worker or process exits occurring near HTTP/2 traffic and periods of high connection utilization.
- Correlate connection-drain warnings with resolver traffic, upstream connection creation, and routes that perform request-time name resolution.
- Review HTTP/2 request patterns and connection resets around the time of a process failure, without assuming that malformed or fragmented traffic proves exploitation.
- Check for unexpected shell processes or other unusual child processes running under the NGINX worker account when investigating suspected code execution.
- Preserve relevant NGINX error logs, process state, configuration, package details, and host telemetry before restarting systems where compromise is suspected.
The warning is logged at most once per second per worker in the behavior described by Unit 42. Since the default error-log level omits warnings, administrators should ensure that logging captures at least the warning level where operationally appropriate. Increasing log verbosity should be tested for volume and storage impact. A warning or worker exit remains a lead for investigation, not a confirmed compromise signal.
What organizations should do now
- Identify exposed instances. Inventory NGINX and NGINX Plus systems that accept HTTP/2 client connections, especially reverse proxies and gateways reachable from untrusted networks.
- Verify the actual running release. Confirm the worker binary, package source, active configuration, listener settings, resolver use, and effective worker-connection limits.
- Upgrade to a fixed release. Move to NGINX 1.30.7 or 1.31.9, or to a vendor package that explicitly contains the CVE-2026-123633 fix. Validate the result after deployment.
- Complete the process correctly. Unit 42 warns that a configuration reload can leave the old binary in memory. Use a full restart or an appropriate live binary upgrade procedure, then confirm that active workers use the remediated binary.
- Apply temporary exposure reduction if upgrading is delayed. Where service requirements permit, disable HTTP/2 on exposed listeners. Review both the
listen ... http2parameter and, for NGINX 1.25.1 and later,http2 on;settings in the relevant contexts. - Test service effects. Disabling HTTP/2 can affect gRPC clients and may increase connection use if traffic falls back to HTTP/1.1. Raising
worker_connectionsmay provide more headroom, but it does not remove the defect and should not substitute for patching. - Investigate unusual symptoms. If process exits, suspicious worker-account activity, or correlated connection and resolver anomalies are present, escalate for host and application investigation. The research provides no confirmed compromise IOCs.
Conclusion
CVE-2026-123633 is a memory-safety flaw in NGINX’s HTTP/2 connection lifecycle. Unit 42’s reproduction shows how a fragmented request can leave a live connection incorrectly marked reusable, allowing connection pressure to free memory still needed by request processing. The most dependable response is to verify exposure and deploy a release containing the fix. Temporary HTTP/2 restrictions, careful logging, and correlation of process, connection, and resolver events can reduce risk and improve investigation while patching is completed.
Sources
Palo Alto Unit 42: NGINX HTTP/2 Use-After-Free: CVE-2026-123633