ext/standard/var_unserializer.re in PHP 7.0.x before 7.0.21 and 7.1.x before 7.1.7 is prone to a heap use after free while unserializing untrusted data, related to the zval_get_type function in Zend/zend_types.h. Exploitation of this issue can have an unspecified impact on the integrity of PHP.
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
Link | Tags |
---|---|
https://bugs.php.net/bug.php?id=74101 | third party advisory issue tracking |
http://www.securityfocus.com/bid/100428 | third party advisory vdb entry |
https://access.redhat.com/errata/RHSA-2018:1296 | vendor advisory |
https://www.debian.org/security/2018/dsa-4080 | vendor advisory |
http://php.net/ChangeLog-7.php | vendor advisory |