CVE-2017-5340
php: Use of uninitialized memory in unserialize()
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Amazon (medium), Ubuntu (medium).
Description
Zend/zend_hash.c in PHP before 7.0.15 and 7.1.x before 7.1.1 mishandles certain cases that require large array allocations, which allows remote attackers to execute arbitrary code or cause a denial of service (integer overflow, uninitialized memory access, and use of arbitrary destructor function pointers) via crafted serialized data.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| amazon linux 1 | php70, php70-bcmath, php70-cli and 31 more | 7.0.16-1.21.amzn1 |
| Red Hat | php, php-bcmath, php-cli and 25 more | no fix listed |
| ubuntu 16.04 | php7.0 | 7.0.15-0ubuntu0.16.04.2 |
| ubuntu 16.04-ESM | php7.0 | 7.0.15-0ubuntu0.16.04.2 |
| ubuntu 16.10 | php7.0 | 7.0.15-0ubuntu0.16.10.2 |
Show all 65 entries from 5 sources
| Source | Package | Fixed in |
|---|---|---|
| amazon linux 1 | php70 | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-bcmath | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-cli | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-common | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-dba | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-dbg | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-debuginfo | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-devel | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-embedded | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-enchant | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-fpm | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-gd | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-gmp | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-imap | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-intl | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-json | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-ldap | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-mbstring | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-mcrypt | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-mysqlnd | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-odbc | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-opcache | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-pdo | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-pdo-dblib | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-pgsql | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-process | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-pspell | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-recode | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-snmp | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-soap | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-tidy | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-xml | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-xmlrpc | 7.0.16-1.21.amzn1 |
| amazon linux 1 | php70-zip | 7.0.16-1.21.amzn1 |
| Red Hat | php | no fix listed |
| Red Hat | php-bcmath | no fix listed |
| Red Hat | php-cli | no fix listed |
| Red Hat | php-common | no fix listed |
| Red Hat | php-dba | no fix listed |
| Red Hat | php-devel | no fix listed |
| Red Hat | php-embedded | no fix listed |
| Red Hat | php-enchant | no fix listed |
| Red Hat | php-fpm | no fix listed |
| Red Hat | php-gd | no fix listed |
| Red Hat | php-imap | no fix listed |
| Red Hat | php-intl | no fix listed |
| Red Hat | php-ldap | no fix listed |
| Red Hat | php-mbstring | no fix listed |
| Red Hat | php-mysql | no fix listed |
| Red Hat | php-mysqlnd | no fix listed |
| Red Hat | php-odbc | no fix listed |
| Red Hat | php-pdo | no fix listed |
| Red Hat | php-pgsql | no fix listed |
| Red Hat | php-process | no fix listed |
| Red Hat | php-pspell | no fix listed |
| Red Hat | php-recode | no fix listed |
| Red Hat | php-snmp | no fix listed |
| Red Hat | php-soap | no fix listed |
| Red Hat | php-tidy | no fix listed |
| Red Hat | php-xml | no fix listed |
| Red Hat | php-xmlrpc | no fix listed |
| Red Hat | php-zts | no fix listed |
| ubuntu 16.04 | php7.0 | 7.0.15-0ubuntu0.16.04.2 |
| ubuntu 16.04-ESM | php7.0 | 7.0.15-0ubuntu0.16.04.2 |
| ubuntu 16.10 | php7.0 | 7.0.15-0ubuntu0.16.10.2 |
References
- http://www.securityfocus.com/bid/95371
- http://www.securitytracker.com/id/1037659
- https://access.redhat.com/errata/RHSA-2018:1296
- https://access.redhat.com/security/cve/CVE-2017-5340
- https://bugs.php.net/bug.php?id=73832
- https://github.com/php/php-src/commit/4cc0286f2f3780abc6084bcdae5dce595daa3c12
- https://nvd.nist.gov/vuln/detail/CVE-2017-5340
- https://security.netapp.com/advisory/ntap-20180112-0001/