ID CVE-2005-0709
Summary MySQL 4.0.23 and earlier, and 4.1.x up to 4.1.10, allows remote authenticated users with INSERT and DELETE privileges to execute arbitrary code by using CREATE FUNCTION to access libc calls, as demonstrated by using strcat, on_exit, and exit.
References
Vulnerable Configurations
  • cpe:2.3:a:mysql:mysql:4.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:mysql:mysql:4.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:mysql:mysql:4.1.3:*:*:*:*:*:*:*
    cpe:2.3:a:mysql:mysql:4.1.3:*:*:*:*:*:*:*
  • cpe:2.3:a:mysql:mysql:4.1.10:*:*:*:*:*:*:*
    cpe:2.3:a:mysql:mysql:4.1.10:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:3.23.49:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:3.23.49:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.0:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.0:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.1:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.2:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.2:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.3:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.3:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.4:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.4:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.5:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.5:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.5a:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.5a:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.6:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.6:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.7:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.7:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.7:gamma:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.7:gamma:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.8:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.8:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.8:gamma:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.8:gamma:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.9:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.9:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.9:gamma:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.9:gamma:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.10:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.10:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.11:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.11:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.11:gamma:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.11:gamma:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.12:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.12:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.13:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.13:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.14:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.14:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.15:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.15:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.18:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.18:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.20:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.20:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.21:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.21:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.0.23:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.0.23:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.1.0:alpha:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.1.0:alpha:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.1.2:alpha:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.1.2:alpha:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.1.3:beta:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.1.3:beta:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.1.4:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.1.4:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:4.1.5:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:4.1.5:*:*:*:*:*:*:*
CVSS
Base: 4.6 (as of 07-10-2019 - 16:42)
Impact:
Exploitability:
CWE CWE-94
CAPEC
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
Access
VectorComplexityAuthentication
LOCAL LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
cvss-vector via4 AV:L/AC:L/Au:N/C:P/I:P/A:P
oval via4
accepted 2013-04-29T04:06:00.918-04:00
class vulnerability
contributors
  • name Aharon Chernin
    organization SCAP.com, LLC
  • name Dragos Prisaca
    organization G2, Inc.
definition_extensions
  • comment The operating system installed on the system is Red Hat Enterprise Linux 3
    oval oval:org.mitre.oval:def:11782
  • comment CentOS Linux 3.x
    oval oval:org.mitre.oval:def:16651
  • comment The operating system installed on the system is Red Hat Enterprise Linux 4
    oval oval:org.mitre.oval:def:11831
  • comment CentOS Linux 4.x
    oval oval:org.mitre.oval:def:16636
  • comment Oracle Linux 4.x
    oval oval:org.mitre.oval:def:15990
description MySQL 4.0.23 and earlier, and 4.1.x up to 4.1.10, allows remote authenticated users with INSERT and DELETE privileges to execute arbitrary code by using CREATE FUNCTION to access libc calls, as demonstrated by using strcat, on_exit, and exit.
family unix
id oval:org.mitre.oval:def:10479
status accepted
submitted 2010-07-09T03:56:16-04:00
title MySQL 4.0.23 and earlier, and 4.1.x up to 4.1.10, allows remote authenticated users with INSERT and DELETE privileges to execute arbitrary code by using CREATE FUNCTION to access libc calls, as demonstrated by using strcat, on_exit, and exit.
version 23
redhat via4
advisories
  • rhsa
    id RHSA-2005:334
  • rhsa
    id RHSA-2005:348
refmap via4
apple
  • APPLE-SA-2005-08-15
  • APPLE-SA-2005-08-17
bid 12781
bugtraq 20050310 Mysql CREATE FUNCTION libc arbitrary code execution.
debian DSA-707
gentoo GLSA-200503-19
mandrake MDKSA-2005:060
sunalert 101864
suse SUSE-SA:2005:019
trustix 2005-0009
ubuntu USN-96-1
vulnwatch 20050310 Mysql CREATE FUNCTION libc arbitrary code execution.
Last major update 07-10-2019 - 16:42
Published 02-05-2005 - 04:00
Last modified 17-12-2019 - 17:12
Back to Top