CVE-2007-2692: MySQL
Medium severity, CVSS 6.0. EPSS: 1.9% chance of exploitation in the next 30 days.
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.
Affected products
- MySQL MySQL: version 5.0.0 only; version 5.0.1 only; version 5.0.2 only; version 5.0.3 only; version 5.0.4 only; version 5.0.5 only; …
- Oracle MySQL: version 5.0.0 only; version 5.0.3 only; version 5.0.6 only; version 5.0.7 only; version 5.0.8 only; version 5.0.9 only; …
Published 2007-05-16. Last modified 2026-06-16.