PHP up to 5.3.14 _php_stream_scandir 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.6$0-$5k0.00

Summaryinfo

A vulnerability described as critical has been identified in PHP up to 5.3.14. This affects the function _php_stream_scandir. Executing a manipulation can lead to memory corruption. The identification of this vulnerability is CVE-2012-2688. The attack may be launched remotely. There is no exploit available. Upgrading the affected component is recommended.

Detailsinfo

A vulnerability was found in PHP up to 5.3.14 (Programming Language Software). It has been declared as critical. This vulnerability affects the function _php_stream_scandir. The manipulation with an unknown input leads to a memory corruption vulnerability. The CWE definition for the vulnerability is 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. As an impact it is known to affect confidentiality, integrity, and availability. CVE summarizes:

Unspecified vulnerability in the _php_stream_scandir function in the stream implementation in PHP before 5.3.15 and 5.4.x before 5.4.5 has unknown impact and remote attack vectors, related to an "overflow."

The weakness was shared 07/19/2012 as Version 5.4.5 as confirmed changelog entry (Website). The advisory is available at php.net. The vendor cooperated in the coordination of the public release. This vulnerability was named CVE-2012-2688 since 05/14/2012. The exploitation appears to be difficult. The attack can be initiated remotely. No form of authentication is required for a successful exploitation. Technical details are known, but there is no available exploit.

The vulnerability scanner Nessus provides a plugin with the ID 74709 (openSUSE Security Update : php5 (openSUSE-SU-2012:0976-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 121868 (Solaris 11.1 Support Repository Update (SRU) 17.5.0 Missing).

Upgrading to version 5.3.15 or 5.4.5 eliminates this vulnerability. A possible mitigation has been published immediately after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at X-Force (77155), Tenable (74709), SecurityFocus (BID 54638†), OSVDB (84126†) and Secunia (SA50194†). The entries VDB-3695, VDB-5786, VDB-8036 and VDB-9021 are related to this item. 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: 9.0
VulDB Meta Temp Score: 8.6

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

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: 74709
Nessus Name: openSUSE Security Update : php5 (openSUSE-SU-2012:0976-1)
Nessus File: 🔍
Nessus Family: 🔍
Nessus Port: 🔍

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

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Upgrade: PHP 5.3.15/5.4.5

Timelineinfo

05/14/2012 🔍
07/19/2012 +66 days 🔍
07/19/2012 +0 days 🔍
07/20/2012 +1 days 🔍
07/20/2012 +0 days 🔍
07/20/2012 +0 days 🔍
07/22/2012 +2 days 🔍
07/23/2012 +1 days 🔍
07/23/2012 +0 days 🔍
07/31/2012 +8 days 🔍
08/10/2012 +10 days 🔍
06/13/2014 +672 days 🔍
12/23/2024 +3846 days 🔍

Sourcesinfo

Product: php.org

Advisory: Version 5.4.5
Status: Confirmed
Confirmation: 🔍
Coordinated: 🔍

CVE: CVE-2012-2688 (🔍)
GCVE (CVE): GCVE-0-2012-2688
GCVE (VulDB): GCVE-100-5794

OVAL: 🔍

X-Force: 77155
SecurityFocus: 54638 - PHP '_php_stream_scandir()' Buffer Overflow Vulnerability
Secunia: 50194 - SUSE update for php5, Less Critical
OSVDB: 84126
SecurityTracker: 1027287 - PHP Overflow in _php_stream_scandir() May Let Remote Users Execute Arbitrary Code
Vulnerability Center: 35631 - PHP <5.3.15 and 5.4-5.4.4 Remote Unspecified Vulnerability via Vectors Related to an \, Critical

See also: 🔍

Entryinfo

Created: 07/31/2012 17:55
Updated: 12/23/2024 02:20
Changes: 07/31/2012 17:55 (75), 04/19/2017 10:30 (13), 12/23/2024 02:20 (16)
Complete: 🔍
Cache ID: 216:822:103

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you need the next level of professionalism?

Upgrade your account now!