GLSA-201711-04 : MariaDB, MySQL: Root privilege escalation

High Nessus Plugin ID 104512

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-201711-04 (MariaDB, MySQL: Root privilege escalation)

The Gentoo installation scripts before 2017-09-29 have chown calls for user-writable directory trees, which allows local users to gain privileges by leveraging access to the mysql account for creation of a link.
Impact :

A local attacker could escalate privileges to root.
Workaround :

There is no known workaround at this time.

Solution

All MariaDB users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=dev-db/mariadb-10.0.30-r1' All MySQL users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=dev-db/mysql-5.6.36-r1'

See Also

https://security.gentoo.org/glsa/201711-04

Plugin Details

Severity: High

ID: 104512

File Name: gentoo_GLSA-201711-04.nasl

Version: Revision: 3.3

Type: local

Published: 2017/11/13

Modified: 2018/01/26

Dependencies: 12634

Risk Information

Risk Factor: High

CVSS v2.0

Base Score: 7.2

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

CVSS v3.0

Base Score: 7.8

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:mariadb, p-cpe:/a:gentoo:linux:mysql, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 2017/11/10

Reference Information

CVE: CVE-2017-15945

GLSA: 201711-04