← Vulnerability feed

Vulnerability record · CVE-2016-6664 · published 13 December 2016

CVE-2016-6664: Oracle mysql link following vulnerability

Oracle · Mysql

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.

7.0 CVSS 3.1 High EPSS 3.0% · top 13.3% CWE-59 · Link following
7.0CVSS 3.1 base score, v2 6.9
3.0%EPSS exploitation probability, 30 days
NoNot in CISA KEV
4Affected product versions listed by NVD
30References, 6 tagged exploit
17 Jun 2026Last modified by NVD

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:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

4 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://legalhackers.com/advisories/MySQL-Maria-Percona-RootPrivEsc-CVE-2016-6664-5617-Exploit.html ExploitThird Party Advisory
http://packetstormsecurity.com/files/139491/MySQL-MariaDB-PerconaDB-Root-Privilege-Escalation.html ExploitThird Party AdvisoryVDB Entry
http://rhn.redhat.com/errata/RHSA-2016-2130.html Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2016-2749.html Third Party Advisory
http://seclists.org/fulldisclosure/2016/Nov/4 Mailing ListThird Party Advisory
http://www.debian.org/security/2017/dsa-3770 Third Party Advisory
http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html PatchVendor Advisory
http://www.securityfocus.com/archive/1/539695/100/0/threaded Third Party AdvisoryVDB Entry
http://www.securityfocus.com/bid/93612 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2017:2192 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0279 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0574 Third Party Advisory
https://security.gentoo.org/glsa/201702-18 Third Party Advisory
https://www.exploit-db.com/exploits/40679/ ExploitThird Party AdvisoryVDB Entry
https://www.percona.com/blog/2016/11/02/percona-responds-to-cve-2016-6663-and-cve-2016-6664/ Vendor Advisory
http://legalhackers.com/advisories/MySQL-Maria-Percona-RootPrivEsc-CVE-2016-6664-5617-Exploit.html ExploitThird Party Advisory
http://packetstormsecurity.com/files/139491/MySQL-MariaDB-PerconaDB-Root-Privilege-Escalation.html ExploitThird Party AdvisoryVDB Entry
http://rhn.redhat.com/errata/RHSA-2016-2130.html Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2016-2749.html Third Party Advisory
http://seclists.org/fulldisclosure/2016/Nov/4 Mailing ListThird Party Advisory
http://www.debian.org/security/2017/dsa-3770 Third Party Advisory
http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html PatchVendor Advisory
http://www.securityfocus.com/archive/1/539695/100/0/threaded Third Party AdvisoryVDB Entry
http://www.securityfocus.com/bid/93612 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2017:2192 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0279 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0574 Third Party Advisory
https://security.gentoo.org/glsa/201702-18 Third Party Advisory
https://www.exploit-db.com/exploits/40679/ ExploitThird Party AdvisoryVDB Entry
https://www.percona.com/blog/2016/11/02/percona-responds-to-cve-2016-6663-and-cve-2016-6664/ Vendor Advisory

Track CVE-2016-6664 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2012-2750Oracle mysql vulnerabilityUnspecified vulnerability in MySQL 5.5.x before 5.5.23 has unknown impact and attack vectors related to a "Security Fix", aka Bug #59533. NOTE: this …EPSS 3.6%10.0CVE-2004-0836Oracle mysql memory buffer overflow vulnerabilityBuffer overflow in the mysql_real_connect function in MySQL 4.x before 4.0.21, and 3.x before 3.23.49, allows remote DNS servers to cause a denial of…EPSS 9.8%9.9CVE-2026-32710Mariadb heap-based buffer overflow vulnerabilityMariaDB server is a community developed fork of MySQL server. An authenticated user can crash MariaDB versions 11.4 before 11.4.10 and 11.8 before 11…EPSS 0.80%9.8CVE-2026-49261Mariadb os command injection vulnerabilityMariaDB server is a community developed fork of MySQL server. Versions 10.6.1 through 10.6.26, 10.11.1 through 10.11.17, 11.4.1 through 11.4.11, 11.8…EPSS 1.7%9.8CVE-2023-26785Mariadb code injection vulnerabilityMariaDB v10.5 was discovered to contain a remote code execution (RCE) vulnerability via UDF Code in a Shared Object File, followed by a "create funct…EPSS 2.2%9.8CVE-2020-26542Percona server improper authentication vulnerabilityAn issue was discovered in the MongoDB Simple LDAP plugin through 2020-10-02 for Percona Server when using the SimpleLDAP authentication in conjuncti…EPSS 1.5%9.8CVE-2020-11656Sqlite use after free vulnerabilityIn SQLite through 3.31.1, the ALTER TABLE implementation has a use-after-free, as demonstrated by an ORDER BY clause that belongs to a compound SELEC…EPSS 7.6%9.8CVE-2019-14540Fasterxml jackson-databind deserialization of untrusted data vulnerabilityA Polymorphic Typing issue was discovered in FasterXML jackson-databind before 2.9.10. It is related to com.zaxxer.hikari.HikariConfig.EPSS 11%

Source: NIST National Vulnerability Database (record CVE-2016-6664), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.