Created php tracking bugs for this issue:
Affects: fedora-all [bug 1377366]
Comment 2Huzaifa S. Sidhpurwala
2016-10-12 09:11:04 UTC
This issue happens when untrusted input is unserialized. Doing so it documented as being unsafe:
http://php.net/manual/en/function.unserialize.php
Do not pass untrusted user input to unserialize(). Unserialization can
result in code being loaded and executed due to object instantiation and
autoloading, and a malicious user may be able to exploit this. Use a safe,
standard data interchange format such as JSON (via json_decode() and
json_encode()) if you need to pass serialized data to the user.
This issue has been addressed in the following products:
Red Hat Software Collections for Red Hat Enterprise Linux 6
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
Red Hat Software Collections for Red Hat Enterprise Linux 7
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
Via RHSA-2018:1296 https://access.redhat.com/errata/RHSA-2018:1296
It was found that the return value is not checked and used on spl_array_get_dimension_ptr_ptr. Vulnerable code: static zval **spl_array_get_dimension_ptr_ptr(int check_inherited, zval *object, zval *offset, int type TSRMLS_DC) /* {{{ */ { .... HashTable *ht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); <--- here is no check ht with NULL } Upstream bug: https://bugs.php.net/bug.php?id=73029 Upstream patch: https://github.com/php/php-src/commit/ecb7f58a069be0dec4a6131b6351a761f808f22e?w=1 CVE assignment: http://seclists.org/oss-sec/2016/q3/518