MySQL datadir/my.cnf Modification Privilege Escalation

high Nessus Plugin ID 11378
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 prone to a privilege escalation attack.


The remote version of MySQL is older than 3.23.56. Such versions are affected by an issue that may allow the mysqld service to start with elevated privileges. An attacker can exploit this vulnerability by creating a 'DATADIR/my.cnf' that includes the line 'user=root' under the '[mysqld]' option section. When the mysqld service is executed, it will run as the root user instead of the default user.


Upgrade to at least version 3.23.56.

See Also

Plugin Details

Severity: High

ID: 11378

File Name: SHN_MySQL_Privilege_Escalation.nasl

Version: 1.23

Type: remote

Family: Databases

Published: 3/14/2003

Updated: 11/15/2018

Dependencies: find_service1.nasl, mysql_version.nasl

Risk Information


Risk Factor: Medium

Score: 6.7


Risk Factor: High

Base Score: 9

Temporal Score: 7

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

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

Vulnerability Information

CPE: cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:*

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 3/8/2003

Reference Information

CVE: CVE-2003-0150

BID: 7052