National Vulnerability Database

National Vulnerability Database

National Vulnerability

CVE-2004-1064 Detail


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.

Source:  MITRE      Last Modified:  01/10/2005

Quick Info

CVE Dictionary Entry:
Original release date:
Last revised:


CVSS Severity (version 2.0):
CVSS v2 Base Score:
10.0 HIGH
(AV:N/AC:L/Au:N/C:C/I:C/A:C) (legend)
Impact Subscore:
Exploitability Subscore:
CVSS Version 2 Metrics:
Access Vector:
Network exploitable
Access Complexity:
Not required to exploit
Impact Type:
Allows unauthorized disclosure of information; Allows unauthorized modification; Allows disruption of service

Vendor Statements (disclaimer)

Official Statement from Red Hat (10/30/2008)

We do not consider safe_mode / open_basedir restriction bypass issues being security sensitive. For more details see and

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to

Hyperlink Resource Type Source Name External Source CONECTIVA CLA-2005:915 External Source GENTOO GLSA-200412-14 External Source MISC External Source MANDRAKE MDKSA-2004:151 External Source MANDRAKE MDKSA-2005:072 External Source CONFIRM External Source HP HPSBMA01212 External Source BUGTRAQ 20041215 Advisory 01/2004: Multiple vulnerabilities in PHP 4/5 External Source BID 11964 External Source XF php-realpath-safemode-bypass(18512) External Source UBUNTU USN-99-1 External Source UBUNTU USN-99-2

Technical Details

Vulnerability Type (View All)

Change History 4 change records found - show changes