Critical severity · published Jan 11, 2017
CVE-2017-5340
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…
9.8
CVSS
16.7%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)16.7% · higher than 97% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PH
PHP · PHP
7.0.0 before 7.0.15; 7.1.0 before 7.1.1 · source: NVD
CD
Clustered Data Ontap · Netapp
All versions, or not specified · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2017-5340
CVE.org
https://www.cve.org/CVERecord?id=CVE-2017-5340
Third Party Advisory
http://www.securityfocus.com/bid/95371
Third Party Advisory
http://www.securitytracker.com/id/1037659
Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:1296
Exploit
https://bugs.php.net/bug.php?id=73832
Patch
https://github.com/php/php-src/commit/4cc0286f2f3780abc6084bcdae5dce595daa3c12
Third Party Advisory
https://security.netapp.com/advisory/ntap-20180112-0001/
More from PHP
9.8
CVE-2026-109618
RCE via OOM corruption
9.8
CVE-2024-4577
Argument Injection in PHP-CGI
9.8
CVE-2019-11043
Underflow in PHP-FPM can lead to RCE
9.8
CVE-2016-10033
The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra parameters to the mail command and consequently execute…
9.8
CVE-2012-1823
PHP-CGI Query String Parameter Vulnerability
