Vulnerability Report

CVE-2016-6662

RCE

Title: Oracle Mysql RCE

RCE

Proof Of Concept

PoC Available for CVE-2016-6662

CWE Category CWE-264
Published Date Sep 20, 2016
Modified Date May 06, 2026
Exploit Status Available
Score 9.8 CVSS v3.0
Exploit Probability (EPSS)
89.58%

Vulnerability Summary

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 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.

Impacted Vendors

Reference Links

http://legalhackers.com/advisories/MySQL-Exploit-Remote-Root-Code-Execution-Privesc-CVE-2016-6662.html http://rhn.redhat.com/errata/RHSA-2016-2058.html http://rhn.redhat.com/errata/RHSA-2016-2059.html http://rhn.redhat.com/errata/RHSA-2016-2060.html http://rhn.redhat.com/errata/RHSA-2016-2061.html http://rhn.redhat.com/errata/RHSA-2016-2062.html http://rhn.redhat.com/errata/RHSA-2016-2077.html http://rhn.redhat.com/errata/RHSA-2016-2130.html http://rhn.redhat.com/errata/RHSA-2016-2131.html http://rhn.redhat.com/errata/RHSA-2016-2595.html http://rhn.redhat.com/errata/RHSA-2016-2749.html http://rhn.redhat.com/errata/RHSA-2016-2927.html http://rhn.redhat.com/errata/RHSA-2016-2928.html http://rhn.redhat.com/errata/RHSA-2017-0184.html http://seclists.org/fulldisclosure/2016/Sep/23 http://www.debian.org/security/2016/dsa-3666 http://www.openwall.com/lists/oss-security/2016/09/12/3 http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html http://www.securityfocus.com/bid/92912 http://www.securitytracker.com/id/1036769 https://jira.mariadb.org/browse/MDEV-10465 https://mariadb.com/kb/en/mariadb/mariadb-10027-release-notes/ https://mariadb.com/kb/en/mariadb/mariadb-10117-release-notes/ https://mariadb.com/kb/en/mariadb/mariadb-5551-release-notes/ https://security.gentoo.org/glsa/201701-01 https://www.exploit-db.com/exploits/40360/ https://www.percona.com/blog/2016/09/12/percona-server-critical-update-cve-2016-6662/ http://legalhackers.com/advisories/MySQL-Exploit-Remote-Root-Code-Execution-Privesc-CVE-2016-6662.html http://rhn.redhat.com/errata/RHSA-2016-2058.html http://rhn.redhat.com/errata/RHSA-2016-2059.html http://rhn.redhat.com/errata/RHSA-2016-2060.html http://rhn.redhat.com/errata/RHSA-2016-2061.html http://rhn.redhat.com/errata/RHSA-2016-2062.html http://rhn.redhat.com/errata/RHSA-2016-2077.html http://rhn.redhat.com/errata/RHSA-2016-2130.html http://rhn.redhat.com/errata/RHSA-2016-2131.html http://rhn.redhat.com/errata/RHSA-2016-2595.html http://rhn.redhat.com/errata/RHSA-2016-2749.html http://rhn.redhat.com/errata/RHSA-2016-2927.html http://rhn.redhat.com/errata/RHSA-2016-2928.html http://rhn.redhat.com/errata/RHSA-2017-0184.html http://seclists.org/fulldisclosure/2016/Sep/23 http://www.debian.org/security/2016/dsa-3666 http://www.openwall.com/lists/oss-security/2016/09/12/3 http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html http://www.securityfocus.com/bid/92912 http://www.securitytracker.com/id/1036769 https://jira.mariadb.org/browse/MDEV-10465 https://mariadb.com/kb/en/mariadb/mariadb-10027-release-notes/ https://mariadb.com/kb/en/mariadb/mariadb-10117-release-notes/ https://mariadb.com/kb/en/mariadb/mariadb-5551-release-notes/ https://security.gentoo.org/glsa/201701-01 https://www.exploit-db.com/exploits/40360/ https://www.percona.com/blog/2016/09/12/percona-server-critical-update-cve-2016-6662/
CVSS v3.0
Source Entity [email protected]
Severity CRITICAL
9.8
Attack Vector
NETWORK
Complexity
LOW
Privileges
N/A
Interaction
NONE
Confidentiality
N/A
Integrity
N/A
Availability
N/A
Scope
UNCHANGED
RAW VECTOR CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v2.0
Source Entity [email protected]
Severity HIGH
10.0
Access Vector
N/A
Authentication
N/A
RAW VECTOR AV:N/AC:L/Au:N/C:C/I:C/A:C

Associated Attack Patterns (CAPEC)

Total: Patterns

CVE-2016-6662 Exploits & PoCs (Proof Of Concept)

GitHub https://github.com/MAYASEVEN/CVE-2016-6662
View Code
GitHub https://github.com/Ashrafdev/MySQL-Remote-Root-Code-Execution
View Code
GitHub https://github.com/meersjo/ansible-mysql-cve-2016-6662
View Code
GitHub https://github.com/boompig/cve-2016-6662
View Code
GitHub https://github.com/KosukeShimofuji/CVE-2016-6662
View Code
Exploit-DB https://www.exploit-db.com/exploits/40360
View Code
MODIFIED

Vulnerability data updated via NVD.

MODIFIED

Vulnerability data or affected products updated.

PUBLISHED

Vulnerability first announced in NVD.

Attack Vector Matrix

Access Vector NETWORK
Complexity LOW
Privileges N/A
Interaction NONE
CVSS Vector String CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected Stack

No specific products linked.