PHP 5.5.32 ext/phar/zip.c phar_parse_zipfile memory corruption
CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
---|---|---|
8.4 | $0-$5k | 0.00 |
A vulnerability was found in PHP 5.5.32 (Programming Language Software). It has been rated as critical. Affected by this issue is the function phar_parse_zipfile
of the file ext/phar/zip.c. The manipulation with an unknown input leads to a memory corruption vulnerability. Using CWE to declare the problem leads to CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. Impacted is confidentiality, integrity, and availability.
The weakness was presented 03/13/2016 as confirmed mailinglist post (oss-sec). The advisory is shared for download at seclists.org. This vulnerability is handled as CVE-2016-3142 since 03/13/2016. The exploitation is known to be easy. The attack may be launched remotely. No form of authentication is required for exploitation. There are known technical details, but no exploit is available. The following code is the reason for this vulnerability:
if (!memcmp(p + 1, "K\5\6", 3)) {
The vulnerability scanner Nessus provides a plugin with the ID 93161 (SUSE SLES11 Security Update : php53 (SUSE-SU-2016:1638-1) (BACKRONYM)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family SuSE Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 168777 (SUSE Enterprise Linux Security update for php53 (SUSE-SU-2016:1145-1)).
Applying a patch is able to eliminate this problem. The bugfix is ready for download at git.php.net. A possible mitigation has been published 4 months after the disclosure of the vulnerability. The vulnerability will be addressed with the following lines of code:
if ((p - buf) + sizeof(locator) <= size && !memcmp(p + 1, "K\5\6", 3)) {
The vulnerability is also documented in the databases at X-Force (111457), Tenable (93161) and SecurityFocus (BID 44951†).
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB CVSS-B Score: 🔍VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 9.0VulDB Meta Temp Score: 8.4
VulDB Base Score: 9.8
VulDB Temp Score: 8.5
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 8.2
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: Memory corruptionCWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍
Local: No
Remote: Yes
Availability: 🔍
Status: Unproven
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
0-Day | unlock | unlock | unlock | unlock |
---|---|---|---|---|
Today | unlock | unlock | unlock | unlock |
Nessus ID: 93161
Nessus Name: SUSE SLES11 Security Update : php53 (SUSE-SU-2016:1638-1) (BACKRONYM)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
OpenVAS ID: 801105
OpenVAS Name: Apple Mac OS X Multiple Vulnerabilities-01 November-2016
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Patch: a6fdc5bb27b20d889de0cd29318b3968aabb57bd
Timeline
03/13/2016 🔍03/13/2016 🔍
03/15/2016 🔍
03/31/2016 🔍
06/21/2016 🔍
08/29/2016 🔍
07/10/2022 🔍
Sources
Product: php.orgAdvisory: USN-2952-1
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2016-3142 (🔍)
X-Force: 111457 - PHP phar_parse_zipfile code execution
SecurityFocus: 44951
SecurityTracker: 1035255
Entry
Created: 03/15/2016 12:30Updated: 07/10/2022 13:10
Changes: 03/15/2016 12:30 (55), 09/21/2018 09:30 (27), 07/10/2022 13:03 (6), 07/10/2022 13:10 (1)
Complete: 🔍
Cache ID: 18:18D:103
No comments yet. Languages: en.
Please log in to comment.