CVE-2016-6664
Reported by mitre · Published December 13, 2016
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| mariadb | Alpine | 10.1.21-r0 |
| mysql | oracle | 5.7.14, 5.6.32, 5.5.51 |
| mariadb | mariadb | 10.1.21, 10.0.29, 5.5.54 |
| mariadb-10.0 | Ubuntu:16.04:LTS | 10.0.29-0ubuntu0.16.04.1 |
| xtradb_cluster | percona | 5.7.14-26.17, 5.6.32-25.17, 5.5.41-37.0 |
| percona_server | percona | 5.7.14-8, 5.6.32-78.1, 5.5.51-38.2 |
| mysql-5.5 | Ubuntu:14.04:LTS | 5.5.52-0ubuntu0.14.04.1 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| alpine | mariadb | 0 |
| oracle | mysql | |
| n/a | n/a | * |
Timeline
- Sep 12, 2016 PoC Published (2 in total, the first dated here)
- Nov 3, 2016 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Jun 1, 2026 Security Advisory (6 in total, the first dated here)
- Jun 17, 2026 CVE Updated
- Aug 9, 2026 Distribution Patch (4 in total, the first dated here)
- Oct 7, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-6664
vulnetix vdb fixes CVE-2016-6664
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-6664/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2016:2749 vendor-advisoryx_refsource_REDHAT
- 20161101 MySQL / MariaDB / PerconaDB - Privilege Escalation / Race Condition Exploit [CVE-2016-6663 / OCVE-2016-5616] mailing-listx_refsource_FULLDISC
- 93612 vdb-entryx_refsource_BID
- x_refsource_CONFIRM
- RHSA-2018:0574 vendor-advisoryx_refsource_REDHAT
- GLSA-201702-18 vendor-advisoryx_refsource_GENTOO
- x_refsource_CONFIRM
- 20161104 MySQL / MariaDB / PerconaDB - Root Privilege Escalation Exploit ( CVE-2016-6664 / CVE-2016-5617 ) mailing-listx_refsource_BUGTRAQ
- RHSA-2016:2130 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- 40679 exploitx_refsource_EXPLOIT-DB
- x_refsource_MISC
- RHSA-2018:0279 vendor-advisoryx_refsource_REDHAT
- DSA-3770 vendor-advisoryx_refsource_DEBIAN
- RHSA-2017:2192 vendor-advisoryx_refsource_REDHAT