Zero-Day Advisory

Fortinet Discovers Multiple Integer Overflow Vulnerabilities in PHP

Summary

Multiple integer overflow vulnerabilities were discovered in PHP 5.

These vulnerabilities could cause memory corruption due to integer-overflow. Successful exploitation of these vulnerabilities could lead to denial-of-service. Remote code execution is also possible under some conditions.


Solutions

Users should apply the solution provided by PHP.

Additional Information

The vulnerability details can be found below.


Version 5.6.25

Bz2:  Fixed bug #72837 (integer overflow in bzdecompress caused heap corruption).

Curl: Fixed bug #72807 (integer overflow in curl_escape caused heap corruption).

Ereg: Fixed bug #72838 (Integer overflow lead to heap corruption in sql_regcase).

Standard:

    Fixed bug #72836 (integer overflow in base64_decode).

    Fixed bug #72848 (integer overflow in quoted_printable_encode).

    Fixed bug #72849 (integer overflow in urlencode).

    Fixed bug #72850 (integer overflow in php_uuencode).


Version 5.6.26 

Sec Bug #73011 [Asn]: integer overflow in fgets cause heap corruption

Sec Bug #73016 [Opn]: integer overflow in recode_string caused heap corruption

Sec Bug #72893 [Asn]: integer overflow in pg_escape_bytea caused heap corruption

Sec Bug #72874 [Asn]: integer overflow in pg_escape_string caused heap corruption

Sec Bug #72875 [Asn]: integer overflow in php_ldap_do_escape caused heap corruption

Sec Bug #72876 [Asn]: integer overflow in str_pad caused heap corruption

Sec Bug #72894 [Asn]: integer overflow in imap_binary caused heap corruption

Sec Bug #72895 [Asn]: integer overflow in preg_quote caused heap corruption

Acknowledgement

This vulnerability was discovered by Tien Phan of Fortinet's FortiGuard Labs.

IPS Subscription

Fortinet customers who subscribe to Fortinet's intrusion prevention (IPS) service should be protected against this vulnerability with the appropriate configuration parameters in place. Fortinet's IPS service is one component of FortiGuard Subscription Services, which also offer comprehensive solutions such as antivirus, Web content filtering and antispam capabilities. These services enable protection against threats on both application and network layers. FortiGuard Services are continuously updated by FortiGuard Labs, which enables Fortinet to deliver a combination of multi-layered security intelligence and true zero-day protection from new and emerging threats. These updates are delivered to all FortiGate, FortiMail and FortiClient products. Fortinet strictly follows responsible disclosure guidelines to ensure optimum protection during a threat's lifecycle.