Security Advisory : Kerentanan pada PHP-FPM (CVE-2019-11043)
Summary
Security Advisory regarding a vulnerability in PHP-FPM tracked under CVE-2019-11043.
Affected Products
- PHP version 7.1.x < 7.1.33
- PHP version 7.2.x < 7.2.24
- PHP version 7.3.x < 7.3.11
Technical Details
An input validation error and memory management vulnerability (buffer underflow) was discovered in the path handling function (PATH_INFO) within the fpm_main.c file of PHP-FPM. When Nginx is configured using the fastcgi_split_path_info directive with a specific regular expression that can result in an empty value, an attacker can send specially crafted HTTP requests containing a newline character (%0A). This causes the FPM module to write data past the allocation boundary of the buffer reserved for the FastCGI protocol.
Impact
An attacker can exploit this vulnerability to force the FPM module to write data beyond the reserved buffer allocation boundaries (buffer underflow / out-of-bounds write).
Mitigation
- Upgrade PHP version to 7.1.33, 7.2.24, 7.3.11, or newer.
- Ensure to remove or tighten the use of the
fastcgi_split_path_infodirective and add security blocks to block suspicious requests. - Filter HTTP requests containing hidden characters (
%0Aor linefeed) in unusual URI parts or query parameters using a WAF.
References
- Security Advisory : Kerentanan pada PHP-FPM (CVE-2019-11043)
Advisory ini disajikan tim ICT Cybersecurity PT Pertamina Bina Medika IHC sebagai informasi kesadaran keamanan. Verifikasi pada sumber resmi sebelum tindakan.