Lucene search

K
gentooGentoo FoundationGLSA-200501-33
HistoryJan 23, 2005 - 12:00 a.m.

MySQL: Insecure temporary file creation

2005-01-2300:00:00
Gentoo Foundation
security.gentoo.org
15

CVSS2

4.6

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:L/AC:L/Au:N/C:P/I:P/A:P

EPSS

0.001

Percentile

26.5%

Background

MySQL is a fast, multi-threaded, multi-user SQL database server.

Description

Javier Fernandez-Sanguino Pena from the Debian Security Audit Project discovered that the ‘mysqlaccess’ script creates temporary files in world-writeable directories with predictable names.

Impact

A local attacker could create symbolic links in the temporary files directory, pointing to a valid file somewhere on the filesystem. When the mysqlaccess script is executed, this would result in the file being overwritten with the rights of the user running the software, which could be the root user.

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-4.0.22-r2"
OSVersionArchitecturePackageVersionFilename
Gentooanyalldev-db/mysql< 4.0.22-r2UNKNOWN

CVSS2

4.6

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:L/AC:L/Au:N/C:P/I:P/A:P

EPSS

0.001

Percentile

26.5%