PHP up to 4.3.9/5.0.2 Safe Mode realpath denial of service

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.8$0-$5k0.00

Summaryinfo

A vulnerability described as problematic has been identified in PHP up to 4.3.9/5.0.2. Affected by this vulnerability is the function realpath of the component Safe Mode. Such manipulation leads to denial of service. This vulnerability is uniquely identified as CVE-2004-1064. Moreover, an exploit is present. Upgrading the affected component is recommended.

Detailsinfo

A vulnerability, which was classified as critical, has been found in PHP up to 4.3.9/5.0.2 (Programming Language Software). Affected by this issue is the function realpath of the component Safe Mode. The manipulation with an unknown input leads to a denial of service vulnerability. Using CWE to declare the problem leads to CWE-404. The product does not release or incorrectly releases a resource before it is made available for re-use. Impacted is confidentiality, integrity, and availability. CVE summarizes:

The safe mode checks in PHP 4.x to 4.3.9 and PHP 5.x to 5.0.2 truncate the file path before passing the data to the realpath function, which could allow attackers to bypass safe mode. NOTE: this issue was originally REJECTed by its CNA before publication, but that decision is in active dispute. This candidate may change significantly in the future as a result of further discussion.

The bug was discovered 12/15/2004. The weakness was disclosed 01/10/2005 by Stefan Esser (Website). The advisory is shared for download at securityfocus.com. This vulnerability is handled as CVE-2004-1064 since 11/23/2004. 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. The vulnerability was handled as a non-public zero-day exploit for at least 26 days. During that time the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 20726 (Ubuntu 4.10 : php4 vulnerabilities (USN-99-2)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Ubuntu Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 12144 (PHP Multiple Remote Vulnerabilities).

Upgrading to version 4.x eliminates this vulnerability. A possible mitigation has been published 3 months after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at X-Force (18512), Tenable (20726), SecurityFocus (BID 11964†), OSVDB (12413†) and Vulnerability Center (SBV-7272†). The entries VDB-1060, VDB-1059, VDB-1056 and VDB-1055 are pretty similar. VulDB is the best source for vulnerability data and more expert information about this specific topic.

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 9.8
VulDB Meta Temp Score: 8.8

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

CVSSv2info

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

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

NVD Base Score: 🔍

Exploitinginfo

Class: Denial of service
CWE: CWE-404
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: 20726
Nessus Name: Ubuntu 4.10 : php4 vulnerabilities (USN-99-2)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍

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 4.x
ISS Proventia IPS: 🔍

Timelineinfo

11/23/2004 🔍
12/15/2004 +22 days 🔍
12/15/2004 +0 days 🔍
01/10/2005 +26 days 🔍
01/10/2005 +0 days 🔍
01/10/2005 +0 days 🔍
03/13/2005 +62 days 🔍
03/24/2005 +11 days 🔍
01/15/2006 +297 days 🔍
03/10/2015 +3341 days 🔍
07/06/2025 +3771 days 🔍

Sourcesinfo

Product: php.org

Advisory: securityfocus.com
Researcher: Stefan Esser
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2004-1064 (🔍)
GCVE (CVE): GCVE-0-2004-1064
GCVE (VulDB): GCVE-100-23672
X-Force: 18512
SecurityFocus: 11964 - PHP Multiple Local And Remote Vulnerabilities
OSVDB: 12413 - PHP realpath bypass safe_mode restriction
Vulnerability Center: 7272 - PHP 4.3.9 and 5.0.2 Safe Mode Bypassing, Medium

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

Entryinfo

Created: 03/10/2015 12:14
Updated: 07/06/2025 23:37
Changes: 03/10/2015 12:14 (77), 05/30/2019 17:15 (5), 07/06/2025 23:37 (20)
Complete: 🔍
Cache ID: 216::103

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!