Permissions, Privileges, and Access Controls in PHP - CVE-2007-3007

 

Permissions, Privileges, and Access Controls in PHP - CVE-2007-3007

Published: August 29, 2022 / Updated: June 8, 2025


Vulnerability identifier: #VU110394
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2007-3007
CWE-ID: CWE-264
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to gain access to sensitive information.

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 software

PHP

How to mitigate CVE-2007-3007

Install update from vendor's website.

PHP - update to 5.2.3

External References

Related Security Bulletins