PHP up to 5.4.42/5.5.26/5.6.10 ext/phar/phar.c phar_fix_filepath 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

Summaryinfo

A vulnerability has been found in PHP up to 5.4.42/5.5.26/5.6.10 and classified as critical. Affected is the function phar_fix_filepath of the file ext/phar/phar.c. The manipulation leads to memory corruption. This vulnerability is documented as CVE-2015-5590. The attack can be initiated remotely. There is not any exploit available. The affected component should be upgraded.

Detailsinfo

A vulnerability was found in PHP up to 5.4.42/5.5.26/5.6.10 (Programming Language Software) and classified as very critical. This issue affects the function phar_fix_filepath of the file ext/phar/phar.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 summary by CVE is:

Stack-based buffer overflow in the phar_fix_filepath function in ext/phar/phar.c in PHP before 5.4.43, 5.5.x before 5.5.27, and 5.6.x before 5.6.11 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a large length value, as demonstrated by mishandling of an e-mail attachment by the imap PHP extension.

The weakness was released 01/19/2016 (Website). The advisory is shared at bugs.php.net. The identification of this vulnerability is CVE-2015-5590 since 07/17/2015. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details are known, but no exploit is available. The price for an exploit might be around USD $0-$5k at the moment (estimation calculated on 07/03/2022).

We expect the 0-day to have been worth approximately $25k-$100k. The vulnerability scanner Nessus provides a plugin with the ID 85456 (Amazon Linux AMI : php54 (ALAS-2015-583) (BACKRONYM)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Amazon Linux Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 350119 (Amazon Linux Security Advisory for php54: ALAS-2015-583).

Upgrading to version 5.4.43, 5.5.27 or 5.6.11 eliminates this vulnerability. A possible mitigation has been published before and not just after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Tenable (85456) and SecurityFocus (BID 75970†). Entries connected to this vulnerability are available at VDB-76794 and VDB-87406. 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: 8.6
VulDB Meta Temp Score: 8.4

VulDB Base Score: 9.8
VulDB Temp Score: 9.4
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 7.3
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: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 85456
Nessus Name: Amazon Linux AMI : php54 (ALAS-2015-583) (BACKRONYM)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 703344
OpenVAS Name: Debian Security Advisory DSA 3344-1 (php5 - security update)
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.4.43/5.5.27/5.6.11
Patch: 6dedeb40db13971af45276f80b5375030aa7e76f

Timelineinfo

07/17/2015 🔍
07/18/2015 +1 days 🔍
08/17/2015 +30 days 🔍
08/18/2015 +1 days 🔍
01/19/2016 +154 days 🔍
01/19/2016 +0 days 🔍
01/20/2016 +1 days 🔍
07/03/2022 +2356 days 🔍

Sourcesinfo

Product: php.org

Advisory: 69669
Status: Not defined
Confirmation: 🔍

CVE: CVE-2015-5590 (🔍)
GCVE (CVE): GCVE-0-2015-5590
GCVE (VulDB): GCVE-100-80321

OVAL: 🔍

SecurityFocus: 75970 - PHP 'phar_fix_filepath()' Function Stack Buffer Overflow Vulnerability

See also: 🔍

Entryinfo

Created: 01/20/2016 10:06
Updated: 07/03/2022 15:34
Changes: 01/20/2016 10:06 (60), 06/21/2018 09:05 (20), 07/03/2022 15:29 (5), 07/03/2022 15:34 (1)
Complete: 🔍
Cache ID: 216:020:103

Discussion

No comments yet. Languages: en.

Please log in to comment.

Might our Artificial Intelligence support you?

Check our Alexa App!