Vulnerability in PHP
CVE-2007-3997
The (1) MySQL and (2) MySQLi extensions in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, allow remote attackers to bypass safe_mode and open_basedir restrictions via MySQL LOCAL INFILE operations, as demonstrated by a query with LOAD DATA LOCAL INFILE.
Published · last modified .
CVSS v2 metric
CVSS v2 base score 7.5 (High). Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS: 0.138 (96.4th percentile), scored .
Moderate probability of exploitation in the next 30 days — watch for active exploitation reports. 96th percentile — 96.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.138 · newest: 0.138 · change: 0.000
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
References
- exchange.xforce.ibmcloud.com/vulnerabilities/39402 (VDB Entry, Third Party Advisory, vdb-entry)
- secunia.com/advisories/26822 (Third Party Advisory, third-party-advisory)
- www.vupen.com/english/advisories/2008/0059 (Permissions Required, Third Party Advisory, vdb-entry)
- www.gentoo.org/security/en/glsa/glsa-200710-02.xml (vendor-advisory, Third Party Advisory)
- www.php.net/releases/4_4_8.php (Vendor Advisory)
- www.php.net/ChangeLog-5.php (Vendor Advisory)
- www.trustix.org/errata/2007/0026/ (vendor-advisory, Broken Link)
- issues.rpath.com/browse/RPL-1693 (Broken Link)
- securityreason.com/securityalert/3102 (Exploit, Third Party Advisory, third-party-advisory)
- secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability/ (Exploit, Third Party Advisory)
Frequently asked questions
- What is CVE-2007-3997?
- CVE-2007-3997 is a vulnerability in PHP, classified under CWE-264. Published 2007-09-04.
- Is CVE-2007-3997 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.