Skip to content
Fencer Vulns
high 7.5

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 products
    not 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

  1. Published
  2. 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

Sources

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.