CVE-2016-6662
Oracle MySQL through 5.5.52, 5.6.x through 5.6.33, and 5.7.x through 5.7.15; MariaDB before 5.5.51, 10.0.x before 10.0.27, and 10.1.x…
Check your servers for CVE-2016-6662
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-6662 affects a package, with the command that installs the fix. The free plan covers one server and does not need a credit card.
Description
Oracle MySQL through 5.5.52, 5.6.x through 5.6.33, and 5.7.x through 5.7.15; MariaDB before 5.5.51, 10.0.x before 10.0.27, and 10.1.x before 10.1.17; and Percona Server before 5.5.51-38.1, 5.6.x before 5.6.32-78.0, and 5.7.x before 5.7.14-7 allow local users to create arbitrary configurations and bypass certain protection mechanisms by setting general_log_file to a my.cnf configuration. NOTE: this can be leveraged to execute arbitrary code with root privileges by setting malloc_lib. NOTE: the affected MySQL version information is from Oracle's October 2016 CPU. Oracle has not commented on third-party claims that the issue was silently patched in MySQL 5.5.52, 5.6.33, and 5.7.15.
Exploitation
EPSS 67.7%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.5% 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-6662 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2016-6662RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2016-6662Alpine
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-6662
trivy image --scanners vuln IMAGE | grep CVE-2016-6662
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
- https://mariadb.com/kb/en/mariadb/mariadb-10027-release-notes/ mariadb.com
- RHSA-2016:2749 rhn.redhat.com · vendor advisory
- RHSA-2017:0184 rhn.redhat.com · vendor advisory
- RHSA-2016:2131 rhn.redhat.com · vendor advisory
- RHSA-2016:2060 rhn.redhat.com · vendor advisory
- https://mariadb.com/kb/en/mariadb/mariadb-10117-release-notes/ mariadb.com
- https://mariadb.com/kb/en/mariadb/mariadb-5551-release-notes/ mariadb.com
- https://jira.mariadb.org/browse/MDEV-10465 jira.mariadb.org
- GLSA-201701-01 security.gentoo.org · vendor advisory
- DSA-3666 debian.org · vendor advisory
- http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html oracle.com
- RHSA-2016:2130 rhn.redhat.com · vendor advisory
9 more
- RHSA-2016:2077 rhn.redhat.com · vendor advisory
- RHSA-2016:2927 rhn.redhat.com · vendor advisory
- RHSA-2016:2059 rhn.redhat.com · vendor advisory
- https://www.percona.com/blog/2016/09/12/percona-server-critical-update-cve-2016-6662/ percona.com
- RHSA-2016:2062 rhn.redhat.com · vendor advisory
- RHSA-2016:2595 rhn.redhat.com · vendor advisory
- RHSA-2016:2061 rhn.redhat.com · vendor advisory
- RHSA-2016:2928 rhn.redhat.com · vendor advisory
- RHSA-2016:2058 rhn.redhat.com · vendor advisory
Exploits and proof of concept
- 40360 exploit-db.com · exploit
Other references
- 92912 securityfocus.com · vdb entry
- 20160912 CVE-2016-6662 - MySQL Remote Root Code Execution / Privilege Escalation ( 0day ) seclists.org · mailing list
- http://legalhackers.com/advisories/MySQL-Exploit-Remote-Root-Code-Execution-Privesc-CVE-2016-6662.html legalhackers.com
- 1036769 securitytracker.com · vdb entry
- [oss-security] 20160912 CVE-2016-6662 - MySQL Remote Root Code Execution / Privilege Escalation ( 0day ) openwall.com · mailing list
Source: the record CVE-2016-6662 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