CVE Catalog

CVE-2004-1064

High
Published: Translated: NVD NIST

Summary

In PHP versions 4.x to 4.3.9 and 5.x to 5.0.2, the safe mode checks truncate the file path before passing data to the realpath function, which could allow attackers to bypass safe mode restrictions.

Risk Assessment

An attacker may bypass safe mode protections, gaining access to files or performing operations that should be blocked, leading to system integrity and confidentiality breaches.

Recommendation

It is recommended to upgrade PHP to a version later than 4.3.9 or 5.0.2 where the issue is fixed, and to monitor further discussions regarding this CVE.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS