Bug 397091 (CVE-2007-5970)

Summary: CVE-2007-5970 mysql: table privilege gain via partitioned table with the same name
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: tgl
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-12-13 08:34:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomas Hoger 2007-11-23 17:19:30 UTC
From the changelog of not yet released versions of MySQL:

Important Change: Partitioning: Security Fix: It was possible, by creating a
partitioned table using the DATA DIRECTORY and INDEX DIRECTORY options to gain
privileges on other tables having the same name as the partitioned table. As a
result of this fix, any table-level DATA DIRECTORY or INDEX DIRECTORY options
are now ignored for partitioned tables. (Bug#32091, CVE-2007-5970)

Mentioned in:

MySQL 5.1.23
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-23.html

MySQL 6.0.4
http://dev.mysql.com/doc/refman/6.0/en/news-6-0-4.html

Referenced MySQL bug report is not public at the moment:
http://bugs.mysql.com/bug.php?id=32091

Comment 2 Tomas Hoger 2007-12-11 17:40:13 UTC
CVE description:

CVE-2007-5970

MySQL 5.1.x before 5.1.23 and 6.0.x before 6.0.4 allows remote
authenticated users to gain privileges on arbitrary tables via
unspecified vectors involving use of table-level DATA DIRECTORY and
INDEX DIRECTORY options when creating a partitioned table with the
same name as a table on which the user lacks privileges.

References:
http://bugs.mysql.com/bug.php?id=32091
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-23.html
http://dev.mysql.com/doc/refman/6.0/en/news-6-0-4.html

Upstream bug report remains private.


Comment 3 Tomas Hoger 2007-12-13 08:34:19 UTC
This issue did not affect mysql packages as shipped in Red Hat Enterprise Linux
2.1, 3, 4, and 5, Red Hat Application Stack v1 and v2 and Fedora, as versions
shipped do not support table partitioning.  Partitioning feature was introduced
in development MySQL version 5.1.