ID CVE-2012-5611
Summary Stack-based buffer overflow in the acl_get function in Oracle MySQL 5.5.19 and other versions through 5.5.28, and 5.1.53 and other versions through 5.1.66, and MariaDB 5.5.2.x before 5.5.28a, 5.3.x before 5.3.11, 5.2.x before 5.2.13 and 5.1.x before 5.1.66, allows remote authenticated users to execute arbitrary code via a long argument to the GRANT FILE command. per http://www.openwall.com/lists/oss-security/2012/12/02/3, this vulnerability is only on linux-based software installations
References
Vulnerable Configurations
  • cpe:2.3:a:mariadb:mariadb:5.1.41:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.1.41:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.1.42:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.1.42:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.1.44:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.1.44:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.1.47:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.1.47:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.1.49:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.1.49:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.1.50:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.1.50:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.1.51:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.1.51:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.1.53:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.1.53:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.1.55:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.1.55:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.1.60:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.1.60:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.1.61:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.1.61:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.1.62:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.1.62:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.2.1:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.2.2:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.2.2:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.2.3:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.2.3:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.2.4:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.2.4:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.2.5:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.2.5:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.2.6:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.2.6:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.2.7:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.2.7:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.2.8:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.2.8:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.2.9:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.2.9:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.2.10:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.2.10:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.2.11:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.2.11:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.2.12:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.2.12:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.3.0:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.3.1:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.3.1:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.3.2:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.3.2:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.3.3:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.3.3:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.3.4:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.3.4:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.3.5:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.3.5:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.3.6:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.3.6:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.3.7:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.3.7:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.3.8:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.3.8:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.3.9:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.3.9:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.3.10:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.3.10:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.5.20:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.5.20:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.5.21:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.5.21:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.5.22:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.5.22:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.5.23:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.5.23:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.5.24:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.5.24:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.5.25:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.5.25:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.5.27:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.5.27:*:*:*:*:*:*:*
  • cpe:2.3:a:mariadb:mariadb:5.5.28:*:*:*:*:*:*:*
    cpe:2.3:a:mariadb:mariadb:5.5.28:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:5.1.53:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:5.1.53:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql:5.5.19:*:*:*:*:*:*:*
    cpe:2.3:a:oracle:mysql:5.5.19:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux:*:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux:*:*:*:*:*:*:*:*
CVSS
Base: 6.5 (as of 19-09-2017 - 01:35)
Impact:
Exploitability:
CWE CWE-119
CAPEC
  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
Access
VectorComplexityAuthentication
NETWORK LOW SINGLE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
cvss-vector via4 AV:N/AC:L/Au:S/C:P/I:P/A:P
oval via4
accepted 2015-06-01T04:00:10.778-04:00
class vulnerability
contributors
  • name Sergey Artykhov
    organization ALTX-SOFT
  • name Evgeniy Pavlov
    organization ALTX-SOFT
definition_extensions
  • comment MySQL 5.1 is installed
    oval oval:org.mitre.oval:def:8297
  • comment MySQL 5.5 is installed
    oval oval:org.mitre.oval:def:8419
description Stack-based buffer overflow in the acl_get function in Oracle MySQL 5.5.19 and other versions through 5.5.28, and 5.1.53 and other versions through 5.1.66, and MariaDB 5.5.2.x before 5.5.28a, 5.3.x before 5.3.11, 5.2.x before 5.2.13 and 5.1.x before 5.1.66, allows remote authenticated users to execute arbitrary code via a long argument to the GRANT FILE command.
family windows
id oval:org.mitre.oval:def:16395
status accepted
submitted 2013-04-29T10:26:26.748+04:00
title Vulnerability in the MySQL Server component of Oracle MySQL (subcomponent: Server Privileges). Supported versions that are affected are 5.1.66 and earlier and 5.5.28 and earlier. Easily exploitable vulnerability allows successful authenticated network attacks via multiple protocols. Successful attack of this vulnerability can result in unauthorized Operating System takeover including arbitrary code execution
version 20
redhat via4
advisories
  • bugzilla
    id 881064
    title CVE-2012-5611 mysql: acl_get() stack-based buffer overflow
    oval
    AND
    • OR
      • comment Red Hat Enterprise Linux 6 Client is installed
        oval oval:com.redhat.rhba:tst:20111656001
      • comment Red Hat Enterprise Linux 6 Server is installed
        oval oval:com.redhat.rhba:tst:20111656002
      • comment Red Hat Enterprise Linux 6 Workstation is installed
        oval oval:com.redhat.rhba:tst:20111656003
      • comment Red Hat Enterprise Linux 6 ComputeNode is installed
        oval oval:com.redhat.rhba:tst:20111656004
    • OR
      • AND
        • comment mysql is earlier than 0:5.1.66-2.el6_3
          oval oval:com.redhat.rhsa:tst:20121551005
        • comment mysql is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhba:tst:20131647006
      • AND
        • comment mysql-bench is earlier than 0:5.1.66-2.el6_3
          oval oval:com.redhat.rhsa:tst:20121551013
        • comment mysql-bench is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhba:tst:20131647020
      • AND
        • comment mysql-devel is earlier than 0:5.1.66-2.el6_3
          oval oval:com.redhat.rhsa:tst:20121551011
        • comment mysql-devel is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhba:tst:20131647008
      • AND
        • comment mysql-embedded is earlier than 0:5.1.66-2.el6_3
          oval oval:com.redhat.rhsa:tst:20121551019
        • comment mysql-embedded is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhba:tst:20131647012
      • AND
        • comment mysql-embedded-devel is earlier than 0:5.1.66-2.el6_3
          oval oval:com.redhat.rhsa:tst:20121551007
        • comment mysql-embedded-devel is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhba:tst:20131647014
      • AND
        • comment mysql-libs is earlier than 0:5.1.66-2.el6_3
          oval oval:com.redhat.rhsa:tst:20121551015
        • comment mysql-libs is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhba:tst:20131647010
      • AND
        • comment mysql-server is earlier than 0:5.1.66-2.el6_3
          oval oval:com.redhat.rhsa:tst:20121551017
        • comment mysql-server is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhba:tst:20131647018
      • AND
        • comment mysql-test is earlier than 0:5.1.66-2.el6_3
          oval oval:com.redhat.rhsa:tst:20121551009
        • comment mysql-test is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhba:tst:20131647016
    rhsa
    id RHSA-2012:1551
    released 2012-12-07
    severity Important
    title RHSA-2012:1551: mysql security update (Important)
  • bugzilla
    id 881064
    title CVE-2012-5611 mysql: acl_get() stack-based buffer overflow
    oval
    AND
    • comment Red Hat Enterprise Linux 5 is installed
      oval oval:com.redhat.rhba:tst:20070331001
    • OR
      • AND
        • comment mysql is earlier than 0:5.0.95-5.el5_9
          oval oval:com.redhat.rhsa:tst:20130180002
        • comment mysql is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070875012
      • AND
        • comment mysql-bench is earlier than 0:5.0.95-5.el5_9
          oval oval:com.redhat.rhsa:tst:20130180006
        • comment mysql-bench is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070875018
      • AND
        • comment mysql-devel is earlier than 0:5.0.95-5.el5_9
          oval oval:com.redhat.rhsa:tst:20130180004
        • comment mysql-devel is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070875014
      • AND
        • comment mysql-server is earlier than 0:5.0.95-5.el5_9
          oval oval:com.redhat.rhsa:tst:20130180008
        • comment mysql-server is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070875016
      • AND
        • comment mysql-test is earlier than 0:5.0.95-5.el5_9
          oval oval:com.redhat.rhsa:tst:20130180010
        • comment mysql-test is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070875020
    rhsa
    id RHSA-2013:0180
    released 2013-01-22
    severity Important
    title RHSA-2013:0180: mysql security update (Important)
rpms
  • mysql-0:5.1.66-2.el6_3
  • mysql-bench-0:5.1.66-2.el6_3
  • mysql-devel-0:5.1.66-2.el6_3
  • mysql-embedded-0:5.1.66-2.el6_3
  • mysql-embedded-devel-0:5.1.66-2.el6_3
  • mysql-libs-0:5.1.66-2.el6_3
  • mysql-server-0:5.1.66-2.el6_3
  • mysql-test-0:5.1.66-2.el6_3
  • mysql-0:5.0.95-5.el5_9
  • mysql-bench-0:5.0.95-5.el5_9
  • mysql-devel-0:5.0.95-5.el5_9
  • mysql-server-0:5.0.95-5.el5_9
  • mysql-test-0:5.0.95-5.el5_9
refmap via4
confirm
debian DSA-2581
exploit-db 23075
fulldisc 20121201 MySQL (Linux) Stack based buffer overrun PoC Zeroday
gentoo GLSA-201308-06
mandriva
  • MDVSA-2013:102
  • MDVSA-2013:150
mlist [oss-security] 20121202 Re: Re: [Full-disclosure] MySQL (Linux) Stack based buffer overrun PoC Zeroday
secunia
  • 51443
  • 53372
suse
  • SUSE-SU-2013:0262
  • openSUSE-SU-2013:0011
  • openSUSE-SU-2013:0013
  • openSUSE-SU-2013:0014
  • openSUSE-SU-2013:0135
  • openSUSE-SU-2013:0156
  • openSUSE-SU-2013:1412
ubuntu
  • USN-1658-1
  • USN-1703-1
Last major update 19-09-2017 - 01:35
Published 03-12-2012 - 12:49
Back to Top