Link following in MariaDB - CVE-2016-6664

 

Link following in MariaDB - CVE-2016-6664

Published: December 13, 2016 / Updated: November 20, 2020


Vulnerability identifier: #VU32164
CSH Severity: Low
CVSS v4: 7.3 [CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-6664
CWE-ID: CWE-59
Exploitation vector: Local access
Exploit availability: The vulnerability is being exploited in the wild

Vulnerability details

The vulnerability allows a local authenticated user to execute arbitrary code.

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.


Affected software

MariaDB
mariadb (Alpine package)

How to mitigate CVE-2016-6664

Install update from vendor's website.

MariaDB - addressed in versions 5.5.41, 5.5.51
mariadb (Alpine package) - update to 10.1.21-r0

External References

Related Security Bulletins