Vulnerability in MySQL
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 INVOKER stored routines, which allows remote authenticated users to gain privileges.
Published · last modified .
CVSS v2 metric
CVSS v2 base score 6.0 (Medium). Vector: AV:N/AC:M/Au:S/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.019, 79.8th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- MySQL — versions 5.0.0, 5.0.1, 5.0.2
- Oracle MySQL — versions 5.0.0, 5.0.3, 5.0.6
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (tomwillfixit/alpine-cvecheck). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- secunia.com/advisories/27823 (third-party-advisory)
- secunia.com/advisories/29443 (third-party-advisory)
- dev.mysql.com/doc/refman/5.1/en/news-5-1-18.html
- RHSA-2007:0894 (vendor-advisory)
- secunia.com/advisories/26073 (third-party-advisory)
- MDVSA-2008:028 (vendor-advisory)
- [announce] 20070712 MySQL Community Server 5.0.45 has been released! (mailing-list)
- ADV-2007-1804 (vdb-entry)
- oval:org.mitre.oval:def:9166 (signature, vdb-entry)
- 20070717 rPSA-2007-0143-1 mysql mysql-bench mysql-server (mailing-list)