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...
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.
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2007-3997- CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-264
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2007-3997- Updated
- 2026-11-02
EUVDEUVD-2007-3981 No score
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.
- Record
EUVD-2007-3981- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-966w-852v-c3c4 No score
The (1) MySQL and (2) MySQLi extensions in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, allow...
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.
- Record
GHSA-966w-852v-c3c4- Updated
- 2026-11-02
Affected products
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | PHP 4.4.7/5.2.3 - MySQL/MySQLi 'Safe_Mode' Bypass | 2007-09-10 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| aliases, exploits, facts, references, title | Exploit-DB, GitHub Advisories | |
| first indexed | CVE List, NVD |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2007-3997 is a high vulnerability (CVSS 7.5) in Php, published September 4, 2007. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 13.8%, the 96th percentile. No source names a fixed version.
References
exchange.xforce.ibmcloud.com/vulnerabilities/39402
secunia.com/advisories/26822
vupen.com/english/advisories/2008/0059
gentoo.org/security/en/glsa/glsa-200710-02.xml
php.net/releases/4_4_8.php
php.net/ChangeLog-5.php
Show 17 moreShow less
trustix.org/errata/2007/0026
issues.rpath.com/browse/RPL-1693
securityreason.com/securityalert/3102
secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability
issues.rpath.com/browse/RPL-1702
secunia.com/advisories/26838
exchange.xforce.ibmcloud.com/vulnerabilities/36384
secunia.com/advisories/27377
exploit-db.com/exploits/4392
php.net/ChangeLog-4.php
secunia.com/advisories/27102
vupen.com/english/advisories/2007/3023
php.net/releases/5_2_4.php
secunia.com/advisories/28318
secunia.com/advisories/26642
nvd.nist.gov/vuln/detail/CVE-2007-3997
github.com/advisories/GHSA-966w-852v-c3c4