PHP 5 before 5.2.3 does not enforce the open_basedir or safe_mode restriction in certain cases, which allows context-dependent attackers to determine the existence of arbitrary files by checking if the readfile function returns a string
Published Jun 4, 2007
5.0
MEDIUMCVSS 2.0
EPSS 2.70%
Description
PHP 5 before 5.2.3 does not enforce the open_basedir or safe_mode restriction in certain cases, which allows context-dependent attackers to determine the existence of arbitrary files by checking if the readfile function returns a string. NOTE: this issue might also involve the realpath function.
Affected products
Remediation
Red Hat statement
We do not consider these to be security issues. 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:P/I:N/A:N
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 (16 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.70% (0.02695) | 85.38th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.70% (0.02695) | 83.90th | v5 (v2026.06.15) |
| Mar 30, 2025 | 1.25% (0.01250) | 77.48th | v4 (v2025.03.14) |
| Mar 29, 2025 | 2.67% (0.02672) | 76.31th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.89% (0.00894) | 73.95th | v4 (v2025.03.14) |
| Dec 12, 2024 | 1.27% (0.01268) | 86.25th | v3 (v2023.03.01) |
| May 15, 2024 | 1.10% (0.01099) | 84.36th | v3 (v2023.03.01) |
| Apr 7, 2024 | 0.65% (0.00653) | 79.09th | v3 (v2023.03.01) |
| Feb 29, 2024 | 0.49% (0.00486) | 75.41th | v3 (v2023.03.01) |
| Jan 22, 2024 | 0.50% (0.00503) | 73.91th | v3 (v2023.03.01) |
| Nov 6, 2023 | 0.53% (0.00527) | 74.45th | v3 (v2023.03.01) |
| Sep 29, 2023 | 0.49% (0.00490) | 73.30th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.40% (0.00401) | 69.49th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.69% (0.02686) | 82.85th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.69% (0.02686) | 81.17th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.69% (0.02686) | 62.66th | v2 (v2022.01.01) |
References (16)
- http://bugs.php.net/bug.php?id=41492 x_refsource_CONFIRMVendor Advisory
- http://lists.opensuse.org/opensuse-security-announce/2007-07/msg00006.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- http://osvdb.org/36084 vdb-entryx_refsource_OSVDBBroken Link
- http://secunia.com/advisories/25456 third-party-advisoryx_refsource_SECUNIAVendor Advisory
- http://secunia.com/advisories/26048 third-party-advisoryx_refsource_SECUNIAVendor Advisory
- http://secunia.com/advisories/26231 third-party-advisoryx_refsource_SECUNIAVendor Advisory
- http://secunia.com/advisories/27102 third-party-advisoryx_refsource_SECUNIAVendor Advisory
- http://secunia.com/advisories/27110 third-party-advisoryx_refsource_SECUNIAVendor Advisory
- http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml vendor-advisoryx_refsource_GENTOOThird Party Advisory
- http://www.php.net/releases/5_2_3.php x_refsource_CONFIRMVendor Advisory
- http://www.securityfocus.com/bid/24259 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.trustix.org/errata/2007/0023/ vendor-advisoryx_refsource_TRUSTIXBroken Link
- https://access.redhat.com/security/cve/CVE-2007-3007 Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2007-3007
- https://www.cve.org/CVERecord?id=CVE-2007-3007
- https://www.redhat.com/archives/fedora-package-announce/2007-September/msg00397.html vendor-advisoryx_refsource_FEDORAThird Party Advisory
Change history (0)
No recorded changes yet.