CVE-2026-42530
NGINX vulnerability analysis and mitigation

Overview

CVE-2026-42530 is a Use-after-Free (CWE-416) vulnerability in NGINX Open Source's ngx_http_v3_module (HTTP/3 QUIC module). A remote unauthenticated attacker can send a specially crafted HTTP/3 session to reopen a QPACK encoder stream, triggering a use-after-free condition in the NGINX worker process. This can cause a worker process restart (denial of service) and, on systems with ASLR disabled or where ASLR can be bypassed, may enable arbitrary code execution. Affected versions are NGINX Open Source 1.31.0 through 1.31.1 (fixed in 1.31.2). The vulnerability was disclosed on June 17, 2026, and carries a CVSS v3.1 score of 8.1 (High) and a CVSS v4.0 score of 9.2 (Critical) (Github Advisory, Red Hat Bugzilla).

Technical details

The root cause is a Use-after-Free (CWE-416) in the ngx_http_v3_module QPACK encoder stream handling logic. When an HTTP/3 QUIC session is crafted to reopen an already-closed QPACK encoder stream, the NGINX worker process accesses memory that has already been freed, leading to undefined behavior. Exploitation requires the target NGINX instance to be configured with the HTTP/3 QUIC module enabled — a non-default configuration — and additional conditions beyond the attacker's direct control (e.g., specific timing or state). Code execution is conditional on ASLR being disabled or successfully bypassed; without this, the primary impact is a worker process crash and restart (Github Advisory, Red Hat Bugzilla).

Impact

Successful exploitation causes the NGINX worker process to crash and restart, resulting in a denial of service for active connections. On systems where ASLR is disabled or can be bypassed, an unauthenticated remote attacker may achieve arbitrary code execution with the privileges of the NGINX worker process, potentially leading to full system compromise, data exfiltration, or lateral movement within the network. The vulnerability affects confidentiality, integrity, and availability at the highest level under those conditions (Github Advisory).

Exploitation steps

  1. Reconnaissance: Identify internet-facing NGINX servers running versions 1.31.0–1.31.1 with HTTP/3 QUIC support enabled, using tools like Shodan (search for nginx with QUIC/HTTP3 headers) or active probing for QUIC/UDP port 443 responses.
  2. Confirm HTTP/3 support: Send an initial QUIC handshake to the target to confirm the ngx_http_v3_module is active and the server responds to HTTP/3 requests.
  3. Craft malicious HTTP/3 session: Construct a specially crafted HTTP/3 session that manipulates QPACK encoder stream state — specifically, sending protocol messages that cause the server to reopen an already-closed QPACK encoder stream.
  4. Trigger Use-after-Free: The crafted session causes the NGINX worker to access freed memory, resulting in a worker crash (DoS). Repeated attempts may be needed due to timing/state conditions beyond attacker control.
  5. Achieve code execution (conditional): On targets with ASLR disabled, leverage the use-after-free primitive to control execution flow and execute arbitrary code as the NGINX worker process. On ASLR-enabled systems, an additional ASLR bypass technique would be required before this step is feasible (Github Advisory, Red Hat Bugzilla).

Indicators of compromise

  • Network: Unexpected QUIC/UDP traffic (typically port 443) with malformed or anomalous HTTP/3 QPACK encoder stream frames; repeated connection attempts from the same source IP targeting the QUIC listener.
  • Logs: NGINX error logs showing worker process crashes or restarts (worker process exited on signal); unusual QUIC session errors or QPACK stream-related error messages in error.log.
  • Process: Repeated NGINX worker process restarts in a short time window; unexpected child processes spawned by the NGINX worker (e.g., shells or network utilities) on systems where RCE is achieved.
  • System: On systems where code execution occurs, look for new files written by the NGINX worker user, unexpected outbound connections from the NGINX process, or new cron jobs/scheduled tasks created under the NGINX service account.

Mitigation and workarounds

F5 has released NGINX Open Source version 1.31.2 as the fix; upgrading to this version is the recommended remediation (Github Advisory). As an interim workaround if patching is not immediately possible, disable the HTTP/3 QUIC module (ngx_http_v3_module) in the NGINX configuration by removing or commenting out listen ... quic directives and reloading NGINX. Additionally, ensure ASLR is enabled on all systems running NGINX to significantly raise the bar for code execution exploitation. Fedora packages have also been updated; Linux distribution users should apply vendor-provided package updates as they become available.

Community reactions

F5 issued an out-of-band security advisory (K000161616) for this vulnerability, reflecting the severity of the issue (Github Advisory). Coverage was broad across security media including BleepingComputer, SecurityWeek, The Hacker News, and CyberSecurityNews, with headlines emphasizing the critical CVSS 9.2 score and the potential for unauthenticated remote code execution. Security researchers on Reddit (r/netsec, r/cybersecurity) and Mastodon/Infosec.exchange discussed the ASLR dependency as a nuance that, while limiting full RCE in many environments, does not reduce the urgency of patching given the DoS impact and the prevalence of NGINX deployments. The NCSC Ireland and Belgium's CCB both issued advisories urging prompt patching.

Additional resources


SourceThis report was generated using AI

Related NGINX vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-42533CRITICAL9.2
  • NGINX logoNGINX
  • nginx:1.26::nginx-all-modules
NoYesJul 15, 2026
CVE-2026-42530CRITICAL9.2
  • NGINX logoNGINX
  • nginx-debuginfo
NoYesJun 17, 2026
CVE-2026-60005HIGH8.8
  • NGINX logoNGINX
  • nginx
NoYesJul 15, 2026
CVE-2026-56434HIGH8.3
  • NGINX logoNGINX
  • nginx-mod-naxsi
NoYesJul 15, 2026
CVE-2026-48142MEDIUM6.3
  • NGINX logoNGINX
  • nginx-1.31
NoYesJun 17, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management