7.5
HIGH
CVE-2007-3997
MySQL and MySQLi Unvalidated Local File Inclusion Bypass
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.

INFO

Published Date :

Sept. 4, 2007, 6:17 p.m.

Last Modified :

Oct. 26, 2018, 1:59 p.m.

Remotely Exploitable :

Yes !

Impact Score :

6.4

Exploitability Score :

10.0
Affected Products

The following products are affected by CVE-2007-3997 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Php php
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2007-3997.

URL Resource
http://secunia.com/advisories/26642 Third Party Advisory
http://secunia.com/advisories/26822 Third Party Advisory
http://secunia.com/advisories/26838 Third Party Advisory
http://secunia.com/advisories/27102 Third Party Advisory
http://secunia.com/advisories/27377 Third Party Advisory
http://secunia.com/advisories/28318 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://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-5.php#5.2.4 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.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/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/39402 Third Party Advisory VDB Entry
https://issues.rpath.com/browse/RPL-1693 Broken Link
https://issues.rpath.com/browse/RPL-1702 Broken Link
https://www.exploit-db.com/exploits/4392 Third Party Advisory VDB Entry

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2007-3997 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2007-3997 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Oct. 26, 2018

    Action Type Old Value New Value
    Changed Reference Type http://www.php.net/ChangeLog-4.php No Types Assigned http://www.php.net/ChangeLog-4.php Vendor Advisory
    Changed Reference Type https://exchange.xforce.ibmcloud.com/vulnerabilities/36384 No Types Assigned https://exchange.xforce.ibmcloud.com/vulnerabilities/36384 Third Party Advisory, VDB Entry
    Changed Reference Type http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml No Types Assigned http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml Third Party Advisory
    Changed Reference Type https://exchange.xforce.ibmcloud.com/vulnerabilities/39402 No Types Assigned https://exchange.xforce.ibmcloud.com/vulnerabilities/39402 Third Party Advisory, VDB Entry
    Changed Reference Type http://www.php.net/ChangeLog-5.php#5.2.4 No Types Assigned http://www.php.net/ChangeLog-5.php#5.2.4 Vendor Advisory
    Changed Reference Type http://www.vupen.com/english/advisories/2007/3023 No Types Assigned http://www.vupen.com/english/advisories/2007/3023 Permissions Required, Third Party Advisory
    Changed Reference Type http://www.trustix.org/errata/2007/0026/ No Types Assigned http://www.trustix.org/errata/2007/0026/ Broken Link
    Changed Reference Type https://issues.rpath.com/browse/RPL-1693 No Types Assigned https://issues.rpath.com/browse/RPL-1693 Broken Link
    Changed Reference Type https://www.exploit-db.com/exploits/4392 No Types Assigned https://www.exploit-db.com/exploits/4392 Third Party Advisory, VDB Entry
    Changed Reference Type http://secunia.com/advisories/26822 No Types Assigned http://secunia.com/advisories/26822 Third Party Advisory
    Changed Reference Type http://securityreason.com/securityalert/3102 No Types Assigned http://securityreason.com/securityalert/3102 Exploit, Third Party Advisory
    Changed Reference Type http://secunia.com/advisories/28318 No Types Assigned http://secunia.com/advisories/28318 Third Party Advisory
    Changed Reference Type http://www.php.net/releases/4_4_8.php No Types Assigned http://www.php.net/releases/4_4_8.php Vendor Advisory
    Changed Reference Type http://secunia.com/advisories/26838 No Types Assigned http://secunia.com/advisories/26838 Third Party Advisory
    Changed Reference Type https://issues.rpath.com/browse/RPL-1702 No Types Assigned https://issues.rpath.com/browse/RPL-1702 Broken Link
    Changed Reference Type http://secunia.com/advisories/27102 No Types Assigned http://secunia.com/advisories/27102 Third Party Advisory
    Changed Reference Type http://secunia.com/advisories/27377 No Types Assigned http://secunia.com/advisories/27377 Third Party Advisory
    Changed Reference Type http://www.vupen.com/english/advisories/2008/0059 No Types Assigned http://www.vupen.com/english/advisories/2008/0059 Permissions Required, Third Party Advisory
    Changed Reference Type http://secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability/ Exploit http://secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability/ Exploit, Third Party Advisory
    Changed Reference Type http://www.php.net/releases/5_2_4.php No Types Assigned http://www.php.net/releases/5_2_4.php Vendor Advisory
    Changed Reference Type http://secunia.com/advisories/26642 Patch, Vendor Advisory http://secunia.com/advisories/26642 Third Party Advisory
    Changed CPE Configuration OR *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions up to (including) 4.4.7 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions up to (including) 5.2.3 OR *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 4.0.0 up to (excluding) 4.4.8 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 5.0.0 up to (excluding) 5.2.4
  • CVE Modified by [email protected]

    Sep. 29, 2017

    Action Type Old Value New Value
    Removed Reference http://www.milw0rm.com/exploits/4392 [No Types Assigned]
    Added Reference https://www.exploit-db.com/exploits/4392 [No Types Assigned]
  • CVE Modified by [email protected]

    Jul. 29, 2017

    Action Type Old Value New Value
    Removed Reference http://xforce.iss.net/xforce/xfdb/36384 [No Types Assigned]
    Removed Reference http://xforce.iss.net/xforce/xfdb/39402 [No Types Assigned]
    Added Reference https://exchange.xforce.ibmcloud.com/vulnerabilities/39402 [No Types Assigned]
    Added Reference https://exchange.xforce.ibmcloud.com/vulnerabilities/36384 [No Types Assigned]
  • Initial Analysis by [email protected]

    Sep. 05, 2007

    Action Type Old Value New Value
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2007-3997 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2007-3997 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

6.80 }} 0.16%

score

0.94066

percentile

CVSS2 - Vulnerability Scoring System
Access Vector
Access Complexity
Authentication
Confidentiality
Integrity
Availability