Users login

Create an account »


Users login

Home » Hacking News » OpenPKG SA-2003.022: mysql remote root exploit

OpenPKG SA-2003.022: mysql remote root exploit

by Nikola Strahija on March 21st, 2003 In MySQL server version 3.23.55 (and prior) there is a remote root exploit vulnerability. In order to gain remote root access, the MySQL server has to be launched by root and access to an account with the FILE privilege must exist.

Hash: SHA1


OpenPKG Security Advisory The OpenPKG Project
[email protected] [email protected]
OpenPKG-SA-2003.022 18-Mar-2003

Package: mysql
Vulnerability: remote root exploit
OpenPKG Specific: no

Affected Releases: Affected Packages: Corrected Packages:
OpenPKG CURRENT <= mysql-3.23.55-20030211 >= mysql-3.23.56-20030318
OpenPKG 1.2 <= mysql-3.23.54a-1.2.1 >= mysql-3.23.54a-1.2.2
OpenPKG 1.1 <= mysql-3.23.52-1.1.2 >= mysql-3.23.52-1.1.3

Dependent Packages: none

According to a report on BugTraq [0], a remote root exploit
vulnerability exists in version 3.23.55 and earlier versions of the
MySQL server [1]. If the MySQL server is launched by root, as it is
often done by system startup scripts, any database users with the
"FILE" privilege can write a configuration file (usually my.cnf) that
causes the MySQL server to run under an arbitrary user id including
the user id of the super-user on the next restart.

Please check whether you are affected by running "/bin/rpm -q
mysql". If you have the "mysql" package installed and its version is
affected (see above), we recommend that you immediately upgrade it
(see Solution). [2][3]

Select the updated source RPM appropriate for your OpenPKG release
[4][5], fetch it from the OpenPKG FTP service [6][7] or a mirror
location, verify its integrity [8], build a corresponding binary RPM
from it [2] and update your OpenPKG installation by applying the
binary RPM [3]. For the current release OpenPKG 1.2, perform the
following operations to permanently fix the security problem (for
other releases adjust accordingly).

$ ftp
ftp> bin
ftp> cd release/1.2/UPD
ftp> get mysql-3.23.54a-1.2.2.src.rpm
ftp> bye
$ /bin/rpm -v --checksig mysql-3.23.54a-1.2.2.src.rpm
$ /bin/rpm --rebuild mysql-3.23.54a-1.2.2.src.rpm
$ su -
# /bin/rpm -Fvh /RPM/PKG/mysql-3.23.54a-1.2.2.*.rpm



For security reasons, this advisory was digitally signed with
the OpenPGP public key "OpenPKG " (ID 63C4CB9F)
of the OpenPKG project which you can find under the official URL or on To
check the integrity of this advisory, verify its digital signature by
using GnuPG ( For instance, pipe this message to
the command "gpg --verify --keyserver".

Comment: OpenPKG


Newsletter signup

Signup to our monthly newsletter and stay in touch with IT news!

Free E-books

We've got ebooks! But they're not online. :( Please give us a few days to bring downloads back.


Have something to say or just wanna drop us a line? Please keep this in mind: to spam, we reply with spam.

Contact us »