What’s Vulnerable › Vulnerabilities
CVE-2007-3007
- Severity: medium (CVSS 5.0 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.7% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2007-06-04 · updated 2026-06-16
- Weakness: CWE-264
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
- PHP: from 5.0.0 before 5.2.3 — fixed in 5.2.3
How to fix
Upgrade to a fixed version: PHP 5.2.3. Check the vendor advisory for mitigations.
References
- http://bugs.php.net/bug.php?id=41492
- http://lists.opensuse.org/opensuse-security-announce/2007-07/msg00006.html
- http://osvdb.org/36084
- http://secunia.com/advisories/25456
- http://secunia.com/advisories/26048
- http://secunia.com/advisories/26231
- http://secunia.com/advisories/27102
- http://secunia.com/advisories/27110
- http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml
- http://www.php.net/releases/5_2_3.php
- http://www.securityfocus.com/bid/24259
- http://www.trustix.org/errata/2007/0023/
Get alerted when CVE-2007-3007 or the next vulnerability affects your stack