CVE-2026-42533: NGINX Map directive and Regex matching vulnerability
A vulnerability exists in NGINX Plus and NGINX Open Source when a map directive uses regex matching and a string expression references the map's regex capture variables before referencing the map output variable. Alternatively, the same result could be achieved by using a non-cacheable variable in a string expression under certain conditions. An unauthenticated attacker along with conditions beyond their control can exploit this vulnerability by sending crafted HTTP requests. This may cause a heap buffer overflow in the NGINX worker process leading to a restart. Additionally, attackers can execute code on systems with Address Space Layout Randomization (ASLR) disabled or when the attacker can bypass ASLR.
Other sources
NGINX Map directive and Regex matching vulnerability
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.28.3-8 - Upgrade
Upgrade
ubuntu/nginxto a version that resolves this vulnerability.Fixed in 1.4.6-1ubuntu3.9+esm9 - Upgrade
Upgrade
ubuntu/nginxto a version that resolves this vulnerability.Fixed in 1.10.3-0ubuntu0.16.04.5+esm10 - Upgrade
Upgrade
ubuntu/nginxto a version that resolves this vulnerability.Fixed in 1.14.0-0ubuntu1.11+esm5 - Upgrade
Upgrade
ubuntu/nginxto a version that resolves this vulnerability.Fixed in 1.18.0-0ubuntu1.7+esm4 - Upgrade
Upgrade
ubuntu/nginxto a version that resolves this vulnerability.Fixed in 1.18.0-6ubuntu14.21 - Upgrade
Upgrade
ubuntu/nginxto a version that resolves this vulnerability.Fixed in 1.24.0-2ubuntu7.18 - Upgrade
Upgrade
ubuntu/nginxto a version that resolves this vulnerability.Fixed in 1.28.3-2ubuntu1.11 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 37.0.3.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 36Fixed in 7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.31.3Fixed in 1.30.4 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.22.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.13.4 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.6.7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2026-Fixed in -Fixed in 4Fixed in 5.5.3 - Upgrade
Upgrade
debian/nginxto a version that resolves this vulnerability.Fixed in 1.22.1-9+deb12u10 - Upgrade
Upgrade
debian/nginxto a version that resolves this vulnerability.Fixed in 1.26.3-3+deb13u8 - Upgrade
Upgrade
debian/nginxto a version that resolves this vulnerability.Fixed in 1.30.4-3 - Upgrade
Upgrade
debian/nginxto a version that resolves this vulnerability.Fixed in 1.22.1-9+deb12u10Fixed in 1.26.3-3+deb13u8Fixed in 1.30.4-3
Event History
Frequently Asked Questions
What is the severity of CVE-2026-42533?
CVE-2026-42533 has a severity rating of 8.1, categorized as high.
How do I fix CVE-2026-42533?
To fix CVE-2026-42533, update your NGINX Plus or NGINX Open Source to the latest version that addresses this vulnerability.
What systems are affected by CVE-2026-42533?
CVE-2026-42533 affects both NGINX Plus and NGINX Open Source deployments using the map directive with regex matching.
What type of vulnerability is CVE-2026-42533?
CVE-2026-42533 is classified as a Buffer Overflow vulnerability.
What mitigation strategies can be employed for CVE-2026-42533?
Mitigation strategies for CVE-2026-42533 include avoiding the use of regex capture variables in association with the map output variable or ensuring variable cacheability.