PHP up to 5.5.37/5.6.23/7.0.8 Error bzread out-of-bounds write

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.
7.4$0-$5k0.00

Summaryinfo

A vulnerability, which was classified as critical, has been found in PHP up to 5.5.37/5.6.23/7.0.8. This vulnerability affects the function bzread of the component Error Handler. The manipulation leads to out-of-bounds write. This vulnerability is listed as CVE-2016-5399. The attack must be carried out locally. In addition, an exploit is available. It is advisable to upgrade the affected component.

Detailsinfo

A vulnerability was found in PHP up to 5.5.37/5.6.23/7.0.8 (Programming Language Software) and classified as critical. This issue affects the function bzread of the component Error Handler. The manipulation with an unknown input leads to a out-of-bounds write vulnerability. Using CWE to declare the problem leads to CWE-787. The product writes data past the end, or before the beginning, of the intended buffer. Impacted is confidentiality, integrity, and availability. The summary by CVE is:

The bzread function in ext/bz2/bz2.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 allows remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted bz2 archive.

The weakness was presented 07/21/2016 as Version 7.0.9 as confirmed changelog (Website). It is possible to read the advisory at php.net. The identification of this vulnerability is CVE-2016-5399 since 06/10/2016. The exploitation is known to be easy. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. It demands that the victim is doing some kind of user interaction. Technical details as well as a public exploit are known.

The exploit is available at exploit-db.com. It is declared as proof-of-concept. We expect the 0-day to have been worth approximately $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 95344 (CentOS 7 : php (CESA-2016:2598)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family CentOS Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 175796 (Debian Security Update for php5 (DSA 3631-1) (HTTPoxy)).

Upgrading to version 5.5.38, 5.6.24 or 7.0.9 eliminates this vulnerability. A possible mitigation has been published immediately after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Exploit-DB (40155), Tenable (95344) and SecurityFocus (BID 92051†). See VDB-67396, VDB-67398, VDB-67420 and VDB-67724 for similar entries. Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.8
VulDB Meta Temp Score: 7.4

VulDB Base Score: 7.8
VulDB Temp Score: 7.0
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 7.8
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

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

NVD Base Score: 🔍

Exploitinginfo

Class: Out-of-bounds write
CWE: CWE-787 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 95344
Nessus Name: CentOS 7 : php (CESA-2016:2598)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 703631
OpenVAS Name: Debian Security Advisory DSA 3631-1 (php5 - security update)
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

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

Upgrade: PHP 5.5.38/5.6.24/7.0.9

Timelineinfo

06/10/2016 🔍
07/21/2016 +41 days 🔍
07/21/2016 +0 days 🔍
07/21/2016 +0 days 🔍
07/22/2016 +1 days 🔍
11/28/2016 +129 days 🔍
04/21/2017 +144 days 🔍
01/27/2025 +2838 days 🔍

Sourcesinfo

Product: php.org

Advisory: Version 7.0.9
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2016-5399 (🔍)
GCVE (CVE): GCVE-0-2016-5399
GCVE (VulDB): GCVE-100-90203

OVAL: 🔍

SecurityFocus: 92051 - PHP 'bzread()' Function Out of Bounds Remote Code Execution Vulnerability
SecurityTracker: 1036430

scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍

Entryinfo

Created: 07/22/2016 20:06
Updated: 01/27/2025 01:01
Changes: 07/22/2016 20:06 (72), 03/07/2019 08:17 (15), 09/09/2022 08:49 (3), 01/27/2025 01:01 (14)
Complete: 🔍
Cache ID: 216::103

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you want to use VulDB in your project?

Use the official API to access entries easily!