MySQL udf_init function gain access

mysql-udfinit-gain-access (19658) The risk level is classified as HighHigh Risk

Description:

MySQL could allow an attacker to execute code, caused by improper validation of user-supplied input in the dl field. The udf_init function in the sql_udg.cc file uses the dl field of the mysql.func table to load libraries. A local attacker with INSERT or DELETE permissions on the backend database, or a remote attacker with privileges to create local files, could create a malicious library and use the INSERT INTO statement, which would allow the attacker to execute arbitrary code on the system, when the udf_init function is called and the library is loaded.

Platforms Affected:

  • Canonical, Ubuntu 4.10
  • Debian, Debian Linux 3.0
  • Gentoo, Linux
  • MandrakeSoft, Mandrake Linux 10.0 AMD64
  • MandrakeSoft, Mandrake Linux 10.0
  • MandrakeSoft, Mandrake Linux 10.1
  • MandrakeSoft, Mandrake Linux 10.1 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 2.1 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 2.1
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
  • MySQL, MySQL 3.23.49
  • MySQL, MySQL 4.0.0
  • MySQL, MySQL 4.0.1
  • MySQL, MySQL 4.0.10
  • MySQL, MySQL 4.0.11
  • MySQL, MySQL 4.0.11 Gamma
  • MySQL, MySQL 4.0.12
  • MySQL, MySQL 4.0.13
  • MySQL, MySQL 4.0.14
  • MySQL, MySQL 4.0.15
  • MySQL, MySQL 4.0.18
  • MySQL, MySQL 4.0.2
  • MySQL, MySQL 4.0.20
  • MySQL, MySQL 4.0.21
  • MySQL, MySQL 4.0.23
  • MySQL, MySQL 4.0.3
  • MySQL, MySQL 4.0.4
  • MySQL, MySQL 4.0.5
  • MySQL, MySQL 4.0.5A
  • MySQL, MySQL 4.0.6
  • MySQL, MySQL 4.0.7
  • MySQL, MySQL 4.0.7 Gamma
  • MySQL, MySQL 4.0.8
  • MySQL, MySQL 4.0.8 Gamma
  • MySQL, MySQL 4.0.9 Gamma
  • MySQL, MySQL 4.0.9
  • MySQL, MySQL 4.1.0.0
  • MySQL, MySQL 4.1.0.0 Alpha
  • MySQL, MySQL 4.1.2 Alpha
  • MySQL, MySQL 4.1.3 Beta
  • MySQL, MySQL 4.1.3.0
  • MySQL, MySQL 4.1.4
  • MySQL, MySQL 4.1.5
  • Novell, Linux Desktop 9
  • OpenPKG, OpenPKG 2.2
  • OpenPKG, OpenPKG CURRENT
  • RedHat, Enterprise Linux 2.1 AS
  • RedHat, Enterprise Linux 2.1 ES
  • RedHat, Enterprise Linux 2.1 WS
  • RedHat, Enterprise Linux 3 WS
  • RedHat, Enterprise Linux 3 Desktop
  • RedHat, Enterprise Linux 3 AS
  • RedHat, Enterprise Linux 3 ES
  • RedHat, Enterprise Linux 4 ES
  • RedHat, Enterprise Linux 4 AS
  • RedHat, Enterprise Linux 4 WS
  • RedHat, Enterprise Linux 4 Desktop
  • RedHat, Linux Advanced Workstation 2.1 Itanium
  • RedHat, RHEL Extras 3
  • SuSE, SuSE Linux 8.2
  • SuSE, SuSE Linux 9.0
  • SuSE, SuSE Linux 9.1
  • SuSE, SuSE Linux 9.2
  • SuSE, SuSE Linux Desktop 1.0
  • SuSE, SuSE Linux Enterprise Server 8.0
  • SuSE, SuSE SLES 9
  • Turbolinux, Turbolinux 10 Desktop
  • Turbolinux, Turbolinux 10 F...
  • Turbolinux, Turbolinux 10 Server
  • Turbolinux, Turbolinux 7 Server
  • Turbolinux, Turbolinux 7 Workstation
  • Turbolinux, Turbolinux 8 Server
  • Turbolinux, Turbolinux 8 Workstation
  • Turbolinux, Turbolinux Home
  • Turbolinux, Turbolinux Appliance Server 1.0 Hosting Ed
  • Turbolinux, Turbolinux Appliance Server 1.0 Workgroup Ed

Remedy:

Upgrade to the latest version of MySQL (4.0.24 or later), available from the MySQL Web site. See References.

For Gentoo Linux:
Upgrade to the latest version of mysql (4.0.24 and later), as listed in Gentoo Linux Security Announcement GLSA 200503-19. See References.

For SUSE Linux:
Upgrade to the latest version of mysql, as listed below. Refer to SUSE Security Announcement SUSE-SA:2005:019 for more information. See References.

x86:
SUSE Linux: 9.2: 4.0.21-4.4 or later
SUSE Linux 9.1: 4.0.18-32.13 or later
SUSE Linux 9.0: 4.0.15-71 or later
SUSE Linux 8.2: 3.23.55-32 or later

x86-64 Platform:
SUSE Linux 9.2: 4.0.21-4.4 or later
SUSE Linux 9.1: 4.0.18-32.13 or later
SUSE Linux 9.0: 4.0.15-71 or later

For OpenPKG:
Upgrade to the latest mysql package, as listed in OpenPKG Security Advisory OpenPKG-SA-2005.006. See References.

OpenPKG CURRENT: 4.1.10a-20050311 or later
OpenPKG 2.2: 4.0.21-2.2.2 or later

For Debian GNU/Linux:
Refer to DSA-707-1 for patch, upgrade, or suggested workaround information. See References.

For Red Hat Linux:
Refer to RHSA-2005:334-07 or RHSA-2005:348-06 for patch, upgrade, or suggested workaround information. See References.

For Ubuntu Linux:
Refer to USN-96-1 for patch, upgrade, or suggested workaround information. See References.

For other distributions:
Contact your vendor for upgrade or patch information.

Consequences:

Gain Access

References:

Reported:

Mar 11, 2005

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 (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.

Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.

For corrections or additions please email xforce@iss.net

Return to the main page