Heap-based buffer overflow in NGINX Open Source and NGINX Plus - CVE-2026-42945
Published: May 14, 2026
NGINX Open Source
NGINX Plus
Detailed vulnerability description
The vulnerability allows a remote attacker to cause a denial of service or execute arbitrary code.
The vulnerability exists due to heap-based buffer overflow in ngx_http_rewrite_module when processing crafted HTTP requests that reach configurations where a rewrite directive is followed by a rewrite, if, or set directive and unnamed PCRE captures are used with a replacement string containing a question mark. A remote attacker can send crafted HTTP requests to cause a denial of service or execute arbitrary code.
Code execution is possible on systems with address space layout randomization disabled. There is no control plane exposure; this is a data plane issue only.