F5-K000161019: Buffer Overflow
NGINX Plus and NGINX Open Source have a vulnerability in the ngxhttprewritemodule module. This vulnerability exists when the "rewrite" directive with a query string is followed (in the same location) by the "if" or "set" directive with an unnamed Perl-Compatible Regular Expression (PCRE) capture. 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 37.0.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 36Fixed in 4Fixed in 32Fixed in 6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.31.0Fixed in 1.30.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in :Fixed in .Fixed in 5.Fixed in 51812227 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.22.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.13.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.9.0