home / blog

2026-11-06 · high

CVE-2026-42533: Heap Buffer Overflow in Nginx

Nginx has a heap buffer overflow vulnerability (CVSS 8.1) that can allow DoS or RCE in the data plane.

CVE-2026-42533: Heap Buffer Overflow in Nginx

CVE-2026-42533 identifies a heap buffer overflow vulnerability in Nginx Plus and Nginx Open Source. The flaw manifests when the map directive uses regex pattern matching and capture variables are referenced before the map output variable. An unauthenticated attacker can exploit it with crafted HTTP requests, potentially causing Nginx worker process crashes or, on systems without ASLR, remote code execution (RCE).

The vulnerability has a CVSS score of 8.1, classifying it as high severity. It was published by NVD on July 15, 2026. The impact is limited to the data plane (the web server itself), with no control plane exposure. Current signals on social media report post-patch issues on AlmaLinux 8, 9, and 10 (HTTP 500 errors encountered after applying the fix), suggesting that a patch has been distributed but with potential side effects. Currently, no public exploits are reported on GitHub repositories.

Priority defensive actions include: verifying the release of official patches from Nginx and your Linux distribution vendor; thoroughly testing the patch in non-production environments before deployment to exclude regressions; temporarily disabling regex-based map directives if not strictly necessary until patch stability is confirmed; monitoring Nginx worker processes for unexpected restarts. Consult official Nginx advisories and your distribution's changelog for the exact fix timing and compatibility.

At a glance

What
A heap buffer overflow vulnerability in Nginx Plus and Nginx Open Source triggered when the map directive uses regex pattern matching with capture variables referenced before the map output variable, or with non-cacheable variables under specific conditions. Requires crafted HTTP requests from an unauthenticated attacker.
Severity
CVSS 8.1 (high). Impact: denial-of-service (worker process crash) or possible remote code execution (RCE) on systems without ASLR or where ASLR can be bypassed.
Affected versions
Nginx Plus and Nginx Open Source. Note: versions that have reached End of Technical Support (EoTS) are not evaluated by NVD.
Fix
Check official Nginx communications for available patches. Recent signals suggest a fix has been distributed; consult your Linux distribution vendor for the official release timeline.
Status
Published in NVD on July 15, 2026. Recent signals on social media report post-patch impacts on AlmaLinux 8, 9, and 10. No public exploit declared on GitHub repositories.
Action
Priority: test official patches in non-production environments before deployment; monitor Nginx worker processes for unexpected restarts; temporarily disable regex-based map directives if not critical; consult Nginx advisories and your Linux distribution vendor for patch timing and compatibility.

Sources: NVD, CVE-2026-42533

← All articles