MySQL my.ini "datadir" parameter buffer overflow

mysql-myini-datadir-bo (10243) The risk level is classified as HighHigh Risk

Description:

MySQL is vulnerable to a buffer overflow, caused my improper bounds checking of the "datadir" parameter in the my.ini MySQL configuration file. By supplying an overly long value in the "datadir" parameter in the my.ini file, a local attacker could overflow a buffer and execute code on the system with SYSTEM level privileges, once the MySQL service is restarted.


Consequences:

Gain Privileges

Remedy:

Upgrade to the latest production release of MySQL (3.23.52 or later), available from the MySQL Web site. See References.

References:

  • MySQL Web site: MySQL: The World's Most Popular Open Source Database.
  • Westpoint Security Advisory wp-02-0003: MySQL Locally Exploitable Buffer Overflow .
  • BID-5853: MySQL DataDir Parameter Local Buffer Overflow Vulnerability
  • CVE-2002-0969: Buffer overflow in MySQL daemon (mysqld) before 3.23.50, and 4.0 beta before 4.02, on the Win32 platform, allows local users to execute arbitrary code via a long datadir parameter in the my.ini initialization file, whose permissions on Windows allow Full Control to the Everyone group.
  • OSVDB ID: 9908: MySQL my.ini Initialization File datadir Parameter Overflow

Platforms Affected:

  • MySQL MySQL 3.23.49

Reported:

Oct 01, 2002

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this

Return to the main page