PHP up to 7.0.14/7.1.0 Serialization Zend/zend_hash.c integer overflow
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 8.4 | $0-$5k | 0.00 |
Summary
A vulnerability classified as critical has been found in PHP up to 7.0.14/7.1.0. Affected is an unknown function of the file Zend/zend_hash.c of the component Serialization. The manipulation leads to integer overflow. This vulnerability is documented as CVE-2017-5340. The attack can be initiated remotely. There is not any exploit available. It is recommended to upgrade the affected component.
Details
A vulnerability was found in PHP up to 7.0.14/7.1.0 (Programming Language Software) and classified as critical. This issue affects some unknown processing of the file Zend/zend_hash.c of the component Serialization. The manipulation with an unknown input leads to a integer overflow vulnerability. Using CWE to declare the problem leads to CWE-190. The product performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control. Impacted is confidentiality, integrity, and availability. The summary by CVE is:
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.
The bug was discovered 01/11/2017. The weakness was released 01/11/2017 (Website). It is possible to read the advisory at securityfocus.com. The identification of this vulnerability is CVE-2017-5340 since 01/11/2017. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details of the vulnerability are known, but there is no available exploit.
The vulnerability scanner Nessus provides a plugin with the ID 96800 (PHP 7.0.x < 7.0.15 Multiple Vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family CGI abuses and running in the context r. The commercial vulnerability scanner Qualys is able to test this issue with plugin 169771 (SUSE Enterprise Linux Security Update for php7 (SUSE-SU-2017:0534-1)).
Upgrading to version 7.0.15 or 7.1.1 eliminates this vulnerability. A possible mitigation has been published 2 weeks after the disclosure of the vulnerability.
The vulnerability is also documented in the databases at Tenable (96800) and SecurityFocus (BID 95371†). Entries connected to this vulnerability are available at VDB-95037, VDB-95195, VDB-95879 and VDB-98125. If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Product
Type
Name
Version
License
Website
- Product: https://www.php.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 8.5VulDB Meta Temp Score: 8.4
VulDB Base Score: 7.3
VulDB Temp Score: 7.0
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 9.8
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Integer overflowCWE: CWE-190 / CWE-189
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 96800
Nessus Name: PHP 7.0.x < 7.0.15 Multiple Vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
OpenVAS ID: 850584
OpenVAS Name: SuSE Update for php7 openSUSE-SU-2017:0588-1 (php7)
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Upgrade: PHP 7.0.15/7.1.1
Patch: github.com
Timeline
01/11/2017 🔍01/11/2017 🔍
01/11/2017 🔍
01/11/2017 🔍
01/11/2017 🔍
01/11/2017 🔍
01/19/2017 🔍
01/26/2017 🔍
10/28/2022 🔍
Sources
Product: php.orgAdvisory: RHSA-2018:1296⛔
Status: Not defined
Confirmation: 🔍
CVE: CVE-2017-5340 (🔍)
GCVE (CVE): GCVE-0-2017-5340
GCVE (VulDB): GCVE-100-95171
SecurityFocus: 95371 - PHP CVE-2017-5340 Remote Code Execution Vulnerability
OSVDB: - CVE-2017-5340 - PHP - Integer Overflow Issue
SecurityTracker: 1037659
See also: 🔍
Entry
Created: 01/11/2017 15:04Updated: 10/28/2022 11:23
Changes: 01/11/2017 15:04 (75), 07/19/2020 12:48 (7), 10/28/2022 11:23 (5)
Complete: 🔍
Cache ID: 216:78F:103
No comments yet. Languages: en.
Please log in to comment.