CVE-2007-3997
Severity CVSS v4.0:
Pending analysis
Type:
CWE-264
Permissions, Privileges, and Access Control
Publication date:
04/09/2007
Last modified:
09/04/2025
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.
Impact
Base Score 2.0
7.50
Severity 2.0
HIGH
Vulnerable products and versions
CPE | From | Up to |
---|---|---|
cpe:2.3:a:php:php:*:*:*:*:*:*:*:* | 4.0.0 (including) | 4.4.8 (excluding) |
cpe:2.3:a:php:php:*:*:*:*:*:*:*:* | 5.0.0 (including) | 5.2.4 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- http://secunia.com/advisories/26642
- http://secunia.com/advisories/26822
- http://secunia.com/advisories/26838
- http://secunia.com/advisories/27102
- http://secunia.com/advisories/27377
- http://secunia.com/advisories/28318
- http://securityreason.com/securityalert/3102
- http://secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability/
- http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml
- http://www.php.net/ChangeLog-4.php
- http://www.php.net/ChangeLog-5.php#5.2.4
- http://www.php.net/releases/4_4_8.php
- http://www.php.net/releases/5_2_4.php
- http://www.trustix.org/errata/2007/0026/
- http://www.vupen.com/english/advisories/2007/3023
- http://www.vupen.com/english/advisories/2008/0059
- https://exchange.xforce.ibmcloud.com/vulnerabilities/36384
- https://exchange.xforce.ibmcloud.com/vulnerabilities/39402
- https://issues.rpath.com/browse/RPL-1693
- https://issues.rpath.com/browse/RPL-1702
- https://www.exploit-db.com/exploits/4392
- http://secunia.com/advisories/26642
- http://secunia.com/advisories/26822
- http://secunia.com/advisories/26838
- http://secunia.com/advisories/27102
- http://secunia.com/advisories/27377
- http://secunia.com/advisories/28318
- http://securityreason.com/securityalert/3102
- http://secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability/
- http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml
- http://www.php.net/ChangeLog-4.php
- http://www.php.net/ChangeLog-5.php#5.2.4
- http://www.php.net/releases/4_4_8.php
- http://www.php.net/releases/5_2_4.php
- http://www.trustix.org/errata/2007/0026/
- http://www.vupen.com/english/advisories/2007/3023
- http://www.vupen.com/english/advisories/2008/0059
- https://exchange.xforce.ibmcloud.com/vulnerabilities/36384
- https://exchange.xforce.ibmcloud.com/vulnerabilities/39402
- https://issues.rpath.com/browse/RPL-1693
- https://issues.rpath.com/browse/RPL-1702
- https://www.exploit-db.com/exploits/4392