Home / Oracle / Mysql / CVE-2016-6662
CVE-2016-6662: is it exploited, and which versions of Oracle Mysql are affected and fixed?
CVE-2016-6662 is a vulnerability in Oracle Mysql. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 06:38 UTC). Affected: mysql from 5.5.0 through 5.5.52, mysql from 5.6.0 through 5.6.33, mysql from 5.7.0 through 5.7.15 and 27 more (NVD). Fixed in 5.5.51-38.1, 5.6.32-78.0, 5.7.14-7, 5.5.51 and 2 more (NVD). Severity: Critical (9.8, CVSS 3.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 06:38 UTC, CVE record November 19, 2026, 07:18 UTC and NVD November 19, 2026, 08:45 UTC.
What is 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.
From the CVE record by mitre, last updated August 6, 2024, 01:36 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| oracle | mysql | from 5.5.0 through 5.5.52 | application |
| oracle | mysql | from 5.6.0 through 5.6.33 | application |
| oracle | mysql | from 5.7.0 through 5.7.15 | application |
| percona | percona server | from 5.5 before 5.5.51-38.1 | application |
| percona | percona server | from 5.6 before 5.6.32-78.0 | application |
| percona | percona server | from 5.7 before 5.7.14-7 | application |
| mariadb | mariadb | from 5.5.20 before 5.5.51 | application |
| mariadb | mariadb | from 10.0.0 before 10.0.27 | application |
| mariadb | mariadb | from 10.1.0 before 10.1.17 | application |
| debian | debian linux | 8.0 | operating system |
| redhat | openstack | 5.0 | application |
| redhat | openstack | 6.0 | application |
| redhat | openstack | 7.0 | application |
| redhat | openstack | 8 | application |
| redhat | openstack | 9 | application |
| redhat | enterprise linux | 7.0 | operating system |
| redhat | enterprise linux desktop | 6.0 | operating system |
| redhat | enterprise linux desktop | 7.0 | operating system |
| redhat | enterprise linux server | 6.0 | operating system |
| redhat | enterprise linux server aus | 7.3 | operating system |
| redhat | enterprise linux server aus | 7.4 | operating system |
| redhat | enterprise linux server aus | 7.6 | operating system |
| redhat | enterprise linux server eus | 7.3 | operating system |
| redhat | enterprise linux server eus | 7.4 | operating system |
| redhat | enterprise linux server eus | 7.5 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 00:51 UTC.
How severe is CVE-2016-6662?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 10.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2016-6662 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 67.7% probability of exploitation activity in the next 30 days, percentile 99.3 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://mariadb.com/kb/en/mariadb/mariadb-10027-release-notes/ x_refsource_CONFIRM
- RHSA-2016:2749 vendor-advisory, x_refsource_REDHAT
- RHSA-2017:0184 vendor-advisory, x_refsource_REDHAT
- RHSA-2016:2131 vendor-advisory, x_refsource_REDHAT
- RHSA-2016:2060 vendor-advisory, x_refsource_REDHAT
- https://mariadb.com/kb/en/mariadb/mariadb-10117-release-notes/ x_refsource_CONFIRM
- https://mariadb.com/kb/en/mariadb/mariadb-5551-release-notes/ x_refsource_CONFIRM
- https://jira.mariadb.org/browse/MDEV-10465 x_refsource_CONFIRM
- 92912 vdb-entry, x_refsource_BID
- 20160912 CVE-2016-6662 - MySQL Remote Root Code Execution / Privilege Escalation ( 0day ) mailing-list, x_refsource_FULLDISC
- GLSA-201701-01 vendor-advisory, x_refsource_GENTOO
- DSA-3666 vendor-advisory, x_refsource_DEBIAN
- http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html x_refsource_CONFIRM
- RHSA-2016:2130 vendor-advisory, x_refsource_REDHAT
- RHSA-2016:2077 vendor-advisory, x_refsource_REDHAT
- RHSA-2016:2927 vendor-advisory, x_refsource_REDHAT
- RHSA-2016:2059 vendor-advisory, x_refsource_REDHAT
- http://legalhackers.com/advisories/MySQL-Exploit-Remote-Root-Code-Execution-Privesc-CVE-2016-6662.html x_refsource_MISC
- https://www.percona.com/blog/2016/09/12/percona-server-critical-update-cve-2016-6662/ x_refsource_CONFIRM
- RHSA-2016:2062 vendor-advisory, x_refsource_REDHAT
- RHSA-2016:2595 vendor-advisory, x_refsource_REDHAT
- 1036769 vdb-entry, x_refsource_SECTRACK
- RHSA-2016:2061 vendor-advisory, x_refsource_REDHAT
- [oss-security] 20160912 CVE-2016-6662 - MySQL Remote Root Code Execution / Privilege Escalation ( 0day ) mailing-list, x_refsource_MLIST
- 40360 exploit, x_refsource_EXPLOIT-DB
- RHSA-2016:2928 vendor-advisory, x_refsource_REDHAT
- RHSA-2016:2058 vendor-advisory, x_refsource_REDHAT
When was it published, and where is the official record?
- Reserved
- August 10, 2016
- Published
- September 20, 2016, 18:00 UTC
- CVE record updated
- August 6, 2024, 01:36 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 00:51 UTC
- Last checked
- CVE list November 19, 2026, 07:18 UTC; NVD November 19, 2026, 08:45 UTC; KEV December 3, 2026, 06:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Mysql?
- Apr 9, 2020CVE-2020-11655 Sqlite: improper initialization
- Apr 9, 2020CVE-2020-11656 Sqlite: use after free
- Feb 4, 2019CVE-2019-7317 Libpng: use after free
- Oct 17, 2018CVE-2018-3145 Oracle Mysql: n/a
- Jan 18, 2018CVE-2018-2640 Oracle Mysql: n/a
- Oct 19, 2017CVE-2017-10379 Oracle Mysql: incorrect authorization
- Oct 19, 2017CVE-2017-10286 Oracle Mysql: n/a
- Aug 8, 2017CVE-2017-3649 Oracle Mysql: n/a
Questions about CVE-2016-6662
Is CVE-2016-6662 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 06:38 UTC. FIRST's EPSS gives it a 67.7% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Oracle Mysql are affected by CVE-2016-6662?
mysql from 5.5.0 through 5.5.52, mysql from 5.6.0 through 5.6.33, mysql from 5.7.0 through 5.7.15, percona server from 5.5 before 5.5.51-38.1, percona server from 5.6 before 5.6.32-78.0, percona server from 5.7 before 5.7.14-7 and 24 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2016-6662?
5.5.51-38.1, 5.6.32-78.0, 5.7.14-7, 5.5.51, 10.0.27 and 10.1.17, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2016-6662?
Critical (9.8, CVSS 3.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2016-6662?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.