MariaDB 5.5.x < 5.5.51 Multiple Vulnerabilities

critical Nessus Plugin ID 93611
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.


The remote database server is affected by multiple vulnerabilities.


The version of MariaDB running on the remote host is 5.5.x prior to 5.5.51. It is, therefore, affected by multiple vulnerabilities:

- A flaw exists in the check_log_path() function within file sql/ due to inadequate restrictions on the ability to write to the my.cnf configuration file and allowing the loading of configuration files from path locations not used by current versions. An authenticated, remote attacker can exploit this issue by using specially crafted queries that utilize logging functionality to create new files or append custom content to existing files. This allows the attacker to gain root privileges by inserting a custom .cnf file with a 'malloc_lib=' directive pointing to specially crafted file and thereby cause MySQL to load a malicious library the next time it is started. (CVE-2016-6662)

- A denial of service vulnerability exists in the emb_stmt_execute() function in file libmysqld/ when handling queries. An authenticated, remote attacker can exploit this to crash the database.

- A denial of service vulnerability exists in the st_select_lex_unit::cleanup() function within file sql/ when handling UNION queries during JOIN cleanup. An authenticated, remote attacker can exploit this to crash the database.


Upgrade to MariaDB version 5.5.51 or later.

See Also

Plugin Details

Severity: Critical

ID: 93611

File Name: mariadb_5_5_51.nasl

Version: 1.12

Type: remote

Family: Databases

Published: 9/20/2016

Updated: 11/14/2019

Dependencies: mysql_version.nasl, mysql_login.nasl

Configuration: Enable paranoid mode

Risk Information

CVSS Score Source: CVE-2016-6662


Risk Factor: High

Score: 8.4


Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

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

Temporal Vector: E:POC/RL:OF/RC:C


Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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

Temporal Vector: E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:mariadb:mariadb

Required KB Items: Settings/ParanoidReport

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 8/10/2016

Vulnerability Publication Date: 12/18/2015

Reference Information

CVE: CVE-2016-6662

BID: 92912

EDB-ID: 40360