{"id":"CVE-2004-1064","aliases":["EUVD-2004-1062","GHSA-h3x9-2c56-jqm5"],"status":"published","title":"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...","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.","severity":{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.03735,"percentile":0.89908,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2004-12-08T05:00:00Z","modified":"2026-06-16T22:06:56Z","products":[{"vendor":"canonical","product":"ubuntu_linux"},{"vendor":"php","product":"php"}],"references":[{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2005:072","tags":["vendor-advisory","x_refsource_MANDRAKE","x_transferred","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/11964","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://www.php.net/release_4_3_10.php","tags":["x_refsource_CONFIRM","x_transferred","Release Notes","Vendor Advisory"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2004:151","tags":["vendor-advisory","x_refsource_MANDRAKE","x_transferred","Third Party Advisory"]},{"url":"http://www.hardened-php.net/advisories/012004.txt","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18512","tags":["vdb-entry","x_refsource_XF","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://distro.conectiva.com.br/atualizacoes/?id=a\u0026anuncio=000915","tags":["vendor-advisory","x_refsource_CONECTIVA","x_transferred","Broken Link"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200412-14.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory"]},{"url":"http://www.securityfocus.com/archive/1/384545","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"https://www.ubuntu.com/usn/usn-99-2/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory"]},{"url":"http://www.securityfocus.com/advisories/9028","tags":["vendor-advisory","x_refsource_HP","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"https://www.ubuntu.com/usn/usn-99-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1064"},{"url":"https://www.ubuntu.com/usn/usn-99-1"},{"url":"https://www.ubuntu.com/usn/usn-99-2"},{"url":"https://github.com/advisories/GHSA-h3x9-2c56-jqm5"}],"sources":{"cve":[{"id":"CVE-2004-1064","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.","status":"published","published":"2004-12-08T05:00:00Z","modified":"2024-08-08T00:39:00.828Z","updated_at":"2026-11-02T14:34:53.70484Z"}],"euvd":[{"id":"EUVD-2004-1062","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.","status":"published","published":"2004-12-08T05:00:00Z","modified":"2024-08-08T00:39:00Z","updated_at":"2026-11-03T01:15:16.711153Z"}],"ghsa":[{"id":"GHSA-h3x9-2c56-jqm5","title":"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...","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.","status":"published","published":"2022-04-29T02:58:53Z","modified":"2025-04-03T04:08:00Z","updated_at":"2026-11-02T15:00:40.646262Z"}],"nvd":[{"id":"CVE-2004-1064","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.","status":"published","published":"2005-01-10T05:00:00Z","modified":"2026-06-16T22:06:56.56Z","cvss":[{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:00:53.133049Z"}]}}
