CVE-2017-5340
Critical · 9.8CVSS
9.8
EPSS
16.7%
Published
Jan 11, 2017
CISA due date
—
The record
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
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-bcmath | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-cli | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-common | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-dba | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-dbg | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-debuginfo | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-devel | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-embedded | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-enchant | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-fpm | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-gd | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-gmp | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-imap | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-intl | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-json | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-ldap | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-mbstring | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-mysqlnd | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-odbc | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-opcache | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-pdo | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-pgsql | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-process | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-pspell | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-recode | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-snmp | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-soap | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-tidy | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-xml | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-xmlrpc | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-php70-php-zip | 0 | 0:7.0.27-1.el6 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-bcmath | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-cli | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-common | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-dba | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-dbg | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-debuginfo | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-devel | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-embedded | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-enchant | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-fpm | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-gd | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-gmp | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-intl | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-json | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-ldap | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-mbstring | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-mysqlnd | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-odbc | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-opcache | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-pdo | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-pgsql | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-process | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-pspell | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-recode | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-snmp | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-soap | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-xml | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-xmlrpc | 0 | 0:7.0.27-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-php70-php-zip | 0 | 0:7.0.27-1.el7 |
| SUSE:Linux Enterprise Module for Web and Scripting 12 | php7 | 0 | 7.0.7-35.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP1 | php7 | 0 | 7.0.7-35.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | php7 | 0 | 7.0.7-35.1 |
| Ubuntu:16.04:LTS | php7.0 | 0 | 7.0.15-0ubuntu0.16.04.2 |
Related vulnerabilities
- CVE-2017-16642 In PHP before 5.6.32, 7.x before 7.0.25, and 7.1.x before 7.1.11, an error in the date… Also affects rh-php70-php
- CVE-2017-12933 The finish_nested_data function in ext/standard/var_unserializer.re in PHP before 5.6.31… Also affects rh-php70-php
- CVE-2017-7890 The GIF decoding function gdImageCreateFromGifCtx in gd_gif_in.c in the GD Graphics… Also affects rh-php70-php
- CVE-2016-10158 The exif_convert_any_to_int function in ext/exif/exif.c in PHP before 5.6.30, 7.0.x… Also affects rh-php70-php
- CVE-2016-10161 The object_common1 function in ext/standard/var_unserializer.c in PHP before 5.6.30… Also affects rh-php70-php
- CVE-2016-7479 In all versions of PHP 7, during the unserialization process, resizing the 'properties'… Also affects rh-php70-php
- CVE-2016-7418 The php_wddx_push_element function in ext/wddx/wddx.c in PHP before 5.6.26 and 7.x before… Also affects rh-php70-php
- CVE-2016-10166 Integer underflow in the _gdContributionsAlloc function in gd_interpolation.c in the GD… Also affects php7