cve.bz

CVE-2016-6663 Race Condition

7.0 highExploitEPSS 4.3%Fix available

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

On this page
Race condition in Oracle MySQL before 5.5.52, 5.6.x before 5.6.33, 5.7.x before 5.7.15, and 8.x before 8.0.1; MariaDB before 5.5.52, 10.0.x before 10.0.28, and 10.1.x before 10.1.18; 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 allows local users with certain permissions to gain privileges by leveraging use of my_copystat by REPAIR TABLE to repair a MyISAM table.

Severity

CVSS 3.0

7.0 high
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
4.3% (unchanged from 4.3% a week ago; 4.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 91st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
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-6663 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-6663?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-6663?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-6663 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.52
oracle:mysqlfrom 5.6.0 through 5.6.33
oracle:mysqlfrom 5.7.0 through 5.7.15
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
mariadb:mariadbfrom 5.5.20 before 5.5.52
mariadb:mariadbfrom 10.0.0 before 10.0.28
mariadb:mariadbfrom 10.1.0 before 10.1.18
oracle:mysql8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8mariadb-10.010.0.28-0+deb8u1DSA-3711-1
Ubuntu14.04:LTSmariadb-5.55.5.52-1ubuntu0.14.04.1UBUNTU-CVE-2016-6663
Ubuntu14.04:LTSmysql-5.55.5.52-0ubuntu0.14.04.1UBUNTU-CVE-2016-6663
Ubuntu16.04:LTSmariadb-10.010.0.28-0ubuntu0.16.04.1UBUNTU-CVE-2016-6663
Ubuntu16.04:LTSpercona-server-5.6no fix listedUBUNTU-CVE-2016-6663
Ubuntu16.04:LTSpercona-xtradb-cluster-5.65.6.34-26.19-0ubuntu0.16.04.1UBUNTU-CVE-2016-6663
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 moremysql, mysql-libs, mysql-test and 6 more0:5.1.73-8.el6_8RHSA-2017:0184
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.52-1.el7RHSA-2016:2595
Red Hatrhel_software_collections:2::el6mariadb55-mariadb, mariadb55-mariadb-libs, mariadb55-mariadb-test and 4 more0:5.5.53-1.el6RHSA-2016:2131
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-mariadb100-mariadb, rh-mariadb100-mariadb-test, rh-mariadb100-mariadb-bench and 7 more1:10.0.28-5.el6RHSA-2016:2927
Red Hatrhel_software_collections:2::el6rh-mariadb101-mariadb, rh-mariadb101-mariadb-test, rh-mariadb101-mariadb-bench and 8 more1:10.1.19-6.el6RHSA-2016:2928
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::el7mariadb55-mariadb, mariadb55-mariadb-libs, mariadb55-mariadb-test and 4 more0:5.5.53-1.el7RHSA-2016:2131
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-mariadb100-mariadb, rh-mariadb100-mariadb-test, rh-mariadb100-mariadb-bench and 7 more1:10.0.28-5.el7RHSA-2016:2927
Red Hatrhel_software_collections:2::el7rh-mariadb101-mariadb, rh-mariadb101-mariadb-test, rh-mariadb101-mariadb-bench and 8 more1:10.1.19-6.el7RHSA-2016:2928
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
SUSELinux Enterprise Desktop 12 SP1, Linux Enterprise Desktop 12 SP2, Linux Enterprise Server 12 SP1 and 8 moremariadb10.0.28-17.2SUSE-SU-2016:2933-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.28-20.16.2SUSE-SU-2016:2932-1

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6mysql-0:5.1.73-8.el6_8Fixed 2017-01-24RHSA-2017:0184
Red Hat Enterprise Linux 7mariadb-1:5.5.52-1.el7Fixed 2016-11-03RHSA-2016:2595
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 6mariadb55-mariadb-0:5.5.53-1.el6Fixed 2016-10-31RHSA-2016:2131
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.28-5.el6Fixed 2016-12-08RHSA-2016:2927
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-mariadb101-mariadb-1:10.1.19-6.el6Fixed 2016-12-08RHSA-2016:2928
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.6 EUSmariadb55-mariadb-0:5.5.53-1.el6Fixed 2016-10-31RHSA-2016:2131
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 Enterprise Linux 5mysqlWill not fix
Red Hat Enterprise Linux 5mysql55-mysqlWill 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 Mobile Application Platform 4millicoreUnder investigation
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
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-6663.

Public exploits

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

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

References

Check your stackJSON