CVSS 3.0
9.8 criticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCritical (9.8). EPSS 68% estimated probability of exploitation activity in the next 30 days.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExplain CVE-2016-6662 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-6662?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-6662?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-6662 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.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| oracle:mysql | from 5.5.0 through 5.5.52 |
| oracle:mysql | from 5.6.0 through 5.6.33 |
| oracle:mysql | from 5.7.0 through 5.7.15 |
| percona:percona_server | from 5.5 before 5.5.51-38.1 |
| percona:percona_server | from 5.6 before 5.6.32-78.0 |
| percona:percona_server | from 5.7 before 5.7.14-7 |
| mariadb:mariadb | from 5.5.20 before 5.5.51 |
| mariadb:mariadb | from 10.0.0 before 10.0.27 |
| mariadb:mariadb | from 10.1.0 before 10.1.17 |
| debian:debian_linux | 8.0 |
| redhat:openstack | 5.0 |
| redhat:openstack | 6.0 |
| redhat:openstack | 7.0 |
| redhat:openstack | 8 |
| redhat:openstack | 9 |
| redhat:enterprise_linux | 7.0 |
| redhat:enterprise_linux_desktop | 6.0 |
| redhat:enterprise_linux_desktop | 7.0 |
| redhat:enterprise_linux_server | 6.0 |
| redhat:enterprise_linux_server_aus | 7.3 |
| redhat:enterprise_linux_server_aus | 7.4 |
| redhat:enterprise_linux_server_aus | 7.6 |
| redhat:enterprise_linux_server_eus | 7.3 |
| redhat:enterprise_linux_server_eus | 7.4 |
| redhat:enterprise_linux_server_eus | 7.5 |
| redhat:enterprise_linux_server_eus | 7.6 |
| redhat:enterprise_linux_server_tus | 7.3 |
| redhat:enterprise_linux_server_tus | 7.6 |
| redhat:enterprise_linux_workstation | 6.0 |
| redhat:enterprise_linux_workstation | 7.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 7 | mysql-5.5 | 5.5.52-0+deb7u1 | DLA-624-1 |
| Debian | 8 | mysql-5.5 | 5.5.52-0+deb8u1 | DSA-3666-1 |
| Ubuntu | 14.04:LTS | mariadb-5.5 | 5.5.52-1ubuntu0.14.04.1 | UBUNTU-CVE-2016-6662 |
| Ubuntu | 14.04:LTS | mysql-5.5 | 5.5.52-0ubuntu0.14.04.1 | UBUNTU-CVE-2016-6662 USN-3078-1 |
| Ubuntu | 14.04:LTS | mysql-5.6 | 5.6.33-0ubuntu0.14.04.1 | UBUNTU-CVE-2016-6662 |
| Ubuntu | 16.04:LTS | mariadb-10.0 | 10.0.27-0ubuntu0.16.04.1 | UBUNTU-CVE-2016-6662 |
| Ubuntu | 16.04:LTS | mysql-5.7 | 5.7.15-0ubuntu0.16.04.1 | UBUNTU-CVE-2016-6662 USN-3078-1 |
| Ubuntu | 16.04:LTS | percona-server-5.6 | no fix listed | UBUNTU-CVE-2016-6662 |
| Ubuntu | 16.04:LTS | percona-xtradb-cluster-5.6 | 5.6.34-26.19-0ubuntu0.16.04.1 | UBUNTU-CVE-2016-6662 |
| Red Hat | enterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 more | mysql, mysql-libs, mysql-test and 6 more | 0:5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat | enterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 more | mariadb, mariadb-libs, mariadb-test and 6 more | 1:5.5.52-1.el7 | RHSA-2016:2595 |
| Red Hat | openstack:5::el6 | mariadb-galera, mariadb-galera-common, mariadb-galera-server and 1 more | 0:5.5.42-1.1.el6ost | RHSA-2016:2058 |
| Red Hat | openstack:5::el7 | mariadb-galera, mariadb-galera-common, mariadb-galera-server and 1 more | 1:5.5.42-1.2.el7ost | RHSA-2016:2059 |
| Red Hat | openstack:6::el7 | mariadb-galera, mariadb-galera-common, mariadb-galera-server and 1 more | 1:5.5.42-1.2.el7ost | RHSA-2016:2060 |
| Red Hat | openstack:7::el7 | mariadb-galera, mariadb-galera-common, mariadb-galera-server and 1 more | 1:5.5.42-5.el7ost | RHSA-2016:2061 |
| Red Hat | openstack:8::el7 | mariadb-galera, mariadb-galera-common, mariadb-galera-server and 1 more | 1:5.5.42-5.el7ost | RHSA-2016:2077 |
| Red Hat | openstack:9::el7 | mariadb-galera, mariadb-galera-common, mariadb-galera-server and 1 more | 1:5.5.42-5.el7ost | RHSA-2016:2062 |
| Red Hat | rhel_software_collections:2::el6 | mariadb55-mariadb, mariadb55-mariadb-libs, mariadb55-mariadb-test and 4 more | 0:5.5.53-1.el6 | RHSA-2016:2131 |
| Red Hat | rhel_software_collections:2::el6 | mysql55-mysql, mysql55-mysql-libs, mysql55-mysql-test and 4 more | 0:5.5.52-1.el6 | RHSA-2016:2130 |
| Red Hat | rhel_software_collections:2::el6 | rh-mariadb100-mariadb, rh-mariadb100-mariadb-test, rh-mariadb100-mariadb-bench and 7 more | 1:10.0.28-5.el6 | RHSA-2016:2927 |
| Red Hat | rhel_software_collections:2::el6 | rh-mariadb101-mariadb, rh-mariadb101-mariadb-test, rh-mariadb101-mariadb-bench and 8 more | 1:10.1.19-6.el6 | RHSA-2016:2928 |
| 6 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Linux Enterprise Desktop 12 SP1, Linux Enterprise Server 12 SP1, Linux Enterprise Server for SAP Applications 12 SP1 and 2 more | mariadb | 10.0.27-12.1 | SUSE-SU-2016:2404-1 |
| SUSE | Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1 | mariadb104 | 10.4.30-150100.3.5.10 | SUSE-RU-2023:3956-1 |
| SUSE | Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1 | python-mysqlclient | 1.4.6-150100.3.3.7 | SUSE-RU-2023:3956-1 |
| SUSE | Linux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP3-LTSS, Linux Enterprise Server 11 SP3-TERADATA and 6 more | mysql | 5.5.52-0.27.1 | SUSE-SU-2016:2343-1 |
| SUSE | Linux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4 | mysql | 5.5.53-0.30.1 | SUSE-SU-2016:2780-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 | lz4 | 1.8.0-3.5.2 | SUSE-RU-2023:4991-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 | mariadb-connector-c | 3.1.22-2.35.1 | SUSE-RU-2023:4991-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 | mariadb104 | 10.4.30-8.5.46 | SUSE-RU-2023:4991-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 | python-mysqlclient | 1.3.14-8.9.2 | SUSE-RU-2023:4991-1 |
| SUSE | Linux Enterprise Server 12-LTSS, Linux Enterprise Server for SAP Applications 12 | mariadb | 10.0.27-20.13.1 | SUSE-SU-2016:2395-1 |
| Alpine | v3.2 | mariadb | 5.5.51-r0 | ALPINE-CVE-2016-6662 |
| Alpine | v3.3 | mariadb | 10.1.17-r0 | ALPINE-CVE-2016-6662 |
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 · Alpine.
Red Hat rates this Important.
All MySQL and MariaDB packages in Red Hat Enterprise Linux and Red Hat Software Collections install the my.cnf configuration file in /etc as root-owned and not writeable to mysqld's mysql user. This default configuration stops the published exploit for this issue.
All MySQL and MariaDB packages for Red Hat Enterprise Linux 7 (either those directly included in Red Hat Enterprise Linux 7 or from Red Hat Software Collections for Red Hat Enterprise Linux 7) run mysqld_safe with mysql user privileges and not root privileges, limiting the potential impact to code execution as mysql system user.
The MySQL 5.1 packages in Red Hat Enterprise Linux 6 do not implement support for library preloading, completely preventing the remote attack vector used by the published exploit.
For additional details, refer to:
https://bugzilla.redhat.com/show_bug.cgi?id=1375198#c12
- Ensure all MySQL / MariaDB configuration files are not writeable to the mysql user. This is the default configuration in Red Hat products.
- Ensure that non-administrative database users are not granted FILE privilege. Applications accessing data in MySQL / MariaDB databases, including web application potentially vulnerable to SQL injections, should use database accounts with the lowest privileges required.
- If FILE permission needs to be granted to some non-administrative database users, use secure_file_priv setting to limit where files can be written to or read from.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | mysql-0:5.1.73-8.el6_8 | Fixed 2017-01-24 | RHSA-2017:0184 |
| Red Hat Enterprise Linux 7 | mariadb-1:5.5.52-1.el7 | Fixed 2016-11-03 | RHSA-2016:2595 |
| Red Hat Enterprise Linux OpenStack Platform 5.0 (Icehouse) for RHEL 6 | mariadb-galera-0:5.5.42-1.1.el6ost | Fixed 2016-10-13 | RHSA-2016:2058 |
| Red Hat Enterprise Linux OpenStack Platform 5.0 (Icehouse) for RHEL 7 | mariadb-galera-1:5.5.42-1.2.el7ost | Fixed 2016-10-13 | RHSA-2016:2059 |
| Red Hat Enterprise Linux OpenStack Platform 6.0 (Juno) for RHEL 7 | mariadb-galera-1:5.5.42-1.2.el7ost | Fixed 2016-10-13 | RHSA-2016:2060 |
| Red Hat Enterprise Linux OpenStack Platform 7.0 (Kilo) for RHEL 7 | mariadb-galera-1:5.5.42-5.el7ost | Fixed 2016-10-13 | RHSA-2016:2061 |
| Red Hat OpenStack Platform 8.0 (Liberty) | mariadb-galera-1:5.5.42-5.el7ost | Fixed 2016-10-18 | RHSA-2016:2077 |
| Red Hat OpenStack Platform 9.0 (Mitaka) | mariadb-galera-1:5.5.42-5.el7ost | Fixed 2016-10-13 | RHSA-2016:2062 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | mysql55-mysql-0:5.5.52-1.el6 | Fixed 2016-10-31 | RHSA-2016:2130 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | mariadb55-mariadb-0:5.5.53-1.el6 | Fixed 2016-10-31 | RHSA-2016:2131 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-mysql56-mysql-0:5.6.34-2.el6 | Fixed 2016-11-15 | RHSA-2016:2749 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-mariadb100-mariadb-1:10.0.28-5.el6 | Fixed 2016-12-08 | RHSA-2016:2927 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-mariadb101-mariadb-1:10.1.19-6.el6 | Fixed 2016-12-08 | RHSA-2016:2928 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | mysql55-mysql-0:5.5.52-1.el6 | Fixed 2016-10-31 | RHSA-2016:2130 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | mariadb55-mariadb-0:5.5.53-1.el6 | Fixed 2016-10-31 | RHSA-2016:2131 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | mysql55-mysql-0:5.5.52-1.el6 | Fixed 2016-10-31 | RHSA-2016:2130 |
| Red Hat Enterprise Linux 5 | mysql | Not affected | |
| Red Hat Enterprise Linux 5 | mysql55-mysql | Will not fix | |
| Red Hat Mobile Application Platform 4 | millicore | Not affected | |
| Red Hat OpenStack Platform 10 (Newton) | mariadb-galera | Not affected | |
| 19 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-6662.
Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.