CVE-2016-6662

Public Exploit

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.

Category

9.8
CVSS
Severity: Critical
CVSS 3.0 •
CVSS 2.0 •
EPSS 89.58% Top 5%
Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory gentoo.org Vendor Advisory debian.org Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory oracle.com Vendor Advisory mariadb.org Vendor Advisory mariadb.com Vendor Advisory mariadb.com Vendor Advisory mariadb.com
Affected: n/a n/a
Published at:
Updated at:

References

Link Tags
https://mariadb.com/kb/en/mariadb/mariadb-10027-release-notes/ release notes vendor advisory
http://rhn.redhat.com/errata/RHSA-2016-2749.html third party advisory vendor advisory
http://rhn.redhat.com/errata/RHSA-2017-0184.html third party advisory vendor advisory
http://rhn.redhat.com/errata/RHSA-2016-2131.html third party advisory vendor advisory
http://rhn.redhat.com/errata/RHSA-2016-2060.html third party advisory vendor advisory
https://mariadb.com/kb/en/mariadb/mariadb-10117-release-notes/ release notes vendor advisory
https://mariadb.com/kb/en/mariadb/mariadb-5551-release-notes/ release notes vendor advisory
https://jira.mariadb.org/browse/MDEV-10465 vendor advisory issue tracking
http://www.securityfocus.com/bid/92912 third party advisory vdb entry
http://seclists.org/fulldisclosure/2016/Sep/23 third party advisory mailing list
https://security.gentoo.org/glsa/201701-01 third party advisory vendor advisory
http://www.debian.org/security/2016/dsa-3666 third party advisory vendor advisory
http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html patch vendor advisory
http://rhn.redhat.com/errata/RHSA-2016-2130.html third party advisory vendor advisory
http://rhn.redhat.com/errata/RHSA-2016-2077.html third party advisory vendor advisory
http://rhn.redhat.com/errata/RHSA-2016-2927.html third party advisory vendor advisory
http://rhn.redhat.com/errata/RHSA-2016-2059.html third party advisory vendor advisory
http://legalhackers.com/advisories/MySQL-Exploit-Remote-Root-Code-Execution-Privesc-CVE-2016-6662.html third party advisory
https://www.percona.com/blog/2016/09/12/percona-server-critical-update-cve-2016-6662/ third party advisory
http://rhn.redhat.com/errata/RHSA-2016-2062.html third party advisory vendor advisory
http://rhn.redhat.com/errata/RHSA-2016-2595.html third party advisory vendor advisory
http://www.securitytracker.com/id/1036769 third party advisory vdb entry
http://rhn.redhat.com/errata/RHSA-2016-2061.html third party advisory vendor advisory
http://www.openwall.com/lists/oss-security/2016/09/12/3 third party advisory mailing list
https://www.exploit-db.com/exploits/40360/ third party advisory vdb entry exploit
http://rhn.redhat.com/errata/RHSA-2016-2928.html third party advisory vendor advisory
http://rhn.redhat.com/errata/RHSA-2016-2058.html third party advisory vendor advisory

Frequently Asked Questions

What is the severity of CVE-2016-6662?
CVE-2016-6662 has been scored as a critical severity vulnerability.
How to fix CVE-2016-6662?
To fix CVE-2016-6662, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2016-6662 being actively exploited in the wild?
It is possible that CVE-2016-6662 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~90% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.