PHP 5.3.0/5.3.1 Wrapper phar_wrapper_open_dir format string

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.11

Summaryinfo

A vulnerability was found in PHP 5.3.0/5.3.1. It has been declared as critical. Impacted is the function phar_wrapper_open_dir of the component Wrapper. The manipulation results in format string. This vulnerability was named CVE-2010-2094. In addition, an exploit is available. It is recommended to upgrade the affected component.

Detailsinfo

A vulnerability classified as critical has been found in PHP 5.3.0/5.3.1 (Programming Language Software). Affected is the function phar_wrapper_open_dir of the component Wrapper. The manipulation with an unknown input leads to a format string vulnerability. CWE is classifying the issue as CWE-134. The product uses a function that accepts a format string as an argument, but the format string originates from an external source. This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:

Multiple format string vulnerabilities in the phar extension in PHP 5.3 before 5.3.2 allow context-dependent attackers to obtain sensitive information (memory contents) and possibly execute arbitrary code via a crafted phar:// URI that is not properly handled by the (1) phar_stream_flush, (2) phar_wrapper_unlink, (3) phar_parse_url, or (4) phar_wrapper_open_url functions in ext/phar/stream.c; and the (5) phar_wrapper_open_dir function in ext/phar/dirstream.c, which triggers errors in the php_stream_wrapper_log_error function.

The weakness was presented 05/27/2010 by Stefan Esser (Website). The advisory is shared for download at vupen.com. This vulnerability is traded as CVE-2010-2094 since 05/27/2010. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. Technical details and a public exploit are known.

The exploit is shared for download at exploit-db.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 56499 (FreeBSD : pecl-phar -- format string vulnerability (da3d381b-0ee6-11e0-becc-0022156e8794)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family FreeBSD Local Security Checks. The commercial vulnerability scanner Qualys is able to test this issue with plugin 12365 (PHP "ext/phar/stream.c" and "ext/phar/dirstream.c" Multiple Format String Vulnerabilities).

Upgrading to version 5.3.1 eliminates this vulnerability.

The vulnerability is also documented in the databases at Exploit-DB (33988), Tenable (56499), SecurityFocus (BID 40173†) and Vulnerability Center (SBV-25842†). See VDB-4322 and VDB-54852 for similar entries. 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: Format string
CWE: CWE-134 / CWE-119
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: 56499
Nessus Name: FreeBSD : pecl-phar -- format string vulnerability (da3d381b-0ee6-11e0-becc-0022156e8794)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Port: 🔍

OpenVAS ID: 68831
OpenVAS Name: FreeBSD Ports: pecl-phar
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.3.1

Timelineinfo

05/14/2010 🔍
05/14/2010 +0 days 🔍
05/24/2010 +10 days 🔍
05/27/2010 +3 days 🔍
05/27/2010 +0 days 🔍
05/27/2010 +0 days 🔍
10/14/2011 +505 days 🔍
03/19/2015 +1252 days 🔍
01/25/2025 +3600 days 🔍

Sourcesinfo

Product: php.org

Advisory: vupen.com
Researcher: Stefan Esser
Status: Confirmed

CVE: CVE-2010-2094 (🔍)
GCVE (CVE): GCVE-0-2010-2094
GCVE (VulDB): GCVE-100-53388

OVAL: 🔍

SecurityFocus: 40173 - PHP 'ext/phar/stream.c' and 'ext/phar/dirstream.c' Multiple Format String Vulnerabilities
Vulnerability Center: 25842 - PHP 5.3 Through 5.3.2 Remote Multiple Format String Vulnerabilities via Formatted-Printing Functions, High
Vupen: ADV-2011-0068

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

Entryinfo

Created: 03/19/2015 12:22
Updated: 01/25/2025 19:08
Changes: 03/19/2015 12:22 (61), 02/25/2017 10:15 (12), 09/14/2021 11:13 (3), 01/04/2025 23:13 (20), 01/25/2025 19:08 (2)
Complete: 🔍
Cache ID: 216:6A2:103

Once again VulDB remains the best source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you need the next level of professionalism?

Upgrade your account now!