PHP up to 5.5.35/5.6.21 ext/standard/html.c htmlspecialchars integer overflow

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

Summaryinfo

A vulnerability was found in PHP up to 5.5.35/5.6.21 and classified as critical. Impacted is the function htmlspecialchars of the file ext/standard/html.c. The manipulation results in integer overflow. This vulnerability is reported as CVE-2016-5094. The attack can be launched remotely. No exploit exists. It is suggested to upgrade the affected component.

Detailsinfo

A vulnerability classified as critical has been found in PHP up to 5.5.35/5.6.21 (Programming Language Software). Affected is the function htmlspecialchars of the file ext/standard/html.c. The manipulation with an unknown input leads to a integer overflow vulnerability. CWE is classifying the issue as 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. This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:

Integer overflow in the php_html_entities function in ext/standard/html.c in PHP before 5.5.36 and 5.6.x before 5.6.22 allows remote attackers to cause a denial of service or possibly have unspecified other impact by triggering a large output string from the htmlspecialchars function.

The weakness was disclosed 08/07/2016 (Website). The advisory is shared for download at php.net. This vulnerability is traded as CVE-2016-5094 since 05/26/2016. The exploitability is told to be easy. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. There are known technical details, but no exploit is available.

The vulnerability scanner Nessus provides a plugin with the ID 91900 (Debian DLA-533-1 : php5 security update), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 350271 (Amazon Linux Security Advisory for php55: ALAS-2016-707).

Upgrading to version 5.5.36 or 5.6.22 eliminates this vulnerability. A possible mitigation has been published even before and not after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Tenable (91900) and SecurityFocus (BID 90857†). The entries VDB-67396, VDB-67398, VDB-67420 and VDB-67724 are pretty similar. Once again VulDB remains the best source 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: 8.6
VulDB Meta Temp Score: 8.4

VulDB Base Score: 8.6
VulDB Temp Score: 8.2
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 8.6
NVD Vector: 🔍

CVSSv2info

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

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

NVD Base Score: 🔍

Exploitinginfo

Class: Integer overflow
CWE: 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-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 91900
Nessus Name: Debian DLA-533-1 : php5 security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 865775
OpenVAS Name: SuSE Update for php5 openSUSE-SU-2016:1553-1 (php5)
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: PHP 5.5.36/5.6.22
Patch: github.com

Timelineinfo

05/25/2016 🔍
05/26/2016 +1 days 🔍
06/29/2016 +34 days 🔍
07/01/2016 +2 days 🔍
08/07/2016 +37 days 🔍
08/07/2016 +0 days 🔍
08/08/2016 +1 days 🔍
09/13/2022 +2227 days 🔍

Sourcesinfo

Product: php.org

Advisory: RHSA-2016:2750
Status: Not defined
Confirmation: 🔍

CVE: CVE-2016-5094 (🔍)
GCVE (CVE): GCVE-0-2016-5094
GCVE (VulDB): GCVE-100-90612

OVAL: 🔍

SecurityFocus: 90857 - PHP 'php_html_entities()' Function Integer Overflow Vulnerability

See also: 🔍

Entryinfo

Created: 08/08/2016 15:19
Updated: 09/13/2022 07:03
Changes: 08/08/2016 15:19 (67), 03/22/2019 07:27 (13), 09/13/2022 07:03 (4)
Complete: 🔍
Cache ID: 216::103

Once again VulDB remains the best source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!