PHP up to 5.1 tar.c phar_parse_tarfile numeric error

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.6$0-$5k0.69

Summaryinfo

A vulnerability described as critical has been identified in PHP. Impacted is the function phar_parse_tarfile of the file tar.c. Such manipulation leads to numeric error. This vulnerability is referenced as CVE-2012-2386. Furthermore, an exploit is available. Upgrading the affected component is recommended.

Detailsinfo

A vulnerability, which was classified as critical, has been found in PHP (Programming Language Software). Affected by this issue is the function phar_parse_tarfile of the file tar.c. The manipulation with an unknown input leads to a numeric error vulnerability. Using CWE to declare the problem leads to CWE-189. Impacted is confidentiality, integrity, and availability. CVE summarizes:

Integer overflow in the phar_parse_tarfile function in tar.c in the phar extension in PHP before 5.3.14 and 5.4.x before 5.4.4 allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted tar file that triggers a heap-based buffer overflow.

The weakness was published 07/07/2012 by Alexander Gavrun as Bug 823594 as not defined bug report (Bugzilla). The advisory is shared for download at bugzilla.redhat.com. This vulnerability is handled as CVE-2012-2386 since 04/19/2012. The exploitation is known to be easy. The attack may be launched remotely. No form of authentication is required for exploitation. Technical details as well as a public exploit are known.

The exploit is available at securityfocus.com. It is declared as proof-of-concept. As 0-day the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 74645 (openSUSE Security Update : php5 (openSUSE-SU-2012:0695-1)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family SuSE Local Security Checks. The commercial vulnerability scanner Qualys is able to test this issue with plugin 350652 (Amazon Linux Security Advisory for php: ALAS-2012-095).

Upgrading to version 5.1.0 eliminates this vulnerability. Furthermore it is possible to detect and prevent this kind of attack with TippingPoint and the filter 23708.

The vulnerability is also documented in the databases at Exploit-DB (17201), Tenable (74645), SecurityFocus (BID 47545†) and Vulnerability Center (SBV-35480†). Similar entries are available at VDB-5477, VDB-5481 and VDB-59945. 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: 7.3
VulDB Meta Temp Score: 6.6

VulDB Base Score: 7.3
VulDB Temp Score: 6.6
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

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

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

NVD Base Score: 🔍

Exploitinginfo

Class: Numeric error
CWE: CWE-189
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

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

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 74645
Nessus Name: openSUSE Security Update : php5 (openSUSE-SU-2012:0695-1)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Port: 🔍

OpenVAS ID: 71470
OpenVAS Name: Debian Security Advisory DSA 2492-1 (php5)
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: PHP 5.1.0
Patch: 158d8a6b088662ce9d31e0c777c6ebe90efdc854
TippingPoint: 🔍
PaloAlto IPS: 🔍

Timelineinfo

04/22/2011 🔍
04/22/2011 +0 days 🔍
04/19/2012 +363 days 🔍
07/07/2012 +79 days 🔍
07/07/2012 +0 days 🔍
07/08/2012 +1 days 🔍
06/13/2014 +705 days 🔍
03/23/2015 +283 days 🔍
11/24/2024 +3534 days 🔍

Sourcesinfo

Product: php.org

Advisory: Bug 823594
Researcher: Alexander Gavrun
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2012-2386 (🔍)
GCVE (CVE): GCVE-0-2012-2386
GCVE (VulDB): GCVE-100-61220

OVAL: 🔍

SecurityFocus: 47545 - PHP 'phar/tar.c' Heap Buffer Overflow Vulnerability
Vulnerability Center: 35480 - PHP Phar Extension Remote Integer Overflow Vulnerability via a Crafted Tar File, High

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

Entryinfo

Created: 03/23/2015 16:50
Updated: 11/24/2024 03:58
Changes: 03/23/2015 16:50 (65), 04/14/2017 13:53 (16), 12/05/2021 20:56 (4), 12/05/2021 21:04 (1), 11/24/2024 03:58 (19)
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!