CVE-2007-3007: PHP
Medium severity, CVSS 5.0. EPSS: 2.7% chance of exploitation in the next 30 days.
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 PHP: from 5.0.0, before 5.2.3 (fixed in 5.2.3)
Published 2007-06-04. Last modified 2026-06-16.