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

NGINX HTTP/2 Use-After-Free Flaw (CVE-2026-123633) Allows DoS, RCE

CRITICAL
November 25, 2026
7m read
VulnerabilityPatch ManagementThreat Intelligence

Related Entities

Products & Tech

NGINX DebianAddressSanitizer

Other

memN0psBon Berry

CVE Identifiers

CVE-2026-123633
CRITICAL
CVSS:9.2

Full Report

Executive Summary

A critical use-after-free vulnerability, tracked as CVE-2026-123633, has been identified in the NGINX web server's HTTP/2 protocol implementation. The vulnerability, discovered by researcher Bon Berry of Palo Alto Networks Unit 42, can be exploited by an unauthenticated remote attacker to cause a denial-of-service (DoS) condition. Furthermore, research indicates that remote code execution (RCE) is achievable under certain conditions, particularly when chained with another information disclosure flaw. The issue affects NGINX servers that accept HTTP/2 connections and proxy requests to a backend. F5, the maintainer of NGINX, has assigned the vulnerability a CVSS 4.0 score of 9.2 (Critical), while NGINX's own advisory rates it as Medium. Patches are available in NGINX versions 1.30.7 and 1.31.9. Due to the potential for RCE and the widespread deployment of NGINX, immediate patching is strongly recommended.


Vulnerability Details

The core of CVE-2026-123633 lies in a logic flaw within the HTTP/2 connection state management. An attacker can send a fragmented HTTP/2 HEADERS frame, causing the connection handling function ngx_http_v2_handle_connection() to prematurely mark the connection as reusable before the full request stream is created. The client can then send the rest of the HEADERS frame, prompting ngx_http_v2_create_stream() to create an active stream for the request. However, this function fails to clear the reusable flag set in the previous step.

This creates a dangerous state: an active request stream is running on a connection that the NGINX cleanup logic believes is idle and safe to reclaim. Under conditions of high connection pressure (when free worker connections are low), the ngx_drain_connections() function can be triggered. This function iterates through the queue of reusable connections, closes them, and frees their associated memory. Because the vulnerable connection is incorrectly in this queue, its memory is freed while the active HTTP/2 request is still using it. Any subsequent operation by the active request that attempts to access this freed memory results in a use-after-free condition, typically leading to a worker process crash (DoS).

The researcher demonstrated that this drain could be reliably triggered by crafting a request that requires a runtime DNS lookup on a variable upstream, which in turn allocates a new UDP socket and consumes a connection slot, initiating the drain process.

Affected Systems

The vulnerability affects NGINX Open Source and NGINX Plus installations configured to handle HTTP/2 traffic, typically as a reverse proxy.

  • NGINX Open Source (mainline branch): versions 1.31.0 through 1.31.8
  • NGINX Open Source (stable branch): versions 1.19.7 through 1.30.6

Fixed Versions:

  • Mainline branch: 1.31.9 and later
  • Stable branch: 1.30.7 and later

Administrators should also check for updates from their distribution vendors (e.g., Debian, Ubuntu) as they may provide patched packages.


Exploitation Status

The vulnerability was privately reported to F5 by researcher Bon Berry (memN0ps). The researcher successfully developed a proof-of-concept (PoC) that not only triggers the DoS condition but also achieves pre-authentication remote code execution.

The RCE was achieved by chaining CVE-2026-123633 with a separate memory disclosure vulnerability that leaked a libc pointer. This pointer was used to calculate the base address of libc, effectively bypassing Address Space Layout Randomization (ASLR).

It is important to note that the successful RCE chain required a non-default NGINX configuration. F5 assessed the memory disclosure bug as being limited to a non-typical configuration and has not assigned it a CVE. However, the demonstration confirms that under the right circumstances, the impact of this vulnerability can be elevated from DoS to full RCE as a non-root NGINX worker.

Impact Assessment

The immediate and most likely impact of exploiting CVE-2026-123633 is a denial of service. An unauthenticated attacker can repeatedly crash NGINX worker processes, rendering the web server or application proxy unavailable to legitimate users. For organizations relying on NGINX for critical, user-facing applications, this can lead to significant business disruption, revenue loss, and reputational damage.

The potential for RCE, while more complex to achieve, represents a far more severe threat. A successful RCE exploit would grant an attacker a foothold within the network perimeter, allowing them to perform reconnaissance, move laterally, exfiltrate data, or deploy additional malware. Given NGINX's common role as a reverse proxy and API gateway, a compromised NGINX instance could expose the entire backend infrastructure to the attacker.


Cyber Observables — Hunting Hints

The following patterns may help identify vulnerable systems or exploitation attempts:

