Bug 158689

Summary: CAN-2005-1636 mysql insecure temporary file creation
Product: [Fedora] Fedora Reporter: Josh Bressers <bressers>
Component: mysqlAssignee: Tom Lane <tgl>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: 4CC: hhorak
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=low,public=20050517,reported=20050517,source=cve
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-07-13 03:58:35 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 Josh Bressers 2005-05-24 20:46:27 UTC
+++ This bug was initially created as a clone of Bug #158688 +++

mysql_install_db in MySQL 4.x before 4.0.12 and 5.x up to 5.0.4 creates the
mysql_install_db.X file with a predictable filename and insecure permissions,
which allows local users to execute arbitrary SQL commands by modifying the
file's contents.

More information is in the full-disclosure post:
http://marc.theaimsgroup.com/?l=full-disclosure&m=111632686805498&w=2

Comment 1 Tom Lane 2005-07-12 23:47:41 UTC
This does not affect FC3, only FC4, since we were still using MySQL 3.x at the
time and the faulty code is not in 3.x.

Comment 2 Tom Lane 2005-07-13 03:58:35 UTC
The plan for FC4 is to push mysql-4.1.12 which includes a fix for this.  (I intend to ship 4.1.12 in RHEL4 
QU2 as well, but let's get some testing in FC4 branch first.)