cve.bz

CVE-2016-6664 Link Following

7.0 highExploitEPSS 3.0%Fix available

High (7.0). EPSS 3.0% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.0 high
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
3.0% (unchanged from 3.0% a week ago; 3.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2016-6664 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-6664?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-6664?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2016-6664 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
oracle:mysqlfrom 5.5.0 through 5.5.51
oracle:mysqlfrom 5.6.0 through 5.6.32
oracle:mysqlfrom 5.7.0 through 5.7.14
mariadb:mariadbfrom 5.5.0 before 5.5.54
mariadb:mariadbfrom 10.0.0 before 10.0.29
mariadb:mariadbfrom 10.1.0 before 10.1.21
percona:percona_serverfrom 5.5 before 5.5.51-38.2
percona:percona_serverfrom 5.6 before 5.6.32-78.1
percona:percona_serverfrom 5.7 before 5.7.14-8
percona:xtradb_clusterfrom 5.5 before 5.5.41-37.0
percona:xtradb_clusterfrom 5.6 before 5.6.32-25.17
percona:xtradb_clusterfrom 5.7 before 5.7.14-26.17

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8mariadb-10.010.0.29-0+deb8u1DSA-3770-1
Ubuntu14.04:LTSmysql-5.55.5.52-0ubuntu0.14.04.1UBUNTU-CVE-2016-6664
Ubuntu16.04:LTSmariadb-10.010.0.29-0ubuntu0.16.04.1UBUNTU-CVE-2016-6664
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moremariadb, mariadb-libs, mariadb-test and 6 more1:5.5.56-2.el7RHSA-2017:2192
Red Hatrhel_software_collections:2::el6mysql55-mysql, mysql55-mysql-libs, mysql55-mysql-test and 4 more0:5.5.52-1.el6RHSA-2016:2130
Red Hatrhel_software_collections:2::el6rh-mysql56-mysql, rh-mysql56-mysql-test, rh-mysql56-mysql-bench and 6 more0:5.6.34-2.el6RHSA-2016:2749
Red Hatrhel_software_collections:2::el7mysql55-mysql, mysql55-mysql-libs, mysql55-mysql-test and 4 more0:5.5.52-1.el7RHSA-2016:2130
Red Hatrhel_software_collections:2::el7rh-mysql56-mysql, rh-mysql56-mysql-test, rh-mysql56-mysql-bench and 6 more0:5.6.34-2.el7RHSA-2016:2749
Red Hatrhel_software_collections:3::el6rh-mariadb100-mariadb, rh-mariadb100-mariadb-test, rh-mariadb100-mariadb-bench and 7 more1:10.0.33-3.el6RHSA-2018:0279
Red Hatrhel_software_collections:3::el6rh-mariadb101-galera, rh-mariadb101-galera-debuginfo0:25.3.12-12.el6RHSA-2018:0574
Red Hatrhel_software_collections:3::el6rh-mariadb101-mariadb, rh-mariadb101-mariadb-test, rh-mariadb101-mariadb-bench and 8 more1:10.1.29-3.el6RHSA-2018:0574
Red Hatrhel_software_collections:3::el7rh-mariadb100-mariadb, rh-mariadb100-mariadb-test, rh-mariadb100-mariadb-bench and 7 more1:10.0.33-3.el7RHSA-2018:0279
Red Hatrhel_software_collections:3::el7rh-mariadb101-galera, rh-mariadb101-galera-debuginfo0:25.3.12-12.el7RHSA-2018:0574
Red Hatrhel_software_collections:3::el7rh-mariadb101-mariadb, rh-mariadb101-mariadb-test, rh-mariadb101-mariadb-bench and 8 more1:10.1.29-3.el7RHSA-2018:0574
SUSELinux Enterprise Desktop 12 SP1, Linux Enterprise Desktop 12 SP2, Linux Enterprise Server 12 SP1 and 8 moremariadb10.0.29-22.1SUSE-SU-2017:0412-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1mariadb10410.4.30-150100.3.5.10SUSE-RU-2023:3956-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1python-mysqlclient1.4.6-150100.3.3.7SUSE-RU-2023:3956-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5lz41.8.0-3.5.2SUSE-RU-2023:4991-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5mariadb-connector-c3.1.22-2.35.1SUSE-RU-2023:4991-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5mariadb10410.4.30-8.5.46SUSE-RU-2023:4991-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5python-mysqlclient1.3.14-8.9.2SUSE-RU-2023:4991-1
SUSELinux Enterprise Server 12-LTSS, Linux Enterprise Server for SAP Applications 12mariadb10.0.29-20.23.1SUSE-SU-2017:0411-1
openSUSETumbleweedmariadb10.6.4-2.1openSUSE-SU-2024:11038-1
Alpinev3.3, v3.4, v3.5 and 19 moremariadb10.1.21-r0ALPINE-CVE-2016-6664

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7mariadb-1:5.5.56-2.el7Fixed 2017-08-01RHSA-2017:2192
Red Hat Software Collections for Red Hat Enterprise Linux 6mysql55-mysql-0:5.5.52-1.el6Fixed 2016-10-31RHSA-2016:2130
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-mysql56-mysql-0:5.6.34-2.el6Fixed 2016-11-15RHSA-2016:2749
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-mariadb100-mariadb-1:10.0.33-3.el6Fixed 2018-02-06RHSA-2018:0279
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-mariadb101-galera-0:25.3.12-12.el6Fixed 2018-03-21RHSA-2018:0574
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-mariadb101-mariadb-1:10.1.29-3.el6Fixed 2018-03-21RHSA-2018:0574
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUSmysql55-mysql-0:5.5.52-1.el6Fixed 2016-10-31RHSA-2016:2130
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSmysql55-mysql-0:5.5.52-1.el6Fixed 2016-10-31RHSA-2016:2130
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-mysql56-mysql-0:5.6.34-2.el6Fixed 2016-11-15RHSA-2016:2749
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-mariadb100-mariadb-1:10.0.33-3.el6Fixed 2018-02-06RHSA-2018:0279
Red Hat Enterprise Linux 5mysql55-mysqlWill not fix
Red Hat Enterprise Linux 6mysqlWill not fix
Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse)mariadb-galeraWill not fix
Red Hat Enterprise Linux OpenStack Platform 6 (Juno)mariadb-galeraWill not fix
Red Hat Enterprise Linux OpenStack Platform 7 (Kilo)mariadb-galeraWill not fix
Red Hat OpenStack Platform 10 (Newton)mariadb-galeraWill not fix
Red Hat OpenStack Platform 11 (Ocata)mariadb-galeraWill not fix
Red Hat OpenStack Platform 12 (Pike)mariadb-galeraWill not fix
Red Hat OpenStack Platform 8 (Liberty)mariadb-galeraWill not fix
Red Hat OpenStack Platform 9 (Mitaka)mariadb-galeraWill not fix
21 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2016-6664.

Public exploits

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON