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 ope…

CVE-2007-3997 affects 10 listed versions of PHP in the Dawnsentry catalogue.

7.5CVSS high
None knownexploitation
14%EPSS (next 30 days)
4 September 2007published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

PHP

10 of 250 listed versions are affected. Fixed in 5.2.4. The newest release, 8.6.0, is not affected.

5.2.3 5.1.6 5.1.5 5.1.4 5.1.3 5.1.2 5.1.1 5.1.0 5.0.5 5.0.4

What it is

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.

AV:N/AC:L/Au:N/C:P/I:P/A:P (NVD)

Published by MITRE on 4 September 2007. Last changed 16 June 2026.

Sources

Check one version you run: look CVE-2007-3997 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.