CVE-2026-42945

published 13 May 2026 · updated 10 Sep 2026

NGINX ngx_http_rewrite_module vulnerability

9.1CriticalCVSS 8.1EPSS 69%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 69%. Fixed in NGINX Open Source 1.30.1, NGINX Plus R32 P6 and NGINX Plus R36 P4.

NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_rewrite_module module. This vulnerability exists when the rewrite directive is followed by a rewrite, if, or set directive and an unnamed Perl-Compatible Regular Expression (PCRE) capture (for example, $1, $2) with a replacement string that includes a question mark (?). An unauthenticated attacker along with conditions beyond its 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.  Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
F5NGINX Open Source>=0.6.27 <1.30.11.30.1
F5NGINX Plus>=R32 <R32 P6, >=R36 <R36 P4R32 P6, R36 P4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in F5, strongest first

10.0CriticalCISA KEVPublic exploit

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-42945 severity on Zeptric[![CVE-2026-42945](https://zeptric.io/badge/cve/CVE-2026-42945.svg)](https://zeptric.io/cve/CVE-2026-42945)