Oracle MySQL 5.5.x < 5.5.53 Multiple Vulnerabilities

critical Nessus Network Monitor Plugin ID 9747

Synopsis

The remote database server is vulnerable to multiple attack vectors.

Description

The version of MySQL installed on the remote host is version 5.5.x prior to 5.5.53 and is affected by multiple issues :

- An unspecified flaw exists related to the Security: Encryption subcomponent. This may allow an authenticated remote attacker to disclose potentially sensitive information. No further details have been provided by the vendor. (CVE-2016-5584)
- A flaw exists that may allow a local attacker with DBA permissions to gain elevated privileges. The issue is due to the program not properly restricting the ability to write to configuration files (e.g. my.cnf), combined with it loading a configuration file from specific locations that current versions do not use (e.g. /var/lib/mysql/my.cnf). This may allow an attacker to leverage specially crafted queries to use logging functionality to create new files or append custom content to existing files. By placing a custom .cnf file that MySQL will load, with a 'malloc_lib=' directive pointing to an attacker controlled 'mysql_hookandroot_lib.so' file, the attacker can cause MySQL to read the configuration file and load the malicious library the next time it starts. This can allow the attacker to gain root privileges. (CVE-2016-6662)

Solution

Upgrade to MySQL 5.5.53 or later.

See Also

https://threatpost.com/critical-mysql-vulnerability-disclosed/120486

http://www.zdnet.com/article/zero-day-vulnerability-found-within-mysql-database-application

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837883

Plugin Details

Severity: Critical

ID: 9747

Family: Database

Published: 11/4/2016

Updated: 3/6/2019

Nessus ID: 94165, 94196

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 8.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 9.4

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:X/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:oracle:mysql

Patch Publication Date: 10/12/2015

Vulnerability Publication Date: 9/12/2016

Reference Information

CVE: CVE-2016-5584, CVE-2016-6662

BID: 93735