{"id":"CVE-2017-12932","published":"2017-08-18T03:00:00Z","modified":"2024-08-05T18:51:07Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0742,"percentile":0.94583,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.securityfocus.com/bid/100427","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://access.redhat.com/errata/RHSA-2018:1296","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://github.com/php/php-src/commit/1a23ebc1fff59bf480ca92963b36eba5c1b904c4","tags":["x_refsource_CONFIRM"]},{"url":"https://security.netapp.com/advisory/ntap-20180112-0001/","tags":["x_refsource_CONFIRM"]},{"url":"https://bugs.php.net/bug.php?id=74103","tags":["x_refsource_CONFIRM"]},{"url":"https://www.debian.org/security/2018/dsa-4080","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://php.net/ChangeLog-7.php","tags":["x_refsource_CONFIRM"]},{"url":"https://security.gentoo.org/glsa/201709-21","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2519","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":18.9,"factors":[{"name":"EPSS percentile","points":18.92}]},"summary":{"text":"The flaw is a heap use-after-free in ext/standard/var_unserializer.re, the unserialization component of PHP across 7.0.x through 7.0.22 and 7.1.x through 7.1.8. It is triggered by improper use of the hash API for key deletion when an array size is invalid, during unserialization of untrusted data. An attacker would need to supply crafted serialized input that reaches the unserialization path in an affected version.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:56:39Z"},"euvd":{"id":"EUVD-2017-4456","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cve-2014-8142-family-cve-2014-8142","parents":[{"from":"CVE-2015-0231","to":"CVE-2017-12932","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ext/standard/var_unserializer.c","ext/standard/var_unserializer.re"],"commits":["https://github.com/php/php-src/commit/b585a3aed7880a5fa5c18e2b838fc96f40e075bd","https://github.com/php/php-src/commit/1a23ebc1fff59bf480ca92963b36eba5c1b904c4"],"basis":"shared function","functions":["process_nested_data"]}]},{"from":"CVE-2016-7124","to":"CVE-2017-12932","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ext/standard/var_unserializer.c"],"commits":["https://github.com/php/php-src/commit/20ce2fe8e3c211a42fee05a461a5881be9a8790e","https://github.com/php/php-src/commit/1a23ebc1fff59bf480ca92963b36eba5c1b904c4"],"basis":"shared function","functions":["php_var_unserialize_internal"]}]}]}}