CVE-2026-42533: Heap Buffer Overflow in NGINX Script Engine Regex Map Evaluation
- Vendor
- F5
CVE-2026-42533 is a heap-based buffer overflow in the script engine of NGINX Plus and NGINX Open Source, which constructs strings from variables for directives such as set, rewrite, return, and proxy_pass. The vulnerability occurs when a map directive uses regular-expression matching and a string expression references the map's regex capture variables before referencing the map output variable. Certain uses of non-cacheable variables in string expressions can also trigger the flaw. An unauthenticated remote attacker can send crafted HTTP requests that, subject to additional conditions beyond the attacker's control, cause a buffer overrun in an NGINX worker process. Exploitation can cause worker restarts and denial of service, or potentially arbitrary code execution if Address Space Layout Randomization (ASLR) is disabled or bypassed. The vulnerability affects the data plane only; there is no control-plane exposure.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can crash and restart NGINX worker processes, disrupting request processing and causing denial of service. If ASLR is disabled or bypassed, the heap corruption may permit arbitrary code execution in the worker-process security context, potentially compromising the confidentiality, integrity, and availability of resources accessible to that process. The vulnerability does not directly expose the NGINX control plane.
Mitigation
If you can’t patch tonight, do this now.
Replace unnamed regex captures with unique named captures. Reference each named capture only within the same block as its regex match, and do not reuse capture names across regex matches in different directives, such as map and location. Keep ASLR enabled as defense in depth against code execution; it does not prevent worker crashes or denial of service.
Remediation
Patch, then assume compromise.
Install a vendor-supported security update addressing CVE-2026-42533. Initial fixed releases include NGINX Plus 37.0.3.1 or R36 P7; NGINX Open Source 1.31.3 or 1.30.4; NGINX Instance Manager 2.22.2; F5 WAF for NGINX 5.13.4; NGINX Gateway Fabric 2.6.7; and NGINX Ingress Controller 2026-lts-r4 or 5.5.3. Prefer current maintenance releases that also address the related regression CVE-2026-93479, fixed in NGINX Open Source 1.31.7 and 1.30.6. For distribution packages, apply the applicable vendor backport rather than relying solely on the upstream version number. Corrected Ubuntu packages include 1.28.3-2ubuntu1.11 for 26.04 LTS, 1.24.0-2ubuntu7.18 for 24.04 LTS, and 1.18.0-6ubuntu14.21 for 22.04 LTS. Debian trixie provides a corrected update in 1.26.3-3+deb13u9. Earlier Ubuntu updates reverted the fix, and some distribution backports introduced regressions, so verify that the selected update retains the security correction. Restart NGINX to load the updated binary and validate affected configurations.
Exploits
6 exploits validated by Mallory's analysis. Hidden: 10 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-42533 exploited in the wild?
- Yes. As of Nov 27, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2026-42533?
- Yes. Mallory tracks 6 public exploits or proofs of concept for CVE-2026-42533, the earliest disclosed Jul 27, 2026.
- Is there a patch for CVE-2026-42533?
- Install a vendor-supported security update addressing CVE-2026-42533. Initial fixed releases include NGINX Plus 37.0.3.1 or R36 P7; NGINX Open Source 1.31.3 or 1.30.4; NGINX Instance Manager 2.22.2; F5 WAF for NGINX 5.13.4; NGINX Gateway Fabric 2.6.7; and NGINX Ingress Controller 2026-lts-r4 or 5.5.3.
- What products are affected by CVE-2026-42533?
- F5 Nginx Plus, F5 Nginx Gateway Fabric, F5 Nginx Ingress Controller, and F5 Waf.
- How severe is CVE-2026-42533?
- CVE-2026-42533 has a CVSS v4 score of 9.2 (Critical) and an EPSS score of 6.5% (95th percentile) as of Nov 27, 2026.
Recent activity
215 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.