All vulnerabilities

Servers and applications

CVE-2004-1064

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
High 10.0
Published
10 Jan 2005
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Exploit chance
3.7% in the next 30 daysHigher than 89% of CVEs. EPSS by FIRST, 12 Nov 2026
Attack
Over the network · No login needed
Attacker can
Read data · Change data · Take it down
CVSS vector
AV:N/AC:L/Au:N/C:C/I:C/A:C
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • From 4.0.0 up to 4.3.9
  • From 5.0.0 up to 5.0.2

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2004-1064
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2004-1064