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
CVSSv4.0: 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/E:U/U:Green
CVE-ID: CVE-2007-3007
CWE-ID: CWE-264
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
PHP
Software vendor:
PHP Group

Description

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.


Remediation

Install update from vendor's website.

External links