Type
Log Pattern
Value
*... client sent duplicated stream ...*
Description
May appear in NGINX debug logs during exploitation attempts.
Type
Log Pattern
Value
*... http2 handle connection ...*
Description
Increased frequency in debug logs could indicate scanning or exploitation.
Type
System Event
Value
NGINX worker process crashes
Description
Monitor system logs (e.g., dmesg, Windows Event Viewer) for unexpected nginx process terminations with segmentation faults.
Type
Network Traffic
Value
Fragmented HTTP/2 HEADERS frames
Description
Deep packet inspection may reveal an unusual number of partial HEADERS frames from a single source.

Detection Methods

Defenders should focus on both identifying vulnerable instances and detecting active exploitation.

  1. Vulnerability Scanning: Use vulnerability management tools or run manual checks to identify all NGINX instances in your environment. Compare their versions against the list of affected versions. The command nginx -v will display the running version.
  2. Log Analysis (D3-PLA: Platform Log Analysis): Actively monitor NGINX error logs (error.log) for segmentation faults or other crash-related messages. An increase in worker process restarts is a strong indicator of instability that could be caused by exploitation.
  3. Endpoint Detection and Response (EDR): Deploy EDR solutions on web servers to monitor nginx process behavior. Configure alerts for unexpected process terminations or child processes spawned by an NGINX worker, which could indicate successful RCE.
  4. Network Traffic Analysis (D3-NTA: Network Traffic Analysis): While difficult, network security monitoring tools could be configured to flag anomalous HTTP/2 traffic patterns, such as an unusually high rate of fragmented HEADERS frames from a specific IP address.

Remediation Steps

The primary and most effective remediation is to upgrade to a patched version of NGINX.

  1. Prioritize Patching: Prioritize patching for all internet-facing NGINX instances, especially those acting as reverse proxies for critical applications. Refer to the Affected Systems section for fixed versions.
    • For the mainline branch, upgrade to 1.31.9 or later.
    • For the stable branch, upgrade to 1.30.7 or later.
  2. Vendor Patches: If you installed NGINX via a package manager (e.g., apt, yum), update your system and ensure the NGINX package is upgraded to a version that includes the fix for CVE-2026-123633.
  3. Workaround (Temporary): If immediate patching is not possible, a temporary workaround is to disable HTTP/2. This will mitigate the vulnerability but may have performance implications. This can be done by removing the http2 parameter from the listen directive in your NGINX configuration file.
    # Vulnerable Configuration
    # listen 443 ssl http2;
    
    # Mitigated Configuration (HTTP/2 disabled)
    listen 443 ssl;
    

    Warning: This is a temporary measure. Disabling HTTP/2 can negatively impact website performance. A full upgrade is the only permanent solution.

  4. Verification: After upgrading, verify the new version is running using nginx -v. Monitor logs and application functionality to ensure the upgrade was successful and did not introduce new issues.

Timeline of Events

1
November 24, 2026
Palo Alto Networks Unit 42 publishes a detailed technical analysis of the NGINX use-after-free vulnerability, CVE-2026-123633.
2
November 25, 2026
This article was published

MITRE ATT&CK Mitigations

The primary mitigation is to upgrade NGINX to a patched version (1.30.7+ or 1.31.9+).

Mapped D3FEND Techniques:

Enabling modern memory safety features like ASLR can make exploitation for RCE more difficult, though not impossible.

Mapped D3FEND Techniques:

Running NGINX in a container or with strict sandboxing rules can limit the impact of a successful RCE.

Mapped D3FEND Techniques:

As a temporary workaround, disabling HTTP/2 on NGINX servers mitigates this specific attack vector.

Mapped D3FEND Techniques:

Timeline of Events

1
November 24, 2026

Palo Alto Networks Unit 42 publishes a detailed technical analysis of the NGINX use-after-free vulnerability, CVE-2026-123633.

Sources & References

NGINX HTTP/2 Use-After-Free: CVE-2026-123633
Unit 42 (unit42.paloaltonetworks.com) •November 24, 2026

Article Author

Jason Gomes

Jason Gomes

• Cybersecurity Practitioner

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.

Threat Intelligence & AnalysisSecurity Orchestration (SOAR/XSOAR)Incident Response & Digital ForensicsSecurity Operations Center (SOC)SIEM & Security AnalyticsCyber Fusion & Threat SharingSecurity Automation & IntegrationManaged Detection & Response (MDR)

Editorial Standards & Analyst Review

CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.

Tags

NGINXHTTP/2Use-After-FreeDenial of ServiceRCEVulnerabilityCVE-2026-123633F5

📢 Share This Article

Help others stay informed about cybersecurity threats

🎯 MITRE ATT&CK Mapped

Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.

🧠 Enriched & Analyzed

Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.

🛡️ Actionable Guidance

Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.

🔗 STIX Visualizer

Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.

⚡ Sigma Generator

Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.