CVE-2008-2079: Medium severity mysql vulnerability
MySQL 4.1.24, 5.0.60, 5.1.24, and 6.0.5 fixes an issue allowing an authenticated attacker to gain privileges to tables that will be created by some other database user in future using MyISAM storage engine, if an attacker can predict names of such tables.
Attacker can create a table using DATA/INDEX DIRECTORY directives causing data and index files (.MYD/.MYI) to be created in some other directory writable by mysql server, including directories used to store table files of other users' databases. If victim later creates table with the same name, attacker's data and index files are overwritten by victim's files, but access privileges are not revoked. Attacker gains access to newly created victim's table.
References: http://bugs.mysql.com/bug.php?id=32167 http://dev.mysql.com/doc/refman/4.1/en/news-4-1-24.html http://dev.mysql.com/doc/refman/5.0/en/releasenotes-es-5-0-60.html http://dev.mysql.com/doc/refman/5.1/en/news-5-1-24.html http://dev.mysql.com/doc/refman/6.0/en/news-6-0-5.html
Other sources
MySQL 4.1.x before 4.1.24, 5.0.x before 5.0.60, 5.1.x before 5.1.24, and 6.0.x before 6.0.5 allows local users to bypass certain privilege checks by calling CREATE TABLE on a MyISAM table with modified (1) DATA DIRECTORY or (2) INDEX DIRECTORY arguments that are within the MySQL home data directory, which can point to tables that are created in the future.
— Red Hat
Affected Software
Remediation
Patch Available
Patch Available
Patch Available
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2008-2079?
CVE-2008-2079 has a moderate severity rating due to the potential for privilege escalation in MySQL.
How do I fix CVE-2008-2079?
To fix CVE-2008-2079, upgrade to MySQL versions 4.1.24, 5.0.60, 5.1.24, or 6.0.5 or later.
What versions of MySQL are affected by CVE-2008-2079?
CVE-2008-2079 affects MySQL versions 4.1.0 through 4.1.24, 5.0.0 through 5.0.60, 5.1.0 through 5.1.24, and 6.0.0 through 6.0.5.
Who is vulnerable to exploitation of CVE-2008-2079?
Authenticated users who can predict the names of future tables are vulnerable to exploitation of CVE-2008-2079.
What impact does CVE-2008-2079 have on MySQL databases?
CVE-2008-2079 allows an authenticated attacker to gain privileges to tables created by other users, potentially compromising database security.