CVE-2007-3997 in the critical feed json
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_…
published 2007-09-04 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-3981
- cvss
- 7.5
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 13.8%
- EPSS 13.8% chance of exploitation in 30 days, percentile 96%
- public exploits
- 1
- Exploit-DB
Summary
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.
Patch / fix
- php php 4.4.8, 5.2.4
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2007-3997 updated
php safe_mode bypass with MySQL INFILE LOCAL
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- Published
- First public exploit (EDB-4392)
Exploit prediction
13.82% chance of exploitation in the next 30 days, higher than 96% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-4392 PHP 4.4.7/5.2.3 - MySQL/MySQLi 'Safe_Mode' Bypass local, 2007-09-10
- securityreason.com http://securityreason.com/securityalert/3102 referenced PoC, tagged "exploit" by a source, unverified
- secweb.se http://secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-264 Permissions, Privileges, and Access Controls
- Technology feeds
References
-
exploit-db.com
/exploits/4392
exploit, third-party-advisory, vdb-entry
-
securityreason.com
/securityalert/3102
third-party-advisory, exploit
-
secweb.se
/en/advisories/php-mysql-safe-mode-bypass-vulnerability/
exploit, third-party-advisory
-
gentoo.org
/security/en/glsa/glsa-200710-02.xml
vendor-advisory, third-party-advisory
-
trustix.org
/errata/2007/0026/
vendor-advisory, broken-link
-
php.net
/releases/4_4_8.php
vendor-advisory
-
php.net
/ChangeLog-5.php#5.2.4
vendor-advisory
-
php.net
/ChangeLog-4.php
vendor-advisory
-
php.net
/releases/5_2_4.php
vendor-advisory
-
exchange.xforce.ibmcloud.com
/vulnerabilities/39402
vdb-entry, third-party-advisory
-
secunia.com
/advisories/26822
third-party-advisory
-
vupen.com
/english/advisories/2008/0059
vdb-entry, permissions-required, third-party-advisory
-
issues.rpath.com
/browse/RPL-1693
broken-link
-
issues.rpath.com
/browse/RPL-1702
broken-link
-
secunia.com
/advisories/26838
third-party-advisory
-
exchange.xforce.ibmcloud.com
/vulnerabilities/36384
vdb-entry, third-party-advisory
-
secunia.com
/advisories/27377
third-party-advisory
-
secunia.com
/advisories/27102
third-party-advisory
-
vupen.com
/english/advisories/2007/3023
vdb-entry, permissions-required, third-party-advisory
-
secunia.com
/advisories/28318
third-party-advisory
-
secunia.com
/advisories/26642
third-party-advisory
Sources
- CVE List CVE-2007-3997
- NVD CVE-2007-3997
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.