CVE-2017-12932
php: Heap use after free in ext/standard/var_unserializer.re
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Ubuntu (low).
Description
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| debian 9 | php7.0 | 7.0.27-0+deb9u1 |
| ubuntu 16.04 | php7.0 | 7.0.25-0ubuntu0.16.04.1 |
| ubuntu 16.04-ESM | php7.0 | 7.0.25-0ubuntu0.16.04.1 |
References
- http://php.net/ChangeLog-7.php
- http://www.securityfocus.com/bid/100427
- https://access.redhat.com/errata/RHSA-2018:1296
- https://access.redhat.com/errata/RHSA-2019:2519
- https://access.redhat.com/security/cve/CVE-2017-12932
- https://bugs.php.net/bug.php?id=74103
- https://github.com/php/php-src/commit/1a23ebc1fff59bf480ca92963b36eba5c1b904c4
- https://nvd.nist.gov/vuln/detail/CVE-2017-12932