BlogSafe.org

PHP CVEs

Vulnerabilities in the PHP language itself, and which PHP versions they affect.

← Back to CVE list

CVE-2007-3997

HIGH 7.5 CVSS 2.0
Published
September 4, 2007
Last modified
June 16, 2026
NVD status
Modified
Reported by
cve@mitre.org
Weakness
CWE-264
CVSS vector
AV:N/AC:L/Au:N/C:P/I:P/A:P

Description

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.

Affected products and versions

  • PHP — From 4.0.0 (including) to 4.4.8 (excluding)
  • PHP — From 5.0.0 (including) to 5.2.4 (excluding)

References

  • secunia.com http://secunia.com/advisories/26642 Third Party Advisory
  • secunia.com http://secunia.com/advisories/26822 Third Party Advisory
  • secunia.com http://secunia.com/advisories/26838 Third Party Advisory
  • secunia.com http://secunia.com/advisories/27102 Third Party Advisory
  • secunia.com http://secunia.com/advisories/27377 Third Party Advisory
  • secunia.com http://secunia.com/advisories/28318 Third Party Advisory
  • securityreason.com http://securityreason.com/securityalert/3102 Exploit, Third Party Advisory
  • secweb.se http://secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability/ Exploit, Third Party Advisory
  • www.gentoo.org http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml Third Party Advisory
  • www.php.net http://www.php.net/ChangeLog-4.php Vendor Advisory
  • www.php.net http://www.php.net/ChangeLog-5.php#5.2.4 Vendor Advisory
  • www.php.net http://www.php.net/releases/4_4_8.php Vendor Advisory
  • www.php.net http://www.php.net/releases/5_2_4.php Vendor Advisory
  • www.trustix.org http://www.trustix.org/errata/2007/0026/ Broken Link
  • www.vupen.com http://www.vupen.com/english/advisories/2007/3023 Permissions Required, Third Party Advisory
  • www.vupen.com http://www.vupen.com/english/advisories/2008/0059 Permissions Required, Third Party Advisory
  • exchange.xforce.ibmcloud.com https://exchange.xforce.ibmcloud.com/vulnerabilities/36384 Third Party Advisory, VDB Entry
  • exchange.xforce.ibmcloud.com https://exchange.xforce.ibmcloud.com/vulnerabilities/39402 Third Party Advisory, VDB Entry
  • issues.rpath.com https://issues.rpath.com/browse/RPL-1693 Broken Link
  • issues.rpath.com https://issues.rpath.com/browse/RPL-1702 Broken Link
  • www.exploit-db.com https://www.exploit-db.com/exploits/4392 Third Party Advisory, VDB Entry
  • nvd.nist.gov Official NVD record