CVE-2007-3997
HIGH · CVSS 7.5EPSS 13.8%EU EUVD
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.
Key facts
- CVSS score
- 7.5 (v2.0)
- Severity
- HIGH
- CVSS vector
AV:N/AC:L/Au:N/C:P/I:P/A:P- Weakness (CWE)
- CWE-264
- EPSS score
- 13.8% (97th percentile)
- In CISA KEV
- No
- In EU EUVD
- Yes (EUVD-2007-3981)
- Published
- September 4, 2007
- NVD last modified
- June 16, 2026
- Status
- Modified
EU Vulnerability Database (EUVD)
This vulnerability is also tracked by ENISA as EUVD-2007-3981 in the EU Vulnerability Database. Last updated in EUVD on August 7, 2024.
View on the EU Vulnerability DatabaseAffected products
- php / php
References
- http://secunia.com/advisories/26642(Third Party Advisory)
- http://secunia.com/advisories/26822(Third Party Advisory)
- http://secunia.com/advisories/26838(Third Party Advisory)
- http://secunia.com/advisories/27102(Third Party Advisory)
- http://secunia.com/advisories/27377(Third Party Advisory)
- http://secunia.com/advisories/28318(Third Party Advisory)
- http://securityreason.com/securityalert/3102(Exploit, Third Party Advisory)
- http://secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability/(Exploit, Third Party Advisory)
- http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml(Third Party Advisory)
- http://www.php.net/ChangeLog-4.php(Vendor Advisory)
- http://www.php.net/ChangeLog-5.php#5.2.4(Vendor Advisory)
- http://www.php.net/releases/4_4_8.php(Vendor Advisory)
- http://www.php.net/releases/5_2_4.php(Vendor Advisory)
- http://www.trustix.org/errata/2007/0026/(Broken Link)
- http://www.vupen.com/english/advisories/2007/3023(Permissions Required, Third Party Advisory)
- http://www.vupen.com/english/advisories/2008/0059(Permissions Required, Third Party Advisory)
- https://exchange.xforce.ibmcloud.com/vulnerabilities/36384(Third Party Advisory, VDB Entry)
- https://exchange.xforce.ibmcloud.com/vulnerabilities/39402(Third Party Advisory, VDB Entry)
- https://issues.rpath.com/browse/RPL-1693(Broken Link)
- https://issues.rpath.com/browse/RPL-1702(Broken Link)
- https://www.exploit-db.com/exploits/4392(Third Party Advisory, VDB Entry)
Last updated September 17, 2026 · Source: NVD, CISA KEV, FIRST.org EPSS
Query CVEs from your AI assistant
The CVE/NVD Explorer brain answers CVE questions directly inside Claude, ChatGPT, or any MCP assistant — always up to date, no setup. Add it once and stop pasting advisories into chat.
Add the CVE brain