CVE-2026-42533: 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...
High CVSS 8.1
- CVE id
- CVE-2026-42533
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| NGINX Runtimes and servers |
>= 0.9.6, < 1.30.4 >= 1.31.0, < 1.31.3 |
1.30.4, 1.31.3 |
| NGINX App Protect WAF Runtimes and servers |
>= 4.11.0, <= 4.16.0 >= 5.2.0, <= 5.8.0 >= 5.9.0, < 5.13.4 |
5.13.4 |
| NGINX Gateway Fabric Runtimes and servers |
>= 1.3.0, <= 1.6.2 >= 2.0.0, < 2.6.7 |
2.6.7 |
| F5 NGINX Ingress Controller Runtimes and servers |
>= 3.5.0, <= 3.7.2 >= 5.0.0, < 5.5.3 |
5.5.3 |
| NGINX Plus Runtimes and servers |
>= 37.0.0.1, < 37.0.3.1 >= 33, < 36 >= 36, < 37 >= 36.1, < 36.2 >= 36.2, < 36.3 >= 36.3, < 36.4 >= 36.4, < 36.5 >= 36.5, < 36.6 >= 36.6, < 36.7 |
36, 36.2, 36.3, 36.4, 36.5, 36.6, 36.7, 37, 37.0.3.1 |
How to fix it
NGINX (Runtimes and servers)
Upgrade NGINX to the fixed release of the line you run: 1.30.4, 1.31.3.
nginx -v
- Install the patched NGINX release of your branch (the nginx image tag, the nginx.org packages, or your distribution's security update) and restart NGINX; with OpenResty, upgrade to the OpenResty release built on it.
NGINX App Protect WAF (Runtimes and servers)
Upgrade NGINX App Protect WAF to 5.13.4 or later.
- Upgrade NGINX App Protect WAF (the app-protect packages, or the waf-enforcer and waf-config-mgr images) to the patched release.
NGINX Gateway Fabric (Runtimes and servers)
Upgrade NGINX Gateway Fabric to 2.6.7 or later.
kubectl get deploy -A -l app.kubernetes.io/name=nginx-gateway-fabric -o jsonpath='{..image}'
- Upgrade NGINX Gateway Fabric (its Helm chart or the nginx-gateway-fabric images) to the patched release.
F5 NGINX Ingress Controller (Runtimes and servers)
Upgrade F5 NGINX Ingress Controller to 5.5.3 or later.
kubectl get deploy -A -l app.kubernetes.io/name=nginx-ingress -o jsonpath='{..image}'
- Upgrade the NGINX Ingress Controller image (nginx/nginx-ingress or nginx-plus-ingress) or its Helm chart to the patched release and roll it out to every cluster.
NGINX Plus (Runtimes and servers)
Upgrade NGINX Plus to the fixed release of the line you run: 36, 36.2, 36.3, 36.4, 36.5, 36.6, 36.7, 37, 37.0.3.1.
nginx -v
- Upgrade NGINX Plus to the patched release from the F5 repository (or your nginx-plus image) and restart it.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
Impact: This vulnerability may allow remote attackers to cause a denial-of-service (DoS) on the NGINX system or to possibly trigger a code execution. There is no control plane exposure; this is a data plane issue only.
Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.
References
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.