CVE-2016-6664
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
MySQL / MariaDB / PerconaDB 5.5.x/5.6.x/5.7.x - 'root' System User Privilege Escalation
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| sles | affected | |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| oracle | mysql | {"startIncluding":"5.5.0","endIncluding":"5.5.51"} | |
| mariadb | mariadb | {"startIncluding":"5.5.0","endExcluding":"5.5.54"} | 5.5.54 |
| percona | percona_server | {"startIncluding":"5.5","endExcluding":"5.5.51-38.2"} | 5.5.51-38.2 |
| percona | xtradb_cluster | {"startIncluding":"5.5","endExcluding":"5.5.41-37.0"} | 5.5.41-37.0 |
| oracle | mysql | {"startIncluding":"5.6.0","endIncluding":"5.6.32"} | |
| oracle | mysql | {"startIncluding":"5.7.0","endIncluding":"5.7.14"} | |
| mariadb | mariadb | {"startIncluding":"10.0.0","endExcluding":"10.0.29"} | 10.0.29 |
| mariadb | mariadb | {"startIncluding":"10.1.0","endExcluding":"10.1.21"} | 10.1.21 |
References
- http://legalhackers.com/advisories/MySQL-Maria-Percona-RootPrivEsc-CVE-2016-6664-5617-Exploit.html
- http://packetstormsecurity.com/files/139491/MySQL-MariaDB-PerconaDB-Root-Privilege-Escalation.html
- http://rhn.redhat.com/errata/RHSA-2016-2130.html
- http://rhn.redhat.com/errata/RHSA-2016-2749.html
- http://seclists.org/fulldisclosure/2016/Nov/4
- http://www.debian.org/security/2017/dsa-3770
- http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html
- http://www.securityfocus.com/archive/1/539695/100/0/threaded
- http://www.securityfocus.com/bid/93612
- https://access.redhat.com/errata/RHSA-2017:2192
- https://access.redhat.com/errata/RHSA-2018:0279
- https://access.redhat.com/errata/RHSA-2018:0574
- https://security.gentoo.org/glsa/201702-18
- https://www.exploit-db.com/exploits/40679/
- https://www.percona.com/blog/2016/11/02/percona-responds-to-cve-2016-6663-and-cve-2016-6664/
- https://www.suse.com/security/cve/CVE-2016-6664.html
CWEs
CWE-59
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.