Synopsis
The remote web server uses a version of PHP that is affected by multiple vulnerabilities.
Description
Versions of PHP 5.4.x earlier than 5.4.44, 5.5.x earlier than 5.5.28, or 5.6.x earlier than 5.6.12 are vulnerable to the following issues :
- A use-after-free error exists in file 'spl_dllist.c' due to improper sanitization of input to the unserialize() function. An attacker can exploit this, by using a specially crafted SplDoublyLinkedList object, to deference freed memory and thus execute arbitrary code.
- A use-after-free error exists in file 'spl_observer.c' due to improper sanitization of input to the unserialize() function. An attacker can exploit this, by using a specially crafted SplObjectStorage object, to deference freed memory and thus execute arbitrary code.
- A use-after-free error exists in file 'spl_array.c' due to improper sanitization of input to the unserialize() function. An attacker can exploit this, by using a specially crafted SplArrayObject object, to deference freed memory and thus execute arbitrary code.
- A flaw exists in file 'zend_exceptions.c' due to the improper use of the function unserialize() during recursive method calls. A remote attacker can exploit this to crash an application using PHP.
- A flaw exists in file 'zend_exceptions.c' due to insufficient type checking by functions unserialize() and __toString(). A remote attacker can exploit this to cause a NULL pointer deference or unexpected method execution, thus causing an application using PHP to crash.
- A path traversal flaw exists in file 'phar_object.c' due to improper sanitization of user-supplied input. An attacker can exploit this to write arbitrary files.
- Multiple type confusion flaws exist in the _call() method in file 'php_http.c' when handling calls for zend_hash_get_current_key or 'Z*'. An attacker can exploit this to disclose memory contents or crash an application using PHP.
- A dangling pointer error exists in file 'spl_array.c' due to improper sanitization of input to the unserialize() function. An attacker can exploit this, by using a specially crafted SplDoublyLinkedList object, to gain control over a deallocated pointer and thus execute arbitrary code.
- The openssl_random_pseudo_bytes() function in file 'openssl.c' does not generate sufficiently random numbers. This allows an attacker to more easily predict the results, thus allowing further attacks to be carried out.
- An integer truncation flaw exists in the zend_hash_compare() function in 'zend_hash.c' that is triggered when comparing arrays. A remote attacker can exploit this to cause arrays to be improperly matched during comparison.
Solution
Upgrade to PHP version 5.6.12 or later. If 5.6.12 cannot be installed, 5.4.44 and 5.5.28 are also patched for these vulnerabilities.
Plugin Details
Nessus ID: 85298, 85299, 85300
Risk Information
Vector: CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C
Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Temporal Vector: CVSS:3.0/E:F/RL:O/RC:C
Vulnerability Information
CPE: cpe:/a:php:php
Patch Publication Date: 8/6/2015
Vulnerability Publication Date: 7/30/2015