NetSight
medium6.0

CVE-2007-2692

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 I…

Impact

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

VendorProductAffected versions
MysqlMysql
Versions 5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.0.4, 5.0.5
OracleMysql
Versions 5.0.0, 5.0.3, 5.0.6, 5.0.7, 5.0.8, 5.0.9

References