Home / Oracle / Mysql / CVE-2016-6664
CVE-2016-6664: is it exploited, and which versions of Oracle Mysql are affected and fixed?
CVE-2016-6664 is a link following (a symlink lets an attacker reach other files) vulnerability in Oracle Mysql. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 07:08 UTC). Affected: mysql from 5.5.0 through 5.5.51, mysql from 5.6.0 through 5.6.32, mysql from 5.7.0 through 5.7.14 and 9 more (NVD). Fixed in 5.5.54, 10.0.29, 10.1.21, 5.5.51-38.2 and 2 more (NVD). Severity: High (7.0, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 07:08 UTC, CVE record November 19, 2026, 07:18 UTC and NVD November 19, 2026, 08:45 UTC.
What is CVE-2016-6664?
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.
From the CVE record by mitre, last updated August 6, 2024, 01:36 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| oracle | mysql | from 5.5.0 through 5.5.51 | application |
| oracle | mysql | from 5.6.0 through 5.6.32 | application |
| oracle | mysql | from 5.7.0 through 5.7.14 | application |
| mariadb | mariadb | from 5.5.0 before 5.5.54 | application |
| mariadb | mariadb | from 10.0.0 before 10.0.29 | application |
| mariadb | mariadb | from 10.1.0 before 10.1.21 | application |
| percona | percona server | from 5.5 before 5.5.51-38.2 | application |
| percona | percona server | from 5.6 before 5.6.32-78.1 | application |
| percona | percona server | from 5.7 before 5.7.14-8 | application |
| percona | xtradb cluster | from 5.5 before 5.5.41-37.0 | application |
| percona | xtradb cluster | from 5.6 before 5.6.32-25.17 | application |
| percona | xtradb cluster | from 5.7 before 5.7.14-26.17 | application |
NVD analysis (status Modified), last modified June 17, 2026, 00:51 UTC.
How severe is CVE-2016-6664?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.0 | CVSS 3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
| Medium 6.9 | CVSS 2.0 | AV:L/AC:M/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2016-6664 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 2.97% probability of exploitation activity in the next 30 days, percentile 87.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-59 Improper Link Resolution Before File Access
Where are the vendor advisories and references?
- RHSA-2016:2749 vendor-advisory, x_refsource_REDHAT
- 20161101 MySQL / MariaDB / PerconaDB - Privilege Escalation / Race Condition Exploit [CVE-2016-6663 / OCVE-2016-5616] mailing-list, x_refsource_FULLDISC
- 93612 vdb-entry, x_refsource_BID
- https://www.percona.com/blog/2016/11/02/percona-responds-to-cve-2016-6663-and-cve-2016-6664/ x_refsource_CONFIRM
- RHSA-2018:0574 vendor-advisory, x_refsource_REDHAT
- GLSA-201702-18 vendor-advisory, x_refsource_GENTOO
- http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html x_refsource_CONFIRM
- 20161104 MySQL / MariaDB / PerconaDB - Root Privilege Escalation Exploit ( CVE-2016-6664 / CVE-2016-5617 ) mailing-list, x_refsource_BUGTRAQ
- RHSA-2016:2130 vendor-advisory, x_refsource_REDHAT
- http://packetstormsecurity.com/files/139491/MySQL-MariaDB-PerconaDB-Root-Privilege-Escalation.html x_refsource_MISC
- 40679 exploit, x_refsource_EXPLOIT-DB
- http://legalhackers.com/advisories/MySQL-Maria-Percona-RootPrivEsc-CVE-2016-6664-5617-Exploit.html x_refsource_MISC
- RHSA-2018:0279 vendor-advisory, x_refsource_REDHAT
- DSA-3770 vendor-advisory, x_refsource_DEBIAN
- RHSA-2017:2192 vendor-advisory, x_refsource_REDHAT
When was it published, and where is the official record?
- Reserved
- August 10, 2016
- Published
- December 13, 2016, 21:00 UTC
- CVE record updated
- August 6, 2024, 01:36 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 00:51 UTC
- Last checked
- CVE list November 19, 2026, 07:18 UTC; NVD November 19, 2026, 08:45 UTC; KEV December 3, 2026, 07:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Mysql?
- Apr 9, 2020CVE-2020-11655 Sqlite: improper initialization
- Apr 9, 2020CVE-2020-11656 Sqlite: use after free
- Feb 4, 2019CVE-2019-7317 Libpng: use after free
- Oct 17, 2018CVE-2018-3145 Oracle Mysql: n/a
- Jan 18, 2018CVE-2018-2640 Oracle Mysql: n/a
- Oct 19, 2017CVE-2017-10379 Oracle Mysql: incorrect authorization
- Oct 19, 2017CVE-2017-10286 Oracle Mysql: n/a
- Aug 8, 2017CVE-2017-3649 Oracle Mysql: n/a
Questions about CVE-2016-6664
Is CVE-2016-6664 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 07:08 UTC. FIRST's EPSS gives it a 2.97% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Oracle Mysql are affected by CVE-2016-6664?
mysql from 5.5.0 through 5.5.51, mysql from 5.6.0 through 5.6.32, mysql from 5.7.0 through 5.7.14, mariadb from 5.5.0 before 5.5.54, mariadb from 10.0.0 before 10.0.29, mariadb from 10.1.0 before 10.1.21 and 6 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2016-6664?
5.5.54, 10.0.29, 10.1.21, 5.5.51-38.2, 5.6.32-78.1 and 5.7.14-8, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2016-6664?
High (7.0, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2016-6664?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.