MySQL: Privilege bypass — GLSA 200809-04

A vulnerability in MySQL might allow users to bypass privileges and gain access to other databases.

Affected Packages

dev-db/mysql on all architectures
Affected versions < 5.0.60-r1
Unaffected versions >= 5.0.60-r1

Background

MySQL is a popular multi-threaded, multi-user SQL server.

Description

Sergei Golubchik reported that MySQL imposes no restrictions on the specification of "DATA DIRECTORY" or "INDEX DIRECTORY" in SQL "CREATE TABLE" statements.

Impact

An authenticated remote attacker could create MyISAM tables, specifying DATA or INDEX directories that contain future table files by other database users, or existing table files in the MySQL data directory, gaining access to those tables.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-db/mysql-5.0.60-r1"

References

Release Date
September 04, 2008

Latest Revision
September 04, 2008: 01

Severity
normal

Exploitable
remote

Bugzilla entries