{"id":"CVE-2007-3997","published":"2007-09-04T18:00:00Z","modified":"2024-08-07T14:37:06Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.13818,"percentile":0.96605,"provenance":"source"},"cwes":[],"references":[{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/39402","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://secunia.com/advisories/26822","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.vupen.com/english/advisories/2008/0059","tags":["vdb-entry","x_refsource_VUPEN"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://www.php.net/releases/4_4_8.php","tags":["x_refsource_CONFIRM"]},{"url":"http://www.php.net/ChangeLog-5.php#5.2.4","tags":["x_refsource_CONFIRM"]},{"url":"http://www.trustix.org/errata/2007/0026/","tags":["vendor-advisory","x_refsource_TRUSTIX"]},{"url":"https://issues.rpath.com/browse/RPL-1693","tags":["x_refsource_CONFIRM"]},{"url":"http://securityreason.com/securityalert/3102","tags":["third-party-advisory","x_refsource_SREASON"]},{"url":"http://secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability/","tags":["x_refsource_MISC"]},{"url":"https://issues.rpath.com/browse/RPL-1702","tags":["x_refsource_CONFIRM"]},{"url":"http://secunia.com/advisories/26838","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/36384","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://secunia.com/advisories/27377","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"https://www.exploit-db.com/exploits/4392","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"http://www.php.net/ChangeLog-4.php","tags":["x_refsource_CONFIRM"]},{"url":"http://secunia.com/advisories/27102","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.vupen.com/english/advisories/2007/3023","tags":["vdb-entry","x_refsource_VUPEN"]},{"url":"http://www.php.net/releases/5_2_4.php","tags":["x_refsource_CONFIRM"]},{"url":"http://secunia.com/advisories/28318","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://secunia.com/advisories/26642","tags":["third-party-advisory","x_refsource_SECUNIA"]}],"priority":{"score":24.3,"factors":[{"name":"EPSS percentile","points":19.32},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2007-09-10"},"first":{"date":"2007-09-10","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/4392"},"provenance":"source"},"summary":{"text":"The MySQL and MySQLi extensions in PHP 4 (before 4.4.8) and PHP 5 (before 5.2.4) contain a flaw in how they handle LOCAL INFILE operations. An attacker who can get a crafted query such as LOAD DATA LOCAL INFILE executed against the affected extensions can bypass the safe_mode and open_basedir restrictions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:49:00Z"},"euvd":{"id":"EUVD-2007-3981","exploited":false,"provenance":"source"},"exploits":[{"id":4392,"url":"https://www.exploit-db.com/exploits/4392","title":"PHP 4.4.7/5.2.3 - MySQL/MySQLi 'Safe_Mode' Bypass","date":"2007-09-10","verified":true,"provenance":"source"}],"exploitRefs":["https://www.exploit-db.com/exploits/4392"]}