SECURITYINVOKER stored procedure permission elevation vulnerability MySQL AB SECURITY INVOKER stored procedure permission elevation vulnerability.
Affected systems:
MySQL AB MySQL 5.1.x <5.1.18.
MySQL AB MySQL 5.0.x <5.0.40.
Unaffected system:
MySQL AB MySQL 5.1.18.
MySQL AB MySQL 5.0.40.
Description:
MySQL is a widely used open-source relational database system with running versions on various platforms.
MySQL has a vulnerability in processing the returned status of SQL SECURITY INVOKER stored procedures. local attackers may exploit this vulnerability to escalate privileges in the database system.
When the SQL SECURITY INVOKER stored procedure returns, the mysql_change_db function in MySQL does not restore the THD: db_access permission, which may allow remote authenticated users to gain higher permissions. This vulnerability occurs only when SQL security invoker is used to define a routine. if SQL SECURITY DEFINER is used, the SECURITY environment can be correctly switched between definer and invoker.
Vendor patch:
MySQL AB
The vendor has released a patch to fix this security problem. Please download it from the vendor's homepage:
Http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.41.tar.gz/from/pick
Http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.18-beta.tar.gz/from/pick