A recently identified vulnerability, CVE-2026-123633, in NGINX’s HTTP/2 implementation could allow unauthenticated attackers to trigger denial-of-service (DoS) conditions or potentially execute arbitrary code under specific circumstances. This vulnerability, reported by F5 and attributed to memN0ps of Palo Alto Networks’ Unit 42, has been assigned a critical CVSS score of 9.2, indicating its severity. The flaw arises when fragmented HTTP/2 requests leave active connections marked as reusable, which can lead to memory being freed while still in use.
Vulnerability Overview
CVE-2026-123633 affects NGINX versions 1.19.7 through 1.30.6 and 1.31.0 through 1.31.8. The issue occurs when NGINX, under connection pressure, closes a connection that is still being utilized by an active request. This can happen when a client sends a fragmented request, causing NGINX to mistakenly mark the connection as reusable. If the server subsequently needs to reclaim that connection, it may free memory that is still in use, leading to a use-after-free condition.
The vulnerability was reproduced using AddressSanitizer (ASan) on unmodified builds of NGINX 1.31.7 and 1.31.8. The testing demonstrated that an attacker could exploit this flaw to read from freed memory, potentially leading to remote code execution if address space layout randomization (ASLR) is disabled or bypassed.
Technical Details
The vulnerability stems from the improper handling of connection states in NGINX’s HTTP/2 module. When a client sends a partial HTTP/2 HEADERS frame, the connection is marked as reusable, but the state is not cleared when a new stream is created. This oversight allows NGINX to reclaim the connection while the request is still active, resulting in the freeing of memory that the request still references.
In practical terms, this means that if an attacker can send a fragmented request under conditions where the server is low on available connections, they can trigger the vulnerability. The NGINX cleanup logic may then attempt to finalize the connection and free the memory, leading to potential exploitation.
Mitigation and Recommendations
To address CVE-2026-123633, NGINX has released versions 1.30.7 and 1.31.9, which contain fixes for this vulnerability. Administrators are strongly advised to upgrade to these versions or to any vendor packages that include the necessary patches. In the interim, organizations can mitigate the risk by disabling HTTP/2 on exposed listeners or increasing the number of worker connections to reduce the likelihood of triggering the vulnerability.
Additionally, monitoring for unexpected NGINX process exits and connection-drain warnings can help identify potential exploitation attempts. It is crucial to ensure that the running configuration is reviewed and that any changes are tested before deployment.
For further technical details and insights into the vulnerability, refer to the full advisory from Palo Alto Networks’ Unit 42, which provides comprehensive coverage of the issue and its implications for NGINX users.
For more information on the vulnerability, see the detailed report by Palo Alto Networks here.


