All vulnerabilities

Servers and applications

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.

Severity
High 7.5
Published
4 Sept 2007
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Fixed in
4.4.8, 5.2.4
Exploit chance
14% in the next 30 daysHigher than 96% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
CWE-264
Attack
Over the network · No login needed
Attacker can
Read some data · Change some data · Slow it down
CVSS vector
AV:N/AC:L/Au:N/C:P/I:P/A:P
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • From 4.0.0 before 4.4.8
  • From 5.0.0 before 5.2.4

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2007-3997
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2007-3997