Original 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.
Affected software
- MariaDB ≥ 5.5.0 < 5.5.54≥ 10.1.0 < 10.1.21≥ 10.0.0 < 10.0.29 Fixed in: 5.5.54, 10.1.21, 10.0.29 exact match
Details
- Published
- 2016-12-13
- Last modified
- 2026-06-17
- CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H- CWE
- CWE-59
- EPSS (30-day exploit probability)
- 2.97% (percentile 87)
References
- cve.org/CVE-2016-6664
- nvd.nist.gov/vuln/detail/CVE-2016-6664
- legalhackers.com/advisories/MySQL-Maria-Percona-RootPrivEsc-CVE-2016-6664-5617-Exploit.htm...
- packetstormsecurity.com/files/139491/MySQL-MariaDB-PerconaDB-Root-Privilege-Escalation.htm...
- rhn.redhat.com/errata/RHSA-2016-2130.html
- rhn.redhat.com/errata/RHSA-2016-2749.html
- seclists.org/fulldisclosure/2016/Nov/4
- www.debian.org/security/2017/dsa-3770
- www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html
- www.securityfocus.com/archive/1/539695/100/0/threaded
- www.securityfocus.com/bid/93612
- access.redhat.com/errata/RHSA-2017:2192
- access.redhat.com/errata/RHSA-2018:0279
- access.redhat.com/errata/RHSA-2018:0574
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.