{"id":"CVE-2007-3007","aliases":["EUVD-2007-2999","GHSA-cfr5-cx7m-pm9g"],"status":"published","title":"PHP 5 before 5.2.3 does not enforce the open_basedir or safe_mode restriction in certain cases,...","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.","severity":{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02695,"percentile":0.86001,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-264"],"published":"2007-06-04T17:00:00Z","modified":"2026-06-16T22:40:52Z","products":[{"vendor":"php","product":"php"}],"references":[{"url":"http://secunia.com/advisories/26231","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://secunia.com/advisories/27110","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://secunia.com/advisories/26048","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2007-September/msg00397.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Third Party Advisory"]},{"url":"http://secunia.com/advisories/25456","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://www.trustix.org/errata/2007/0023/","tags":["vendor-advisory","x_refsource_TRUSTIX","x_transferred","Broken Link"]},{"url":"http://www.php.net/releases/5_2_3.php","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory"]},{"url":"http://www.securityfocus.com/bid/24259","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://secunia.com/advisories/27102","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://osvdb.org/36084","tags":["vdb-entry","x_refsource_OSVDB","x_transferred","Broken Link"]},{"url":"http://bugs.php.net/bug.php?id=41492","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2007-07/msg00006.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Mailing List","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-3007"},{"url":"http://www.trustix.org/errata/2007/0023"},{"url":"https://github.com/advisories/GHSA-cfr5-cx7m-pm9g"}],"sources":{"cve":[{"id":"CVE-2007-3007","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.","status":"published","published":"2007-06-04T17:00:00Z","modified":"2024-08-07T13:57:54.929Z","updated_at":"2026-11-02T13:32:56.730199Z"}],"euvd":[{"id":"EUVD-2007-2999","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.","status":"published","published":"2007-06-04T17:00:00Z","modified":"2024-08-07T13:57:54Z","updated_at":"2026-11-03T01:38:18.546691Z"}],"ghsa":[{"id":"GHSA-cfr5-cx7m-pm9g","title":"PHP 5 before 5.2.3 does not enforce the open_basedir or safe_mode restriction in certain cases,...","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.","status":"published","published":"2022-05-01T18:09:28Z","modified":"2025-04-09T03:43:21Z","updated_at":"2026-11-02T15:00:53.859901Z"}],"nvd":[{"id":"CVE-2007-3007","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.","status":"published","published":"2007-06-04T17:30:00Z","modified":"2026-06-16T22:40:52.307Z","cvss":[{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-264"],"updated_at":"2026-11-02T14:01:16.479378Z"}]}}
