Public exploit available
Public proof-of-concept or exploit code exists (ExploitDB / Metasploit / Nuclei).

CVE-2016-6664Link Following in Mariadb

CWE-59Link Following9 documents8 sources
Severity
7.0HIGHNVD
EPSS
54.4%
top 1.97%
CISA KEV
Not in KEV
Exploit
PoC available
Public exploit / PoC exists
Timeline
PublishedDec 13
Latest updateMay 13

Description

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.

CVSS vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HExploitability: 1.0 | Impact: 5.9

Affected Packages5 packages

NVDpercona/xtradb_cluster5.55.5.41-37.0+2
NVDpercona/percona_server5.55.5.51-38.2+2
NVDoracle/mysql5.5.05.5.51+2
NVDmariadb/mariadb5.5.05.5.54+2
Alpinemariadb/mariadb< 10.1.21-r0+20

Patches

🔴Vulnerability Details

3
GHSA
GHSA-f9x4-3x96-w2vf: mysqld_safe in Oracle MySQL through 52022-05-13
OSV
CVE-2016-6664: mysqld_safe in Oracle MySQL through 52016-12-13
CVEList
CVE-2016-6664: mysqld_safe in Oracle MySQL through 52016-12-13

💥Exploits & PoCs

1
Exploit-DB
MySQL / MariaDB / PerconaDB 5.5.x/5.6.x/5.7.x - 'root' System User Privilege Escalation2016-11-01

📋Vendor Advisories

3
Red Hat
mysql: insecure error log file handling in mysqld_safe, incomplete CVE-2016-6664 fix (CPU Jan 2017)2017-01-17
Microsoft
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 Xtr2016-12-13
Red Hat
mysql: insecure error log file handling in mysqld_safe (CPU Oct 2016)2016-10-19

💬Community

1
Bugzilla
CVE-2017-3312 mysql: insecure error log file handling in mysqld_safe, incomplete CVE-2016-6664 fix (CPU Jan 2017)2017-01-17
CVE-2016-6664 — Link Following in Mariadb | cvebase