U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2007-3997 Detail

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.


Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 2.0 Severity and Vector Strings:

National Institute of Standards and Technology
NIST: NVD
Base Score:  7.5 HIGH
Vector:  (AV:N/AC:L/Au:N/C:P/I:P/A:P)

Vendor Statements (disclaimer)

Official Statement from Mandriva (09/18/2007)

Due to the nature of safe_mode and open_basedir restrictions, and in alignment with the PHP group’s stance on these features, Mandriva does not consider this a security issue.

Official Statement from Red Hat (09/05/2007)

We do not consider these to be security issues. For more details see http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=169857#c1 and http://www.php.net/security-note.php

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

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

Weakness Enumeration

CWE-ID CWE Name Source
CWE-264 Permissions, Privileges, and Access Controls cwe source acceptance level NIST  

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
   Show Matching CPE(s)
From (including)
4.0.0
Up to (excluding)
4.4.8
 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
   Show Matching CPE(s)
From (including)
5.0.0
Up to (excluding)
5.2.4

Denotes Vulnerable Software
Are we missing a CPE here? Please let us know.

Change History

6 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2007-3997
NVD Published Date:
09/04/2007
NVD Last Modified:
11/20/2024
Source:
MITRE