CVE-2016-6664 json
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…
published 2016-12-13 9 y ago modified 2026-06-17 4 mo ago also EUVD-2016-7567
- cvss
- 7.0
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.0%
- EPSS 3.0% chance of exploitation in 30 days, percentile 87%
- public exploits
- 1
- Exploit-DB
Summary
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.
Patch / fix
- mariadb mariadb 5.5.54, 10.0.29, 10.1.21
- percona percona_server 5.5.51-38.2, 5.6.32-78.1, 5.7.14-8
- percona xtradb_cluster 5.5.41-37.0, 5.6.32-25.17, 5.7.14-26.17
- mysql-5.5 Ubuntu 14.04 LTS 5.5.52-0ubuntu0.14.04.1
- mariadb-10.0 Ubuntu 16.04 LTS 10.0.29-0ubuntu0.16.04.1
ubuntu advisories UBUNTU-CVE-2016-6664
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- rh-mariadb101-galera RHEL 3 SOFTWARE_COLLECTIONS 25.3.12-12.el6
- rh-mariadb101-galera RHEL 3 SOFTWARE_COLLECTIONS 25.3.12-12.el7
- rh-mariadb101-mariadb RHEL 3 SOFTWARE_COLLECTIONS 1:10.1.29-3.el6
- rh-mariadb101-mariadb RHEL 3 SOFTWARE_COLLECTIONS 1:10.1.29-3.el7
- rh-mariadb101-mariadb-test RHEL 3 SOFTWARE_COLLECTIONS 1:10.1.29-3.el6
- rh-mariadb101-mariadb-test RHEL 3 SOFTWARE_COLLECTIONS 1:10.1.29-3.el7
- rh-mariadb101-mariadb-bench RHEL 3 SOFTWARE_COLLECTIONS 1:10.1.29-3.el6
- rh-mariadb101-mariadb-bench RHEL 3 SOFTWARE_COLLECTIONS 1:10.1.29-3.el7
red hat advisories RHSA-2018:0574RHSA-2018:0279RHSA-2017:2192RHSA-2016:2130RHSA-2016:2749
- mariadb104 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 10.4.30-8.5.46
- lz4 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 1.8.0-3.5.2
- python-mysqlclient SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 1.3.14-8.9.2
- mariadb-connector-c SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 3.1.22-2.35.1
- mariadb SLES for SAP 12 SP2, SLES for SAP 12 SP1, SLES for Raspberry Pi 12 SP2 +8 more 10.0.29-22.1
- mariadb104 SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLE High Performance Computing 15 SP1-LTSS 10.4.30-150100.3.5.10
- python-mysqlclient SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLE High Performance Computing 15 SP1-LTSS 1.4.6-150100.3.3.7
- mariadb SLES for SAP 12, SLES 12-LTSS 10.0.29-20.23.1
suse advisories SUSE-RU-2023:4991-1SUSE-RU-2023:3956-1SUSE-SU-2017:0412-1SUSE-SU-2017:0411-1
- mariadb openSUSE Tumbleweed 10.6.4-2.1
opensuse advisories openSUSE-SU-2024:11038-1
- mariadb Alpine 3.24, Alpine 3.23, Alpine 3.22 +19 more 10.1.21-r0
alpine advisories ALPINE-CVE-2016-6664
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2016-6664 updated cvss 7.8
mysql: insecure error log file handling in mysqld_safe (CPU Oct 2016)
-
Red Hat Enterprise Linux 5 mysql55-mysql Red Hat Enterprise Linux 6 mysql, mysql-libs, mysql-test, mysql-bench, mysql-server, mysql-embedded Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse) mariadb-galera Red Hat Enterprise Linux OpenStack Platform 6 (Juno) mariadb-galera Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) mariadb-galera, mariadb-galera-common, mariadb-galera-server Red Hat OpenStack Platform 8 (Liberty) mariadb-galera, mariadb-galera-common, mariadb-galera-serveraffected: no fix planned “Will not fix”
+4 more productsfewer
Red Hat OpenStack Platform 9 (Mitaka) mariadb-galera, mariadb-galera-common, mariadb-galera-server Red Hat OpenStack Platform 10 (Newton) mariadb-galera, mariadb-galera-common, mariadb-galera-server Red Hat OpenStack Platform 11 (Ocata) mariadb-galera Red Hat OpenStack Platform 12 (Pike) mariadb-galera-common, mariadb-galera-server -
Red Hat Software Collections mariadb55-mariadb, rh-mariadb100-mariadb, rh-mariadb101-mariadb, mariadb55-mariadb-libs, mariadb55-mariadb-test, mariadb55-mariadb-bench, +16 moreaffected: no fix available
-
Red Hat Enterprise Linux Client (v. 7) mariadb 5.5.56-2.el7, mariadb-libs 5.5.56-2.el7, mariadb-server 5.5.56-2.el7 Red Hat Enterprise Linux Client Optional (v. 7) mariadb-test 5.5.56-2.el7, mariadb-bench 5.5.56-2.el7, mariadb-embedded 5.5.56-2.el7 Red Hat Enterprise Linux ComputeNode (v. 7) mariadb 5.5.56-2.el7, mariadb-libs 5.5.56-2.el7 Red Hat Enterprise Linux ComputeNode Optional (v. 7) mariadb-test 5.5.56-2.el7, mariadb-bench 5.5.56-2.el7, mariadb-server 5.5.56-2.el7, mariadb-embedded 5.5.56-2.el7 Red Hat Enterprise Linux Server (v. 7) mariadb 5.5.56-2.el7, mariadb-libs 5.5.56-2.el7, mariadb-test 5.5.56-2.el7, mariadb-bench 5.5.56-2.el7, mariadb-server 5.5.56-2.el7 Red Hat Enterprise Linux Server Optional (v. 7) mariadb-embedded 5.5.56-2.el7fixed: vendor fix RHSA-2017:2192
+2 more productsfewer
Red Hat Enterprise Linux Workstation (v. 7) mariadb 5.5.56-2.el7, mariadb-libs 5.5.56-2.el7, mariadb-test 5.5.56-2.el7, mariadb-bench 5.5.56-2.el7, mariadb-server 5.5.56-2.el7 Red Hat Enterprise Linux Workstation Optional (v. 7) mariadb-embedded 5.5.56-2.el7 -
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) mysql55-mysql 5.5.52-1.el6, rh-mysql56-mysql 5.6.34-2.el6, mysql55-mysql-libs 5.5.52-1.el6, mysql55-mysql-test 5.5.52-1.el6, mysql55-mysql-bench 5.5.52-1.el6, mysql55-mysql-server 5.5.52-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) mysql55-mysql 5.5.52-1.el7, rh-mysql56-mysql 5.6.34-2.el7, mysql55-mysql-libs 5.5.52-1.el7, mysql55-mysql-test 5.5.52-1.el7, mysql55-mysql-bench 5.5.52-1.el7, mysql55-mysql-server 5.5.52-1.el7, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) mysql55-mysql 5.5.52-1.el6, mysql55-mysql-libs 5.5.52-1.el6, mysql55-mysql-test 5.5.52-1.el6, mysql55-mysql-bench 5.5.52-1.el6, mysql55-mysql-server 5.5.52-1.el6 Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) mysql55-mysql 5.5.52-1.el6, rh-mysql56-mysql 5.6.34-2.el6, mysql55-mysql-libs 5.5.52-1.el6, mysql55-mysql-test 5.5.52-1.el6, mysql55-mysql-bench 5.5.52-1.el6, mysql55-mysql-server 5.5.52-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) mysql55-mysql 5.5.52-1.el7, rh-mysql56-mysql 5.6.34-2.el7, mysql55-mysql-libs 5.5.52-1.el7, mysql55-mysql-test 5.5.52-1.el7, mysql55-mysql-bench 5.5.52-1.el7, mysql55-mysql-server 5.5.52-1.el7, +6 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) mysql55-mysql 5.5.52-1.el7, rh-mysql56-mysql 5.6.34-2.el7, mysql55-mysql-libs 5.5.52-1.el7, mysql55-mysql-test 5.5.52-1.el7, mysql55-mysql-bench 5.5.52-1.el7, mysql55-mysql-server 5.5.52-1.el7, +6 morefixed: vendor fix RHSA-2016:2130
-
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-mariadb100-mariadb 10.0.33-3.el7, rh-mariadb101-galera 25.3.12-12.el7, rh-mariadb101-mariadb 10.1.29-3.el7, rh-mariadb100-mariadb-test 10.0.33-3.el7, rh-mariadb101-mariadb-test 10.1.29-3.el7, rh-mariadb100-mariadb-bench 10.0.33-3.el7, +12 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-mariadb100-mariadb 10.0.33-3.el7, rh-mariadb101-galera 25.3.12-12.el7, rh-mariadb101-mariadb 10.1.29-3.el7, rh-mariadb100-mariadb-test 10.0.33-3.el7, rh-mariadb101-mariadb-test 10.1.29-3.el7, rh-mariadb100-mariadb-bench 10.0.33-3.el7, +12 morefixed: vendor fix RHSA-2018:0279
-
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) mysql55-mysql 5.5.52-1.el6, rh-mysql56-mysql 5.6.34-2.el6, mysql55-mysql-libs 5.5.52-1.el6, mysql55-mysql-test 5.5.52-1.el6, mysql55-mysql-bench 5.5.52-1.el6, mysql55-mysql-server 5.5.52-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) mysql55-mysql 5.5.52-1.el7, rh-mysql56-mysql 5.6.34-2.el7, mysql55-mysql-libs 5.5.52-1.el7, mysql55-mysql-test 5.5.52-1.el7, mysql55-mysql-bench 5.5.52-1.el7, mysql55-mysql-server 5.5.52-1.el7, +24 morefixed: vendor fix RHSA-2016:2130
-
Red Hat Software Collections rh-mysql57-mysql, rh-mysql57-mysql-test, rh-mysql57-mysql-common, rh-mysql57-mysql-config, rh-mysql57-mysql-errmsg, rh-mysql57-mysql-servernot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- First public exploit (EDB-40679)
- Published
Exploit prediction
2.97% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- EDB-40679 MySQL / MariaDB / PerconaDB 5.5.x/5.6.x/5.7.x - 'root' System User Privilege Escalation local, 2016-11-01
- packetstormsecurity.com http://packetstormsecurity.com/files/139491/MySQL-MariaDB-PerconaDB-Root-Privilege-Escalation.html referenced PoC, tagged "exploit" by a source, unverified
- legalhackers.com http://legalhackers.com/advisories/MySQL-Maria-Percona-RootPrivEsc-CVE-2016-6664-5617-Exploit.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.9 | AV:L/AC:M/Au:N/C:C/I:C/A:C |
Classification
- Weakness
-
- CWE-59 Improper Link Resolution Before File Access
- Technology feeds
References
-
oracle.com
/technetwork/security-advisory/cpuoct2016-2881722.html
patch, vendor-advisory
-
exploit-db.com
/exploits/40679/
exploit, third-party-advisory, vdb-entry
-
packetstormsecurity.com
/files/139491/MySQL-MariaDB-PerconaDB-Root-Privilege-Escalation.html
exploit, third-party-advisory, vdb-entry
-
legalhackers.com
/advisories/MySQL-Maria-Percona-RootPrivEsc-CVE-2016-6664-5617-Exploit.html
exploit, third-party-advisory
-
rhn.redhat.com
/errata/RHSA-2016-2749.html
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:0574
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/201702-18
vendor-advisory, third-party-advisory
-
rhn.redhat.com
/errata/RHSA-2016-2130.html
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:0279
vendor-advisory, third-party-advisory
-
debian.org
/security/2017/dsa-3770
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2017:2192
vendor-advisory, third-party-advisory
-
percona.com
/blog/2016/11/02/percona-responds-to-cve-2016-6663-and-cve-2016-6664/
vendor-advisory
-
seclists.org
/fulldisclosure/2016/Nov/4
mailing-list, third-party-advisory
-
securityfocus.com
/bid/93612
vdb-entry, third-party-advisory
-
securityfocus.com
/archive/1/539695/100/0/threaded
mailing-list, third-party-advisory, vdb-entry
Sources
- CVE List CVE-2016-6664
- NVD CVE-2016-6664
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.