Permissions, Privileges, and Access Controls in PHP - CVE-2007-3007
Published: August 29, 2022 / Updated: June 8, 2025
PHP
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
External links
- http://bugs.php.net/bug.php?id=41492
- http://www.php.net/releases/5_2_3.php
- https://www.redhat.com/archives/fedora-package-announce/2007-September/msg00397.html
- http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml
- http://lists.opensuse.org/opensuse-security-announce/2007-07/msg00006.html
- http://www.trustix.org/errata/2007/0023/
- http://www.securityfocus.com/bid/24259
- http://secunia.com/advisories/25456
- http://secunia.com/advisories/26048
- http://secunia.com/advisories/26231
- http://secunia.com/advisories/27110
- http://secunia.com/advisories/27102
- http://osvdb.org/36084