CVE-2007-3007
PHP 5 before 5.2.3 does not enforce the open_basedir or safe_mode restriction in certain cases,...
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.
Exploit likelihood
What each source reports
NVD Score used
5.0
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.
- Record
CVE-2007-3007- CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:P/I:N/A:N - Weakness
- CWE-264
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2007-3007- Updated
- 2026-11-02
EUVDEUVD-2007-2999 No score
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.
- Record
EUVD-2007-2999- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-cfr5-cx7m-pm9g No score
PHP 5 before 5.2.3 does not enforce the open_basedir or safe_mode restriction in certain cases,...
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.
- Record
GHSA-cfr5-cx7m-pm9g- Updated
- 2026-11-02
Affected products
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| aliases, references, title | GitHub Advisories | |
| first indexed | CVE List, NVD |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2007-3007 is a medium vulnerability (CVSS 5.0) in Php, published June 4, 2007. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.70%, the 86th percentile. No source names a fixed version.
References
secunia.com/advisories/26231
secunia.com/advisories/27110
secunia.com/advisories/26048
gentoo.org/security/en/glsa/glsa-200710-02.xml
redhat.com/archives/fedora-package-announce/2007-September/msg00397.html
secunia.com/advisories/25456