10.0
CRITICAL
CVE-2004-1064
PHP realpath Truncation Safe Mode Bypass Vulnerability
Description

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.

INFO

Published Date :

Jan. 10, 2005, 5 a.m.

Last Modified :

Nov. 20, 2024, 11:50 p.m.

Remotely Exploitable :

Yes !

Impact Score :

10.0

Exploitability Score :

10.0
Affected Products

The following products are affected by CVE-2004-1064 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Canonical ubuntu_linux
1 Php php
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2004-1064.

URL Resource
http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000915 Broken Link
http://www.gentoo.org/security/en/glsa/glsa-200412-14.xml Third Party Advisory
http://www.hardened-php.net/advisories/012004.txt Third Party Advisory
http://www.mandriva.com/security/advisories?name=MDKSA-2004:151 Third Party Advisory
http://www.mandriva.com/security/advisories?name=MDKSA-2005:072 Third Party Advisory
http://www.php.net/release_4_3_10.php Release Notes Vendor Advisory
http://www.securityfocus.com/advisories/9028 Third Party Advisory VDB Entry
http://www.securityfocus.com/archive/1/384545 Third Party Advisory VDB Entry
http://www.securityfocus.com/bid/11964 Third Party Advisory VDB Entry
https://exchange.xforce.ibmcloud.com/vulnerabilities/18512 Third Party Advisory VDB Entry
https://www.ubuntu.com/usn/usn-99-1/ Third Party Advisory
https://www.ubuntu.com/usn/usn-99-2/ Third Party Advisory
http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000915 Broken Link
http://www.gentoo.org/security/en/glsa/glsa-200412-14.xml Third Party Advisory
http://www.hardened-php.net/advisories/012004.txt Third Party Advisory
http://www.mandriva.com/security/advisories?name=MDKSA-2004:151 Third Party Advisory
http://www.mandriva.com/security/advisories?name=MDKSA-2005:072 Third Party Advisory
http://www.php.net/release_4_3_10.php Release Notes Vendor Advisory
http://www.securityfocus.com/advisories/9028 Third Party Advisory VDB Entry
http://www.securityfocus.com/archive/1/384545 Third Party Advisory VDB Entry
http://www.securityfocus.com/bid/11964 Third Party Advisory VDB Entry
https://exchange.xforce.ibmcloud.com/vulnerabilities/18512 Third Party Advisory VDB Entry
https://www.ubuntu.com/usn/usn-99-1/ Third Party Advisory
https://www.ubuntu.com/usn/usn-99-2/ Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2004-1064 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2004-1064 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Dec. 08, 2020

    Action Type Old Value New Value
    Changed Reference Type http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000915 No Types Assigned http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000915 Broken Link
    Changed Reference Type http://www.gentoo.org/security/en/glsa/glsa-200412-14.xml No Types Assigned http://www.gentoo.org/security/en/glsa/glsa-200412-14.xml Third Party Advisory
    Changed Reference Type http://www.hardened-php.net/advisories/012004.txt No Types Assigned http://www.hardened-php.net/advisories/012004.txt Third Party Advisory
    Changed Reference Type http://www.mandriva.com/security/advisories?name=MDKSA-2004:151 No Types Assigned http://www.mandriva.com/security/advisories?name=MDKSA-2004:151 Third Party Advisory
    Changed Reference Type http://www.mandriva.com/security/advisories?name=MDKSA-2005:072 No Types Assigned http://www.mandriva.com/security/advisories?name=MDKSA-2005:072 Third Party Advisory
    Changed Reference Type http://www.php.net/release_4_3_10.php No Types Assigned http://www.php.net/release_4_3_10.php Release Notes, Vendor Advisory
    Changed Reference Type http://www.securityfocus.com/advisories/9028 No Types Assigned http://www.securityfocus.com/advisories/9028 Third Party Advisory, VDB Entry
    Changed Reference Type http://www.securityfocus.com/archive/1/384545 No Types Assigned http://www.securityfocus.com/archive/1/384545 Third Party Advisory, VDB Entry
    Changed Reference Type http://www.securityfocus.com/bid/11964 No Types Assigned http://www.securityfocus.com/bid/11964 Third Party Advisory, VDB Entry
    Changed Reference Type https://exchange.xforce.ibmcloud.com/vulnerabilities/18512 No Types Assigned https://exchange.xforce.ibmcloud.com/vulnerabilities/18512 Third Party Advisory, VDB Entry
    Changed Reference Type https://www.ubuntu.com/usn/usn-99-1/ No Types Assigned https://www.ubuntu.com/usn/usn-99-1/ Third Party Advisory
    Changed Reference Type https://www.ubuntu.com/usn/usn-99-2/ No Types Assigned https://www.ubuntu.com/usn/usn-99-2/ Third Party Advisory
    Removed CWE NIST NVD-CWE-Other
    Added CWE NIST NVD-CWE-noinfo
    Added CPE Configuration OR *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 4.0.0 up to (including) 4.3.9 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 5.0.0 up to (including) 5.0.2
    Added CPE Configuration OR *cpe:2.3:o:canonical:ubuntu_linux:4.10:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Jul. 11, 2017

    Action Type Old Value New Value
    Removed Reference http://xforce.iss.net/xforce/xfdb/18512 [No Types Assigned]
    Added Reference https://exchange.xforce.ibmcloud.com/vulnerabilities/18512 [No Types Assigned]
  • CVE Modified by [email protected]

    Dec. 08, 2016

    Action Type Old Value New Value
    Removed Reference http://marc.info/?l=bugtraq&m=111117104809638&w=2 [No Types Assigned]
    Removed Reference http://marc.info/?l=bugtraq&m=111170851228358&w=2 [No Types Assigned]
    Added Reference https://www.ubuntu.com/usn/usn-99-1/ [No Types Assigned]
    Added Reference https://www.ubuntu.com/usn/usn-99-2/ [No Types Assigned]
  • CVE Modified by [email protected]

    Oct. 18, 2016

    Action Type Old Value New Value
    Removed Reference http://marc.theaimsgroup.com/?l=bugtraq&m=111170851228358&w=2
    Removed Reference http://marc.theaimsgroup.com/?l=bugtraq&m=111117104809638&w=2
    Added Reference http://marc.info/?l=bugtraq&m=111117104809638&w=2
    Added Reference http://marc.info/?l=bugtraq&m=111170851228358&w=2
  • Initial Analysis by [email protected]

    Jan. 01, 2004

    Action Type Old Value New Value
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2004-1064 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2004-1064 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.69 }} -0.19%

score

0.77858

percentile

CVSS2 - Vulnerability Scoring System
Access Vector
Access Complexity
Authentication
Confidentiality
Integrity
Availability