PHP 5.2.0 URI fopen 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.
9.1$0-$5k0.00

Summaryinfo

A vulnerability identified as critical has been detected in PHP 5.2.0. The affected element is the function fopen of the component URI Handler. This manipulation causes memory corruption. This vulnerability is registered as CVE-2007-0448. Furthermore, an exploit is available.

Detailsinfo

A vulnerability classified as very critical was found in PHP 5.2.0 (Programming Language Software). Affected by this vulnerability is the function fopen of the component URI Handler. 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. The summary by CVE is:

The fopen function in PHP 5.2.0 does not properly handle invalid URI handlers, which allows context-dependent attackers to bypass safe_mode restrictions and read arbitrary files via a file path specified with an invalid URI, as demonstrated via the srpath URI.

The weakness was published 05/24/2007 by Maksymilian Arciemowicz (Website). It is possible to read the advisory at securityreason.com. This vulnerability is known as CVE-2007-0448 since 01/23/2007. The exploitation appears to be easy. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details and also a public exploit are known. The pricing for an exploit might be around USD $0-$5k at the moment (estimation calculated on 04/13/2025).

It is possible to download the exploit at exploit-db.com. It is declared as proof-of-concept. We expect the 0-day to have been worth approximately $25k-$100k. The vulnerability scanner Nessus provides a plugin with the ID 31649 (PHP 5.x < 5.2 Multiple Vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family CGI abuses.

There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.

The vulnerability is also documented in the databases at Exploit-DB (29528), Tenable (31649), SecurityFocus (BID 22261†) and Vulnerability Center (SBV-36829†). Similar entries are available at VDB-29554, VDB-29013, VDB-35765 and VDB-35533. Statistical analysis made it clear that VulDB provides the best quality 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: 10.0
VulDB Meta Temp Score: 9.1

VulDB Base Score: 10.0
VulDB Temp Score: 9.1
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: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 31649
Nessus Name: PHP 5.x < 5.2 Multiple Vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍

OpenVAS ID: 110173
OpenVAS Name: PHP version smaller than 5.2.0
OpenVAS File: 🔍
OpenVAS Family: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: no mitigation known
Status: 🔍

0-Day Time: 🔍

Timelineinfo

01/23/2007 🔍
01/26/2007 +3 days 🔍
01/26/2007 +0 days 🔍
05/24/2007 +118 days 🔍
05/24/2007 +0 days 🔍
10/25/2012 +1981 days 🔍
03/13/2015 +869 days 🔍
04/13/2025 +3684 days 🔍

Sourcesinfo

Product: php.org

Advisory: securityreason.com
Researcher: Maksymilian Arciemowicz
Status: Not defined

CVE: CVE-2007-0448 (🔍)
GCVE (CVE): GCVE-0-2007-0448
GCVE (VulDB): GCVE-100-36955
SecurityFocus: 22261 - PHP FOpen Safe_Mode Restriction-Bypass Vulnerability
Vulnerability Center: 36829 - PHP 5.2.0 \x27fopen\x27 Function Improper Handling of Invalid URI Handers Allows Remote File Access, Medium

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

Entryinfo

Created: 03/13/2015 14:56
Updated: 04/13/2025 17:18
Changes: 03/13/2015 14:56 (62), 04/20/2017 13:39 (5), 07/20/2021 08:10 (2), 04/13/2025 17:18 (25)
Complete: 🔍
Cache ID: 216::103

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!