PT-2026-40681
CVE-2026-42945
·
Published
2026-05-13
·
Updated
2026-11-11
Description by
CVSS 4.0
9.2
CriticalMetricsAV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Name of the Vulnerable Software and Affected Versions
NGINX Plus versions 0.6.27 through 1.30.0
NGINX Open Source versions 0.6.27 through 1.30.0
Description
A heap buffer overflow exists in the
ngx http rewrite module module. The issue occurs when a rewrite directive is followed by a rewrite, if, or set directive and utilizes an unnamed Perl-Compatible Regular Expression (PCRE) capture (e.g., $1, $2) with a replacement string containing a question mark (?). The root cause is inconsistent state management in the internal rewrite engine where an is args flag remains enabled after the length-calculation pass, causing the server to write escaped values that exceed the allocated buffer during the copy pass.An unauthenticated remote attacker can exploit this by sending crafted HTTP requests. This typically results in a denial of service due to the NGINX worker process restarting. However, on systems where Address Space Layout Randomization (ASLR)—a security technique that randomizes memory addresses to prevent exploitation—is disabled or bypassed, arbitrary code execution is possible. Approximately 18.9 million internet-facing instances were estimated to be exposed, and real-world exploitation was observed shortly after public disclosure.
Recommendations
Update NGINX Open Source to version 1.30.1 or 1.31.0.
Update NGINX Plus to version R32 P6 or R36 P4.
As a temporary mitigation, replace all unnamed PCRE captures with named captures in the affected
rewrite, if, or set directives. Found an issue in the description? Have something to add? Feel free to write us 👾