PHP up to 5.6.38/7.0.32/7.1.24/7.2.12 PHAR ext/phar/phar.c phar_parse_pharfile out-of-bounds

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

Summaryinfo

A vulnerability identified as critical has been detected in PHP up to 5.6.38/7.0.32/7.1.24/7.2.12. Affected by this issue is the function phar_parse_pharfile of the file ext/phar/phar.c of the component PHAR. This manipulation causes out-of-bounds. This vulnerability is tracked as CVE-2018-20783. The attack is possible to be carried out remotely. No exploit exists. You should upgrade the affected component.

Detailsinfo

A vulnerability classified as critical was found in PHP up to 5.6.38/7.0.32/7.1.24/7.2.12 (Programming Language Software). Affected by this vulnerability is the function phar_parse_pharfile of the file ext/phar/phar.c of the component PHAR. The manipulation with an unknown input leads to a out-of-bounds vulnerability. The CWE definition for the vulnerability is CWE-125. The product reads data past the end, or before the beginning, of the intended buffer. As an impact it is known to affect confidentiality. The summary by CVE is:

In PHP before 5.6.39, 7.x before 7.0.33, 7.1.x before 7.1.25, and 7.2.x before 7.2.13, a buffer over-read in PHAR reading functions may allow an attacker to read allocated or unallocated memory past the actual data when trying to parse a .phar file. This is related to phar_parse_pharfile in ext/phar/phar.c.

The bug was discovered 10/23/2018. The weakness was disclosed 02/21/2019 (Website). The advisory is shared at access.redhat.com. This vulnerability is known as CVE-2018-20783 since 02/21/2019. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details are known, but no exploit is available.

The vulnerability was handled as a non-public zero-day exploit for at least 121 days. During that time the estimated underground price was around $5k-$25k. The commercial vulnerability scanner Qualys is able to test this issue with plugin 172199 (SUSE Enterprise Linux Security Update for php53 (SUSE-SU-2019:14013-1)).

Upgrading to version 5.6.39, 7.0.33, 7.1.24 or 7.2.12 eliminates this vulnerability.

The vulnerability is also documented in the vulnerability database at SecurityFocus (BID 107156†). The entries VDB-131109, VDB-131110, VDB-131111 and VDB-131112 are pretty similar. If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.4
VulDB Meta Temp Score: 6.3

VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 7.5
NVD Vector: 🔍

CVSSv2info

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

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

NVD Base Score: 🔍

Exploitinginfo

Class: Out-of-bounds
CWE: CWE-125 / CWE-119
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

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: PHP 5.6.39/7.0.33/7.1.24/7.2.12

Timelineinfo

10/23/2018 🔍
02/21/2019 +121 days 🔍
02/21/2019 +0 days 🔍
02/22/2019 +1 days 🔍
02/22/2019 +0 days 🔍
07/11/2023 +1600 days 🔍

Sourcesinfo

Product: php.org

Advisory: RHSA-2019:2519
Status: Confirmed

CVE: CVE-2018-20783 (🔍)
GCVE (CVE): GCVE-0-2018-20783
GCVE (VulDB): GCVE-100-131077
SecurityFocus: 107156 - PHP Information Disclosure and Heap Buffer Overflow Vulnerabilities

See also: 🔍

Entryinfo

Created: 02/22/2019 06:49
Updated: 07/11/2023 19:36
Changes: 02/22/2019 06:49 (63), 05/11/2020 20:22 (4), 07/11/2023 19:36 (4)
Complete: 🔍
Cache ID: 216::103

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!