PHP 5.5.32 ext/phar/zip.c phar_parse_zipfile memory corruption

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
8.4$0-$5k0.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) and Tenable (93161).

Productinfo

Type

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB CVSS-B Score: 🔍
VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 9.0
VulDB 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: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
unlockunlockunlockunlockunlockunlock
unlockunlockunlockunlockunlockunlock
unlockunlockunlockunlockunlockunlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Memory corruption
CWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Local: No
Remote: Yes

Availability: 🔍
Status: Unproven

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-Dayunlockunlockunlockunlock
Todayunlockunlockunlockunlock

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 Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Patch
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Patch: a6fdc5bb27b20d889de0cd29318b3968aabb57bd

Timelineinfo

03/13/2016 🔍
03/13/2016 +0 days 🔍
03/15/2016 +2 days 🔍
03/31/2016 +15 days 🔍
06/21/2016 +82 days 🔍
08/29/2016 +69 days 🔍
07/10/2022 +2141 days 🔍

Sourcesinfo

Product: php.org

Advisory: USN-2952-1
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2016-3142 (🔍)
X-Force: 111457 - PHP phar_parse_zipfile code execution
SecurityTracker: 1035255
SecurityFocus: 44951

Entryinfo

Created: 03/15/2016 12:30 PM
Updated: 07/10/2022 01:10 PM
Changes: 03/15/2016 12:30 PM (55), 09/21/2018 09:30 AM (27), 07/10/2022 01:03 PM (6), 07/10/2022 01:10 PM (1)
Complete: 🔍
Cache ID: 44:714:40

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you need the next level of professionalism?

Upgrade your account now!