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
Published Dec 8, 2004
10.0
HIGHCVSS 2.0
EPSS 3.74%
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.
Affected products
Remediation
Red Hat statement
We do not consider safe_mode / open_basedir restriction bypass issues being security sensitive. For more details see http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=169857#c1 and http://www.php.net/security-note.php
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:C/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (17 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 3.74% (0.03735) | 89.49th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.74% (0.03735) | 88.38th | v5 (v2026.06.15) |
| Dec 28, 2025 | 1.73% (0.01731) | 81.99th | v4 (v2025.03.14) |
| Dec 27, 2025 | 2.83% (0.02834) | 85.82th | v4 (v2025.03.14) |
| Oct 28, 2025 | 1.73% (0.01731) | 81.81th | v4 (v2025.03.14) |
| Oct 27, 2025 | 2.83% (0.02834) | 85.70th | v4 (v2025.03.14) |
| Oct 23, 2025 | 1.73% (0.01731) | 81.78th | v4 (v2025.03.14) |
| Jul 30, 2025 | 2.83% (0.02834) | 85.65th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.82% (0.01820) | 81.66th | v4 (v2025.03.14) |
| Dec 17, 2024 | 2.03% (0.02033) | 88.63th | v3 (v2023.03.01) |
| Apr 16, 2024 | 0.69% (0.00690) | 79.86th | v3 (v2023.03.01) |
| Nov 15, 2023 | 0.69% (0.00690) | 77.86th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.88% (0.00880) | 80.00th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.54% (0.01537) | 74.52th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.54% (0.01537) | 74.48th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.54% (0.01537) | 72.41th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.54% (0.01537) | 51.33th | v2 (v2022.01.01) |
No CWE recorded.
References (15)
- http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000915 vendor-advisoryx_refsource_CONECTIVABroken Link
- http://www.gentoo.org/security/en/glsa/glsa-200412-14.xml vendor-advisoryx_refsource_GENTOOThird Party Advisory
- http://www.hardened-php.net/advisories/012004.txt x_refsource_MISCThird Party Advisory
- http://www.mandriva.com/security/advisories?name=MDKSA-2004:151 vendor-advisoryx_refsource_MANDRAKEThird Party Advisory
- http://www.mandriva.com/security/advisories?name=MDKSA-2005:072 vendor-advisoryx_refsource_MANDRAKEThird Party Advisory
- http://www.php.net/release_4_3_10.php x_refsource_CONFIRMRelease NotesVendor Advisory
- http://www.securityfocus.com/advisories/9028 vendor-advisoryx_refsource_HPThird Party AdvisoryVDB Entry
- http://www.securityfocus.com/archive/1/384545 mailing-listx_refsource_BUGTRAQThird Party AdvisoryVDB Entry
- http://www.securityfocus.com/bid/11964 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2004-1064 Vendor Advisory
- https://exchange.xforce.ibmcloud.com/vulnerabilities/18512 vdb-entryx_refsource_XFThird Party AdvisoryVDB Entry
- https://nvd.nist.gov/vuln/detail/CVE-2004-1064
- https://www.cve.org/CVERecord?id=CVE-2004-1064
- https://www.ubuntu.com/usn/usn-99-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.ubuntu.com/usn/usn-99-2/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
Change history (0)
No recorded changes yet.