CVE Vulnerabilities

CVE-2016-6664

Improper Link Resolution Before File Access ('Link Following')

Published: Dec 13, 2016 | Modified: Jan 24, 2023
CVSS 3.x
7
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
6.9 MEDIUM
AV:L/AC:M/Au:N/C:C/I:C/A:C
RedHat/V2
6.8 MODERATE
AV:L/AC:L/Au:S/C:C/I:C/A:C
RedHat/V3
7.8 MODERATE
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM

mysqld_safe in Oracle MySQL through 5.5.51, 5.6.x through 5.6.32, and 5.7.x through 5.7.14; MariaDB; Percona Server before 5.5.51-38.2, 5.6.x before 5.6.32-78-1, and 5.7.x before 5.7.14-8; and Percona XtraDB Cluster before 5.5.41-37.0, 5.6.x before 5.6.32-25.17, and 5.7.x before 5.7.14-26.17, when using file-based logging, allows local users with access to the mysql account to gain root privileges via a symlink attack on error logs and possibly other files.

Weakness

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Affected Software

Name Vendor Start Version End Version
Mysql Oracle 5.5.0 (including) 5.5.51 (including)
Mysql Oracle 5.6.0 (including) 5.6.32 (including)
Mysql Oracle 5.7.0 (including) 5.7.14 (including)
Red Hat Enterprise Linux 7 RedHat mariadb-1:5.5.56-2.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 6 RedHat mysql55-mysql-0:5.5.52-1.el6 *
Red Hat Software Collections for Red Hat Enterprise Linux 6 RedHat rh-mysql56-mysql-0:5.6.34-2.el6 *
Red Hat Software Collections for Red Hat Enterprise Linux 6 RedHat rh-mariadb100-mariadb-1:10.0.33-3.el6 *
Red Hat Software Collections for Red Hat Enterprise Linux 6 RedHat rh-mariadb101-galera-0:25.3.12-12.el6 *
Red Hat Software Collections for Red Hat Enterprise Linux 6 RedHat rh-mariadb101-mariadb-1:10.1.29-3.el6 *
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS RedHat mysql55-mysql-0:5.5.52-1.el6 *
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS RedHat mysql55-mysql-0:5.5.52-1.el6 *
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS RedHat rh-mysql56-mysql-0:5.6.34-2.el6 *
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS RedHat rh-mariadb100-mariadb-1:10.0.33-3.el6 *
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS RedHat rh-mariadb101-galera-0:25.3.12-12.el6 *
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS RedHat rh-mariadb101-mariadb-1:10.1.29-3.el6 *
Red Hat Software Collections for Red Hat Enterprise Linux 7 RedHat mysql55-mysql-0:5.5.52-1.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7 RedHat rh-mysql56-mysql-0:5.6.34-2.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7 RedHat rh-mariadb100-mariadb-1:10.0.33-3.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7 RedHat rh-mariadb101-galera-0:25.3.12-12.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7 RedHat rh-mariadb101-mariadb-1:10.1.29-3.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS RedHat mysql55-mysql-0:5.5.52-1.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS RedHat rh-mysql56-mysql-0:5.6.34-2.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS RedHat mysql55-mysql-0:5.5.52-1.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS RedHat rh-mysql56-mysql-0:5.6.34-2.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS RedHat rh-mariadb100-mariadb-1:10.0.33-3.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS RedHat rh-mariadb101-galera-0:25.3.12-12.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS RedHat rh-mariadb101-mariadb-1:10.1.29-3.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS RedHat rh-mariadb100-mariadb-1:10.0.33-3.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS RedHat rh-mariadb101-galera-0:25.3.12-12.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS RedHat rh-mariadb101-mariadb-1:10.1.29-3.el7 *
Mariadb-10.0 Ubuntu upstream *
Mariadb-10.0 Ubuntu xenial *
Mariadb-10.0 Ubuntu yakkety *
Mysql-5.5 Ubuntu precise *
Mysql-5.5 Ubuntu trusty *
Mysql-5.5 Ubuntu upstream *
Mysql-5.6 Ubuntu upstream *
Mysql-5.7 Ubuntu upstream *

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References