7.5
CWE
264 89
Advisory Published
Updated

CVE-2007-3997: SQL Injection

First published: Tue Sep 04 2007(Updated: )

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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
PHP>=4.0.0<4.4.8
PHP>=5.0.0<5.2.4

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2007-3997?

    CVE-2007-3997 is considered a critical vulnerability due to its ability to bypass security restrictions.

  • How do I fix CVE-2007-3997?

    To fix CVE-2007-3997, upgrade PHP to version 4.4.8 or 5.2.4 or later.

  • Which PHP versions are affected by CVE-2007-3997?

    CVE-2007-3997 affects PHP versions prior to 4.4.8 and 5.2.4.

  • What are the risks associated with CVE-2007-3997?

    The risks include unauthorized file access and potential data theft due to the bypass of safe_mode and open_basedir restrictions.

  • Can CVE-2007-3997 be exploited remotely?

    Yes, attackers can exploit CVE-2007-3997 remotely through MySQL LOCAL INFILE operations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203