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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (3.74%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 2.0
- 10.0 HIGHAV:N/AC:L/Au:N/C:C/I:C/A:C
- EPSS
- 3.74% probability · 89th percentile
- CISA KEV
- Not listed
- Affected
- php/php · canonical/ubuntu linux
- Source
- cve@mitre.org
References
- http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000915Broken Link
- http://www.gentoo.org/security/en/glsa/glsa-200412-14.xmlThird Party Advisory
- http://www.hardened-php.net/advisories/012004.txtThird Party Advisory
- http://www.mandriva.com/security/advisories?name=MDKSA-2004:151Third Party Advisory
- http://www.mandriva.com/security/advisories?name=MDKSA-2005:072Third Party Advisory
- http://www.php.net/release_4_3_10.phpRelease Notes, Vendor Advisory
- http://www.securityfocus.com/advisories/9028Third Party Advisory, VDB Entry
- http://www.securityfocus.com/archive/1/384545Third Party Advisory, VDB Entry
- http://www.securityfocus.com/bid/11964Third Party Advisory, VDB Entry
- https://exchange.xforce.ibmcloud.com/vulnerabilities/18512Third 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=000915Broken Link
- http://www.gentoo.org/security/en/glsa/glsa-200412-14.xmlThird Party Advisory
- http://www.hardened-php.net/advisories/012004.txtThird Party Advisory
- http://www.mandriva.com/security/advisories?name=MDKSA-2004:151Third Party Advisory
- http://www.mandriva.com/security/advisories?name=MDKSA-2005:072Third Party Advisory
- http://www.php.net/release_4_3_10.phpRelease Notes, Vendor Advisory
- http://www.securityfocus.com/advisories/9028Third Party Advisory, VDB Entry
- http://www.securityfocus.com/archive/1/384545Third Party Advisory, VDB Entry
- http://www.securityfocus.com/bid/11964Third Party Advisory, VDB Entry
- https://exchange.xforce.ibmcloud.com/vulnerabilities/18512Third 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
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.