CWE
NVD-CWE-Other
Advisory Published
Updated

CVE-2007-2692

First published: Wed May 16 2007(Updated: )

The mysql_change_db function in MySQL 5.0.x before 5.0.40 and 5.1.x before 5.1.18 does not restore THD::db_access privileges when returning from SQL SECURITY INVOKER stored routines, which allows remote authenticated users to gain privileges.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
MySQL=5.0.0
MySQL=5.0.1
MySQL=5.0.2
MySQL=5.0.3
MySQL=5.0.4
MySQL=5.0.5
MySQL=5.0.5.0.21
MySQL=5.0.10
MySQL=5.0.15
MySQL=5.0.16
MySQL=5.0.17
MySQL=5.0.20
MySQL=5.0.22.1.0.1
MySQL=5.0.24
MySQL=5.1.5
MySQL=5.0.0-alpha
MySQL=5.0.3-beta
MySQL=5.0.6
MySQL=5.0.7
MySQL=5.0.8
MySQL=5.0.9
MySQL=5.0.11
MySQL=5.0.12
MySQL=5.0.13
MySQL=5.0.14
MySQL=5.0.18
MySQL=5.0.19
MySQL=5.0.21
MySQL=5.0.22
MySQL=5.0.27
MySQL=5.0.33
MySQL=5.0.37
MySQL=5.1.1
MySQL=5.1.2
MySQL=5.1.3
MySQL=5.1.4
MySQL=5.1.6
MySQL=5.1.7
MySQL=5.1.8
MySQL=5.1.9
MySQL=5.1.10
MySQL=5.1.11
MySQL=5.1.12
MySQL=5.1.13
MySQL=5.1.14
MySQL=5.1.15
MySQL=5.1.16
MySQL=5.1.17

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

    CVE-2007-2692 is classified as a moderate severity vulnerability due to its potential for privilege escalation.

  • How do I fix CVE-2007-2692?

    To fix CVE-2007-2692, upgrade MySQL to version 5.0.40 or later for 5.0.x, and to version 5.1.18 or later for 5.1.x.

  • What types of software are affected by CVE-2007-2692?

    CVE-2007-2692 affects MySQL versions 5.0.0 through 5.0.39 and certain 5.1.x versions prior to 5.1.18.

  • Who can exploit CVE-2007-2692?

    Remote authenticated users can exploit CVE-2007-2692 to gain elevated privileges unexpectedly.

  • What vulnerabilities does CVE-2007-2692 address?

    CVE-2007-2692 addresses a flaw in restoring database access privileges after executing SQL SECURITY INVOKER stored routines.

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