CVE-2016-6662

Summary

CVECVE-2016-6662
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2016-09-20 18:59:00 UTC
Updated2021-08-04 17:15:00 UTC
DescriptionOracle 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.

Risk And Classification

Problem Types: CWE-264

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 8.0 All All All
Operating System Debian Debian Linux 8.0 All All All
Application Mariadb Mariadb All All All All
Application Mariadb Mariadb All All All All
Application Oracle Mysql All All All All
Application Oracle Mysql All All All All
Application Oracle Mysql All All All All
Application Percona Percona Server All All All All
Application Percona Percona Server All All All All
Operating System Redhat Enterprise Linux 7.0 All All All
Operating System Redhat Enterprise Linux 7.0 All All All
Operating System Redhat Enterprise Linux Desktop 6.0 All All All
Operating System Redhat Enterprise Linux Desktop 7.0 All All All
Operating System Redhat Enterprise Linux Desktop 6.0 All All All
Operating System Redhat Enterprise Linux Desktop 7.0 All All All
Operating System Redhat Enterprise Linux Server 6.0 All All All
Operating System Redhat Enterprise Linux Server 6.0 All All All
Operating System Redhat Enterprise Linux Server Aus 7.3 All All All
Operating System Redhat Enterprise Linux Server Aus 7.4 All All All
Operating System Redhat Enterprise Linux Server Aus 7.6 All All All
Operating System Redhat Enterprise Linux Server Aus 7.3 All All All
Operating System Redhat Enterprise Linux Server Aus 7.4 All All All
Operating System Redhat Enterprise Linux Server Aus 7.6 All All All
Operating System Redhat Enterprise Linux Server Eus 7.3 All All All
Operating System Redhat Enterprise Linux Server Eus 7.4 All All All
Operating System Redhat Enterprise Linux Server Eus 7.5 All All All
Operating System Redhat Enterprise Linux Server Eus 7.6 All All All
Operating System Redhat Enterprise Linux Server Eus 7.3 All All All
Operating System Redhat Enterprise Linux Server Eus 7.4 All All All
Operating System Redhat Enterprise Linux Server Eus 7.5 All All All
Operating System Redhat Enterprise Linux Server Eus 7.6 All All All
Operating System Redhat Enterprise Linux Server Tus 7.3 All All All
Operating System Redhat Enterprise Linux Server Tus 7.6 All All All
Operating System Redhat Enterprise Linux Server Tus 7.3 All All All
Operating System Redhat Enterprise Linux Server Tus 7.6 All All All
Operating System Redhat Enterprise Linux Workstation 6.0 All All All
Operating System Redhat Enterprise Linux Workstation 7.0 All All All
Operating System Redhat Enterprise Linux Workstation 6.0 All All All
Operating System Redhat Enterprise Linux Workstation 7.0 All All All
Application Redhat Openstack 5.0 All All All
Application Redhat Openstack 6.0 All All All
Application Redhat Openstack 7.0 All All All
Application Redhat Openstack 8 All All All
Application Redhat Openstack 8.0 All All All
Application Redhat Openstack 9 All All All
Application Redhat Openstack 9.0 All All All
Application Redhat Openstack 5.0 All All All
Application Redhat Openstack 6.0 All All All
Application Redhat Openstack 7.0 All All All
Application Redhat Openstack 8.0 All All All
Application Redhat Openstack 9.0 All All All

References

ReferenceSourceLinkTags
Red Hat Customer Portal REDHAT rhn.redhat.com Third Party Advisory
oss-security - CVE-2016-6662 - MySQL Remote Root Code Execution / Privilege Escalation ( 0day ) MLIST www.openwall.com Mailing List, Third Party Advisory
Red Hat Customer Portal REDHAT rhn.redhat.com Third Party Advisory
MariaDB 10.1.17 Release Notes - MariaDB Knowledge Base CONFIRM mariadb.com Release Notes, Vendor Advisory
Oracle MySQL CVE-2016-6662 Remote Code Execution Vulnerability BID www.securityfocus.com Third Party Advisory, VDB Entry
Red Hat Customer Portal REDHAT rhn.redhat.com Third Party Advisory
Red Hat Customer Portal REDHAT rhn.redhat.com Third Party Advisory
Oracle Critical Patch Update - October 2016 CONFIRM www.oracle.com Patch, Vendor Advisory
Debian -- Security Information -- DSA-3666-1 mysql-5.5 DEBIAN www.debian.org Third Party Advisory
Red Hat Customer Portal REDHAT rhn.redhat.com Third Party Advisory
[MDEV-10465] general_log_file can be abused - JIRA CONFIRM jira.mariadb.org Issue Tracking, Vendor Advisory
Red Hat Customer Portal REDHAT rhn.redhat.com Third Party Advisory
legalhackers.com/advisories/MySQL-Exploit-Remote-Root-Code-Execution-Privesc-C... MISC legalhackers.com Third Party Advisory
Red Hat Customer Portal REDHAT rhn.redhat.com Third Party Advisory
MariaDB 5.5.51 Release Notes - MariaDB Knowledge Base CONFIRM mariadb.com Release Notes, Vendor Advisory
MariaDB 10.0.27 Release Notes - MariaDB Knowledge Base CONFIRM mariadb.com Release Notes, Vendor Advisory
MySQL / MariaDB / PerconaDB 5.5.51 / 5.6.32 / 5.7.14 - Code Execution / Privilege Escalation EXPLOIT-DB www.exploit-db.com Exploit, Third Party Advisory, VDB Entry
Red Hat Customer Portal REDHAT rhn.redhat.com Third Party Advisory
Red Hat Customer Portal REDHAT rhn.redhat.com Third Party Advisory
Red Hat Customer Portal REDHAT rhn.redhat.com Third Party Advisory
Red Hat Customer Portal REDHAT rhn.redhat.com Third Party Advisory
Percona Server Critical Update CVE-2016-6662 - Percona Database Performance Blog CONFIRM www.percona.com Third Party Advisory
Red Hat Customer Portal REDHAT rhn.redhat.com Third Party Advisory
Red Hat Customer Portal REDHAT rhn.redhat.com Third Party Advisory
Full Disclosure: CVE-2016-6662 - MySQL Remote Root Code Execution / Privilege Escalation ( 0day ) FULLDISC seclists.org Mailing List, Third Party Advisory
MySQL General Query Logging Function Lets Remote Authenticated Users Modify the 'my.cnf' File to Gain Elevated Privileges - SecurityTracker SECTRACK www.securitytracker.com Third Party Advisory, VDB Entry
MariaDB and MySQL: Multiple vulnerabilities (GLSA 201701-01) — Gentoo security GENTOO security.gentoo.org Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 378301 Virtuozzo Linux Security Update for mysql-libs (VZLSA-2017:0184)
  • 710332 Gentoo Linux MariaDB and MySQL Multiple Vulnerabilities (GLSA 201701-01)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report