ext/standard/var_unserializer.re in PHP 7.0.x through 7.0.22 and 7.1.x through 7.1.8 is prone to a heap use after free while unserializing untrusted data, related to improper use of the hash API for key deletion in a situation with an invalid array size. 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 |
---|---|
http://www.securityfocus.com/bid/100427 | vdb entry third party advisory |
https://access.redhat.com/errata/RHSA-2018:1296 | vendor advisory |
https://github.com/php/php-src/commit/1a23ebc1fff59bf480ca92963b36eba5c1b904c4 | third party advisory patch |
https://security.netapp.com/advisory/ntap-20180112-0001/ | |
https://bugs.php.net/bug.php?id=74103 | issue tracking vendor advisory |
https://www.debian.org/security/2018/dsa-4080 | vendor advisory |
http://php.net/ChangeLog-7.php | release notes vendor advisory |
https://security.gentoo.org/glsa/201709-21 | vendor advisory |
https://access.redhat.com/errata/RHSA-2019:2519 | vendor advisory |