What’s Vulnerable › Vulnerabilities
CVE-2017-5340
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 16.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2017-01-11 · updated 2026-06-17
- Weakness: CWE-190
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 products
- Clustered Data ONTAP: all versions
- PHP: from 7.0.0 before 7.0.15; from 7.1.0 before 7.1.1 — fixed in 7.0.15, 7.1.1
How to fix
Upgrade to a fixed version: PHP 7.0.15, 7.1.1. Check the vendor advisory for mitigations.
References
- http://www.securityfocus.com/bid/95371
- http://www.securitytracker.com/id/1037659
- https://access.redhat.com/errata/RHSA-2018:1296
- https://bugs.php.net/bug.php?id=73832
- https://github.com/php/php-src/commit/4cc0286f2f3780abc6084bcdae5dce595daa3c12
- https://security.netapp.com/advisory/ntap-20180112-0001/
- http://www.securityfocus.com/bid/95371
- http://www.securitytracker.com/id/1037659
- https://access.redhat.com/errata/RHSA-2018:1296
- https://bugs.php.net/bug.php?id=73832
- https://github.com/php/php-src/commit/4cc0286f2f3780abc6084bcdae5dce595daa3c12
- https://security.netapp.com/advisory/ntap-20180112-0001/
Get alerted when CVE-2017-5340 or the next vulnerability affects your stack