CWE
89
Advisory Published
Updated

CVE-2007-6318: SQL Injection

First published: Wed Dec 12 2007(Updated: )

SQL injection vulnerability in wp-includes/query.php in WordPress 2.3.1 and earlier allows remote attackers to execute arbitrary SQL commands via the s parameter, when DB_CHARSET is set to (1) Big5, (2) GBK, or possibly other character set encodings that support a "\" in a multibyte character.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
WordPress=2.0
WordPress=2.0.1
WordPress=2.0.2
WordPress=2.0.3
WordPress=2.0.4
WordPress=2.0.5
WordPress=2.0.6
WordPress=2.0.7
WordPress=2.0.10
WordPress=2.0.10_rc1
WordPress=2.0.10_rc2
WordPress=2.1.1
WordPress=2.1.2
WordPress=2.1.3
WordPress=2.1.3_rc1
WordPress=2.1.3_rc2
WordPress=2.2
WordPress=2.2.1
WordPress=2.2.2
WordPress=2.2.3
WordPress=2.2_revision5002
WordPress=2.2_revision5003
WordPress=2.3
WordPress=2.3.1

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-6318?

    CVE-2007-6318 has been classified as a critical SQL injection vulnerability.

  • How do I fix CVE-2007-6318?

    To fix CVE-2007-6318, update your WordPress installation to version 2.3.2 or later.

  • Which versions of WordPress are affected by CVE-2007-6318?

    CVE-2007-6318 affects WordPress versions 2.3.1 and earlier.

  • What can attackers do with CVE-2007-6318?

    Attackers can exploit CVE-2007-6318 to execute arbitrary SQL commands on the database.

  • Is CVE-2007-6318 specific to certain character sets?

    Yes, CVE-2007-6318 is particularly problematic for databases where DB_CHARSET is set to Big5 or GBK.

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