Security Advisory CVE-2026-42945: Kerentanan pada NGINX Plus dan NGINX Open Source
Summary
A heap-based buffer overflow vulnerability has been discovered in the ngx_http_rewrite_module of NGINX Plus and NGINX Open Source. This vulnerability can lead to memory corruption in the NGINX worker process, potentially resulting in Denial of Service (DoS) or Remote Code Execution (RCE).
Affected Products
- NGINX Open Source version 0.6.27 prior to 1.30.1
- NGINX Plus R32 prior to R32 P6
- NGINX Plus R36 prior to R36 P4
- NGINX Plus prior to R37
Technical Details
This heap-based buffer overflow vulnerability (CVE-2026-42945) affects the ngx_http_rewrite_module. It occurs when using rewrite, if, or set directives utilizing unnamed PCRE captures such as $1 or $2 with specific replacement strings, which can cause memory corruption in the NGINX worker process.
Impact
- Denial of Service (DoS)
- Possible Remote Code Execution (RCE)
Mitigation
- Immediately update NGINX Open Source and NGINX Plus to the latest versions.
- Review
rewrite,if, andsetconfigurations using PCRE captures such as$1or$2, specifically those utilizing the "?" character in the replacement string.
References
- Security Advisory CVE-2026-42945
Advisory ini disajikan tim ICT Cybersecurity PT Pertamina Bina Medika IHC sebagai informasi kesadaran keamanan. Verifikasi pada sumber resmi sebelum tindakan.