CVE-2026-42533
NGINX vulnerability analysis and mitigation

Overview

CVE-2026-42533 is a heap-based buffer overflow vulnerability in NGINX Plus and NGINX Open Source triggered when a map directive uses regex matching and a string expression references the map's regex capture variables before the map output variable, or when a non-cacheable variable is used in a string expression under certain conditions. Disclosed on July 15, 2026, it affects NGINX Open Source versions 0.9.6 through 1.30.3 and 1.31.2, and NGINX Plus R33 through R36 (before R36 P7) and 37.0.0.1 through 37.0.3.0. The vulnerability has a CVSS v3.1 base score of 8.1 (High) and a CVSS v4.0 base score of 9.2 (Critical) (GitHub Advisory, F5 Advisory).

Technical details

The root cause is an incorrect calculation of buffer size (CWE-131) leading to a heap-based buffer overflow (CWE-122) in the NGINX worker process. The flaw resides in the complex_value evaluation logic: when a map directive with regex matching is configured and a string expression references the map's regex capture variables (e.g., $1, $2) before referencing the map output variable, a two-pass evaluation causes capture variable clobbering that corrupts heap memory. The same condition can be triggered using non-cacheable variables in string expressions under specific configuration patterns. An unauthenticated remote attacker can send crafted HTTP requests to trigger the overflow, but exploitation requires conditions partially beyond the attacker's control (High Attack Complexity). A static configuration scanner to identify vulnerable NGINX config patterns has been published publicly (GitHub Advisory, PoC Scanner).

Impact

Successful exploitation causes a heap buffer overflow in the NGINX worker process, resulting in a worker process restart (denial of service). On systems where Address Space Layout Randomization (ASLR) is disabled or can be bypassed by the attacker, the vulnerability may escalate to remote code execution with full confidentiality, integrity, and availability impact on the affected system. The vulnerability is a data plane issue only — there is no control plane exposure — but given NGINX's widespread use as a reverse proxy and load balancer, exploitation could affect all traffic flowing through the server (GitHub Advisory, F5 Advisory).

Exploitation steps

  1. Reconnaissance: Identify internet-facing NGINX instances running vulnerable versions (Open Source < 1.30.4 or 1.31.2, Plus R33–R36 before R36 P7, or 37.0.0.1–37.0.3.0) using tools like Shodan or Censys. Use the public static scanner (PoC Scanner) to audit NGINX configuration files for vulnerable map directive patterns.
  2. Identify vulnerable configuration: Confirm the target NGINX instance uses a map directive with regex matching where a downstream string expression references the map's regex capture variables (e.g., $1) before the map output variable, or uses non-cacheable variables in string expressions.
  3. Craft malicious HTTP request: Construct an HTTP request that triggers evaluation of the vulnerable map directive and its regex capture variables, causing the two-pass complex_value evaluation to clobber heap memory with attacker-influenced data.
  4. Trigger heap overflow: Send the crafted request to the NGINX server. Under normal conditions (ASLR enabled), this causes the NGINX worker process to crash and restart (DoS).
  5. Achieve code execution (conditional): On systems with ASLR disabled or where ASLR can be bypassed (e.g., via information leak), leverage the heap overflow to achieve arbitrary code execution as the NGINX worker process user. Full exploit details are not yet publicly available as of the patch date (GitHub Advisory, Red Hat Bugzilla).

Indicators of compromise

  • Logs: Repeated NGINX worker process crash/restart events in system logs (/var/log/nginx/error.log or journalctl); entries such as worker process XXXX exited on signal 11 (SIGSEGV) or worker process XXXX exited on signal 6 (SIGABRT) indicating memory corruption.
  • Process: Unexpected NGINX worker process restarts in rapid succession; unusual child processes spawned by the NGINX worker (e.g., shells or network utilities) if code execution is achieved.
  • Network: Anomalous HTTP requests targeting endpoints handled by map directives with regex patterns; high-volume requests from a single source attempting to trigger worker crashes; unexpected outbound connections from the NGINX server process.
  • File System: New or modified files in NGINX web root or configuration directories; unexpected cron jobs or scheduled tasks created under the NGINX service account (indicative of post-exploitation persistence if RCE is achieved).

Mitigation and workarounds

F5 released patched versions on July 15, 2026: NGINX Open Source 1.30.4 (stable branch) and 1.31.3 (mainline branch); NGINX Plus R36 P7 and 37.0.3.1. Upgrading to a patched version is the primary recommended remediation (F5 Advisory, NGINX 1.31.3 Release). If immediate patching is not possible, audit NGINX configuration files for map directives using regex matching where downstream string expressions reference capture variables before the map output variable, and refactor or disable such patterns. Additionally, ensure ASLR is enabled on all systems running NGINX to reduce the risk of RCE escalation beyond DoS. Restrict network access to NGINX services where feasible as a defense-in-depth measure.

Community reactions

F5 published an official advisory (K000162097) classifying the issue as a data plane vulnerability with no control plane exposure, and urged immediate patching (F5 Advisory). The Hacker News, SecurityWeek, Security Affairs, and numerous security blogs covered the vulnerability extensively, with several outlets noting the flaw spans approximately 15 years of NGINX versions (The Hacker News, SecurityWeek). Community discussion on Reddit (r/nginx, r/SecOpsDaily, r/security) was active, with threads analyzing the heap overflow mechanics and configuration risk patterns. TechTimes reported that the researcher responsible for discovery planned to release a full PoC exploit around August 5, 2026, approximately 21 days post-patch, generating significant urgency in the security community to patch before that date (TechTimes). Heise (German tech outlet) and NHS Digital also issued alerts, reflecting broad international awareness of the vulnerability.

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