{"api_version":"1","generated_at":"2026-07-23T07:48:36+00:00","cve":"CVE-2007-3997","urls":{"html":"https://cve.report/CVE-2007-3997","api":"https://cve.report/api/cve/CVE-2007-3997.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2007-3997","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2007-3997"},"summary":{"title":"CVE-2007-3997","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.","state":"PUBLISHED","assigner":"mitre","published_at":"2007-09-04 18:17:00","updated_at":"2026-04-23 00:35:47"},"problem_types":["CWE-264","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"7.5","severity":"","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/36384","name":"https://exchange.xforce.ibmcloud.com/vulnerabilities/36384","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.trustix.org/errata/2007/0026/","name":"http://www.trustix.org/errata/2007/0026/","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Broken Link"],"title":"","mime":"text/plain","httpstatus":"-1","archivestatus":"200"},{"url":"http://www.vupen.com/english/advisories/2007/3023","name":"http://www.vupen.com/english/advisories/2007/3023","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Permissions Required","Third Party Advisory"],"title":"Webmail : Solution de messagerie professionnelle - OVHcloud- OVH","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/39402","name":"https://exchange.xforce.ibmcloud.com/vulnerabilities/39402","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/27377","name":"http://secunia.com/advisories/27377","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"rPath update for php, php-mysql and php-pgsql - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.php.net/releases/4_4_8.php","name":"http://www.php.net/releases/4_4_8.php","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"PHP: PHP 4.4.8 Release Announcement","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml","name":"http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Gentoo Linux Documentation\n--\n  PHP: Multiple vulnerabilities","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/26642","name":"http://secunia.com/advisories/26642","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"PHP Multiple Vulnerabilities - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/26822","name":"http://secunia.com/advisories/26822","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Trustix Update for Multiple Packages - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/28318","name":"http://secunia.com/advisories/28318","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"PHP Multiple Vulnerabilities - Secunia Advisories - Vulnerability Intelligence - Secunia.com","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://issues.rpath.com/browse/RPL-1693","name":"https://issues.rpath.com/browse/RPL-1693","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Broken Link"],"title":"","mime":"","httpstatus":"-1","archivestatus":"404"},{"url":"http://www.php.net/ChangeLog-4.php","name":"http://www.php.net/ChangeLog-4.php","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"PHP: PHP 4 ChangeLog","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://securityreason.com/securityalert/3102","name":"http://securityreason.com/securityalert/3102","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Third Party Advisory"],"title":"SecurityReason - PHP MySQL/MySQLi Safe Mode Bypass Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability/","name":"http://secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability/","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Third Party Advisory"],"title":"PHP MySQL/MySQLi Safe Mode Bypass Vulnerability","mime":"text/html","httpstatus":"404","archivestatus":"200"},{"url":"http://secunia.com/advisories/26838","name":"http://secunia.com/advisories/26838","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"rPath Update for Multiple php Packages - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/27102","name":"http://secunia.com/advisories/27102","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Gentoo update for php - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.php.net/releases/5_2_4.php","name":"http://www.php.net/releases/5_2_4.php","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"PHP: PHP 5.2.4 Release Announcement","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://issues.rpath.com/browse/RPL-1702","name":"https://issues.rpath.com/browse/RPL-1702","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Broken Link"],"title":"","mime":"","httpstatus":"-1","archivestatus":"404"},{"url":"https://www.exploit-db.com/exploits/4392","name":"https://www.exploit-db.com/exploits/4392","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"PHP <= 4.4.7 / 5.2.3 MySQL/MySQLi Safe Mode Bypass Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.vupen.com/english/advisories/2008/0059","name":"http://www.vupen.com/english/advisories/2008/0059","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Permissions Required","Third Party Advisory"],"title":"Webmail : Solution de messagerie professionnelle - OVHcloud- OVH","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.php.net/ChangeLog-5.php#5.2.4","name":"http://www.php.net/ChangeLog-5.php#5.2.4","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"PHP: PHP 5 ChangeLog","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-3997","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-3997","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2007","cve_id":"3997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"php","cpe5":"php","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[{"cvename":"CVE-2007-3997","organization":"Mandriva","lastmodified":"2007-09-18","contributor":"Vincent Danen","statementText":"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.","cve_year":"2007","cve_id":"3997","crc32":"4c4c82a0"},{"cvename":"CVE-2007-3997","organization":"Red Hat","lastmodified":"2007-09-05","contributor":"Mark J Cox","statementText":"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","cve_year":"2007","cve_id":"3997","crc32":"86eef3b5"}],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-07T14:37:06.033Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"php-localinfile-mysql-security-bypass(39402)","tags":["vdb-entry","x_refsource_XF","x_transferred"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/39402"},{"name":"26822","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/26822"},{"name":"ADV-2008-0059","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"],"url":"http://www.vupen.com/english/advisories/2008/0059"},{"name":"GLSA-200710-02","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"],"url":"http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://www.php.net/releases/4_4_8.php"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://www.php.net/ChangeLog-5.php#5.2.4"},{"name":"2007-0026","tags":["vendor-advisory","x_refsource_TRUSTIX","x_transferred"],"url":"http://www.trustix.org/errata/2007/0026/"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://issues.rpath.com/browse/RPL-1693"},{"name":"3102","tags":["third-party-advisory","x_refsource_SREASON","x_transferred"],"url":"http://securityreason.com/securityalert/3102"},{"tags":["x_refsource_MISC","x_transferred"],"url":"http://secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability/"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://issues.rpath.com/browse/RPL-1702"},{"name":"26838","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/26838"},{"name":"php-local-infile-security-bypass(36384)","tags":["vdb-entry","x_refsource_XF","x_transferred"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/36384"},{"name":"27377","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/27377"},{"name":"4392","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred"],"url":"https://www.exploit-db.com/exploits/4392"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://www.php.net/ChangeLog-4.php"},{"name":"27102","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/27102"},{"name":"ADV-2007-3023","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"],"url":"http://www.vupen.com/english/advisories/2007/3023"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://www.php.net/releases/5_2_4.php"},{"name":"28318","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/28318"},{"name":"26642","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/26642"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2007-08-30T00:00:00.000Z","descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2017-09-28T12:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"name":"php-localinfile-mysql-security-bypass(39402)","tags":["vdb-entry","x_refsource_XF"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/39402"},{"name":"26822","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/26822"},{"name":"ADV-2008-0059","tags":["vdb-entry","x_refsource_VUPEN"],"url":"http://www.vupen.com/english/advisories/2008/0059"},{"name":"GLSA-200710-02","tags":["vendor-advisory","x_refsource_GENTOO"],"url":"http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml"},{"tags":["x_refsource_CONFIRM"],"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"},{"name":"2007-0026","tags":["vendor-advisory","x_refsource_TRUSTIX"],"url":"http://www.trustix.org/errata/2007/0026/"},{"tags":["x_refsource_CONFIRM"],"url":"https://issues.rpath.com/browse/RPL-1693"},{"name":"3102","tags":["third-party-advisory","x_refsource_SREASON"],"url":"http://securityreason.com/securityalert/3102"},{"tags":["x_refsource_MISC"],"url":"http://secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability/"},{"tags":["x_refsource_CONFIRM"],"url":"https://issues.rpath.com/browse/RPL-1702"},{"name":"26838","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/26838"},{"name":"php-local-infile-security-bypass(36384)","tags":["vdb-entry","x_refsource_XF"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/36384"},{"name":"27377","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/27377"},{"name":"4392","tags":["exploit","x_refsource_EXPLOIT-DB"],"url":"https://www.exploit-db.com/exploits/4392"},{"tags":["x_refsource_CONFIRM"],"url":"http://www.php.net/ChangeLog-4.php"},{"name":"27102","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/27102"},{"name":"ADV-2007-3023","tags":["vdb-entry","x_refsource_VUPEN"],"url":"http://www.vupen.com/english/advisories/2007/3023"},{"tags":["x_refsource_CONFIRM"],"url":"http://www.php.net/releases/5_2_4.php"},{"name":"28318","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/28318"},{"name":"26642","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/26642"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2007-3997","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"php-localinfile-mysql-security-bypass(39402)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/39402"},{"name":"26822","refsource":"SECUNIA","url":"http://secunia.com/advisories/26822"},{"name":"ADV-2008-0059","refsource":"VUPEN","url":"http://www.vupen.com/english/advisories/2008/0059"},{"name":"GLSA-200710-02","refsource":"GENTOO","url":"http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml"},{"name":"http://www.php.net/releases/4_4_8.php","refsource":"CONFIRM","url":"http://www.php.net/releases/4_4_8.php"},{"name":"http://www.php.net/ChangeLog-5.php#5.2.4","refsource":"CONFIRM","url":"http://www.php.net/ChangeLog-5.php#5.2.4"},{"name":"2007-0026","refsource":"TRUSTIX","url":"http://www.trustix.org/errata/2007/0026/"},{"name":"https://issues.rpath.com/browse/RPL-1693","refsource":"CONFIRM","url":"https://issues.rpath.com/browse/RPL-1693"},{"name":"3102","refsource":"SREASON","url":"http://securityreason.com/securityalert/3102"},{"name":"http://secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability/","refsource":"MISC","url":"http://secweb.se/en/advisories/php-mysql-safe-mode-bypass-vulnerability/"},{"name":"https://issues.rpath.com/browse/RPL-1702","refsource":"CONFIRM","url":"https://issues.rpath.com/browse/RPL-1702"},{"name":"26838","refsource":"SECUNIA","url":"http://secunia.com/advisories/26838"},{"name":"php-local-infile-security-bypass(36384)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/36384"},{"name":"27377","refsource":"SECUNIA","url":"http://secunia.com/advisories/27377"},{"name":"4392","refsource":"EXPLOIT-DB","url":"https://www.exploit-db.com/exploits/4392"},{"name":"http://www.php.net/ChangeLog-4.php","refsource":"CONFIRM","url":"http://www.php.net/ChangeLog-4.php"},{"name":"27102","refsource":"SECUNIA","url":"http://secunia.com/advisories/27102"},{"name":"ADV-2007-3023","refsource":"VUPEN","url":"http://www.vupen.com/english/advisories/2007/3023"},{"name":"http://www.php.net/releases/5_2_4.php","refsource":"CONFIRM","url":"http://www.php.net/releases/5_2_4.php"},{"name":"28318","refsource":"SECUNIA","url":"http://secunia.com/advisories/28318"},{"name":"26642","refsource":"SECUNIA","url":"http://secunia.com/advisories/26642"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2007-3997","datePublished":"2007-09-04T18:00:00.000Z","dateReserved":"2007-07-25T00:00:00.000Z","dateUpdated":"2024-08-07T14:37:06.033Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2007-09-04 18:17:00","lastModifiedDate":"2026-04-23 00:35:47","problem_types":["CWE-264","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0.0","versionEndExcluding":"4.4.8","matchCriteriaId":"F6C219FD-2507-491C-B38F-777D1A626FEC"},{"vulnerable":true,"criteria":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0.0","versionEndExcluding":"5.2.4","matchCriteriaId":"EABE00F5-DB5A-480D-8D77-73C04DBAB2A0"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2007","CveId":"3997","Ordinal":"1","Title":"CVE-2007-3997","CVE":"CVE-2007-3997","Year":"2007"},"notes":[{"CveYear":"2007","CveId":"3997","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2007-3997"},{"CveYear":"2007","CveId":"3997","Ordinal":"2","NoteData":"2007-09-04","Type":"Other","Title":"Published"},{"CveYear":"2007","CveId":"3997","Ordinal":"3","NoteData":"2017-09-28","Type":"Other","Title":"Modified"}]}}}