CVE-2016-6663
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…
Check your servers for CVE-2016-6663
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2016-6663 affects a package, with the command that installs the fix. The free plan covers one server and does not need a credit card.
Description
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.
Exploitation
EPSS 4.31%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 91.9% of all scored CVEs. Scores of 27 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2016-6663 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2016-6663RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2016-6663Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2016-6663
trivy image --scanners vuln IMAGE | grep CVE-2016-6663
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server or read how to install the agent.
References
Advisories
- RHSA-2016:2749 rhn.redhat.com · vendor advisory
- https://dev.mysql.com/doc/relnotes/mysql/5.5/en/news-5-5-52.html dev.mysql.com
- RHSA-2017:0184 rhn.redhat.com · vendor advisory
- RHSA-2016:2131 rhn.redhat.com · vendor advisory
- https://github.com/mysql/mysql-server/commit/4e5473862e6852b0f3802b0cd0c6fa10b5253291 github.com
- https://mariadb.com/kb/en/mariadb/mariadb-5552-release-notes/ mariadb.com
- https://www.percona.com/blog/2016/11/02/percona-responds-to-cve-2016-6663-and-cve-2016-6664/ percona.com
- http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html oracle.com
- RHSA-2016:2130 rhn.redhat.com · vendor advisory
- RHSA-2016:2927 rhn.redhat.com · vendor advisory
- https://dev.mysql.com/doc/relnotes/mysql/5.6/en/news-5-6-33.html dev.mysql.com
- RHSA-2016:2595 rhn.redhat.com · vendor advisory
6 more
- https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-1.html dev.mysql.com
- https://mariadb.com/kb/en/mariadb/mariadb-10118-release-notes/ mariadb.com
- https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-15.html dev.mysql.com
- https://github.com/MariaDB/server/commit/347eeefbfc658c8531878218487d729f4e020805 github.com
- RHSA-2016:2928 rhn.redhat.com · vendor advisory
- https://mariadb.com/kb/en/mariadb/mariadb-10028-release-notes/ mariadb.com
Exploits and proof of concept
- 40678 exploit-db.com · exploit
Other references
- 20161101 MySQL / MariaDB / PerconaDB - Privilege Escalation / Race Condition Exploit [CVE-2016-6663 / OCVE-2016-5616] seclists.org · mailing list
- [oss-security] 20161025 Re: CVE-2016-6662 - MySQL Remote Root Code Execution / Privilege Escalation ( 0day ) openwall.com · mailing list
- 92911 securityfocus.com · vdb entry
- 93614 securityfocus.com · vdb entry
- https://legalhackers.com/advisories/MySQL-Maria-Percona-PrivEscRace-CVE-2016-6663-5616-Exploit.html legalhackers.com
Source: the record CVE-2016-6663 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse