CVEfocus › CVE database › CVE-2016-6662

CVE-2016-6662

CVSS 9.8 CriticalEPSS 67.7% (in the top 1% of all CVEs)Published 2016-09-20Updated 2024-08-06Assigner: mitre

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.

What to do

Likely to be exploited: EPSS gives a 68% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Alpine, Red Hat, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

24Fixed
2Fix pending
1Will not fix
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04mysql-8.0Not affected
vulnerable_code_not_present
Ubuntu 22.04mysql-8.0Not affected
vulnerable_code_not_present
Ubuntu 16.04mariadb-10.0Fixed10.0.27-0ubuntu0.16.04.1UBUNTU-CVE-2016-6662
Ubuntu 16.04mysql-5.7Fixed5.7.15-0ubuntu0.16.04.1UBUNTU-CVE-2016-6662
Ubuntu 16.04percona-server-5.6Fix pendingUBUNTU-CVE-2016-6662
Ubuntu 16.04percona-xtradb-cluster-5.6Fixed5.6.34-26.19-0ubuntu0.16.04.1UBUNTU-CVE-2016-6662
Ubuntu 14.04mariadb-5.5Fixed5.5.52-1ubuntu0.14.04.1UBUNTU-CVE-2016-6662
Ubuntu 14.04mysql-5.5Fixed5.5.52-0ubuntu0.14.04.1UBUNTU-CVE-2016-6662
Ubuntu 14.04mysql-5.6Fixed5.6.33-0ubuntu0.14.04.1UBUNTU-CVE-2016-6662
Ubuntu 14.04percona-xtradb-cluster-5.5Fix pending
Red Hat Enterprise Linux 7mariadbFixed1:5.5.52-1.el7RHSA-2016:2595
Red Hat Enterprise Linux 7mariadb-benchFixed1:5.5.52-1.el7RHSA-2016:2595
Red Hat Enterprise Linux 7mariadb-develFixed1:5.5.52-1.el7RHSA-2016:2595
Red Hat Enterprise Linux 7mariadb-embeddedFixed1:5.5.52-1.el7RHSA-2016:2595
Red Hat Enterprise Linux 7mariadb-embedded-develFixed1:5.5.52-1.el7RHSA-2016:2595
Red Hat Enterprise Linux 7mariadb-libsFixed1:5.5.52-1.el7RHSA-2016:2595
Red Hat Enterprise Linux 7mariadb-serverFixed1:5.5.52-1.el7RHSA-2016:2595
Red Hat Enterprise Linux 7mariadb-testFixed1:5.5.52-1.el7RHSA-2016:2595
Red Hat Enterprise Linux 6mysqlFixed0:5.1.73-8.el6_8RHSA-2017:0184
Red Hat Enterprise Linux 6mysql-benchFixed0:5.1.73-8.el6_8RHSA-2017:0184
Red Hat Enterprise Linux 6mysql-develFixed0:5.1.73-8.el6_8RHSA-2017:0184
Red Hat Enterprise Linux 6mysql-embeddedFixed0:5.1.73-8.el6_8RHSA-2017:0184
Red Hat Enterprise Linux 6mysql-embedded-develFixed0:5.1.73-8.el6_8RHSA-2017:0184
Red Hat Enterprise Linux 6mysql-libsFixed0:5.1.73-8.el6_8RHSA-2017:0184
Red Hat Enterprise Linux 6mysql-serverFixed0:5.1.73-8.el6_8RHSA-2017:0184
Red Hat Enterprise Linux 6mysql-testFixed0:5.1.73-8.el6_8RHSA-2017:0184
Red Hat Enterprise Linux 5mysqlNot affected
Red Hat Enterprise Linux 5mysql55-mysqlWill not fix
Will not fix
Alpine Linux 3.3mariadbFixed10.1.17-r0ALPINE-CVE-2016-6662
Alpine Linux 3.2mariadbFixed5.5.51-r0ALPINE-CVE-2016-6662

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.