CVE-2016-6662
publishedmysql: general_log can write to configuration files, leading to privilege escalation (CPU Oct 2016)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Alpine Linux | v3.2 | mariadb | Fixed | 5.5.51-r0 | Package fix record |
| Debian | jessie | mysql-5.5 | Advisory build | 5.5.52-0+deb8u1 | DSA-3666-1 |
| Oracle Linux | 6 | mysqli686 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Red Hat Enterprise Linux | RHEL-6 | mariadb55-mariadbsrc | Advisory build | 5.5.53-1.el6 | RHSA-2016:2131 |
| Alpine Linux | v3.3 | mariadb | Fixed | 10.1.17-r0 | Package fix record |
| Debian | wheezy | mysql-5.5 | Advisory build | 5.5.52-0+deb7u1 | DLA-624-1 |
| Oracle Linux | 6 | mysqlsparc64 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 6 | mysqlx86_64 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-benchi686 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-benchsparc64 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-benchx86_64 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-develi686 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-develsparc64 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-develx86_64 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-embeddedi686 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-embeddedsparc64 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-embeddedx86_64 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-embedded-develi686 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-embedded-develsparc64 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-embedded-develx86_64 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-libsi686 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-libssparc64 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-libsx86_64 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-serveri686 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-serversparc64 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-serverx86_64 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-testi686 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-testsparc64 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 6 | mysql-testx86_64 | Advisory build | 0:5.1.73-8.0.1.el6_8 | ELSA-2017-0184 |
| Oracle Linux | 7 | mariadbx86_64 | Advisory build | 1:5.5.52-1.el7 | ELSA-2016-2595 |
| Oracle Linux | 7 | mariadb-benchx86_64 | Advisory build | 1:5.5.52-1.el7 | ELSA-2016-2595 |
| Oracle Linux | 7 | mariadb-develx86_64 | Advisory build | 1:5.5.52-1.el7 | ELSA-2016-2595 |
| Oracle Linux | 7 | mariadb-embeddedx86_64 | Advisory build | 1:5.5.52-1.el7 | ELSA-2016-2595 |
| Oracle Linux | 7 | mariadb-embedded-develx86_64 | Advisory build | 1:5.5.52-1.el7 | ELSA-2016-2595 |
| Oracle Linux | 7 | mariadb-libsx86_64 | Advisory build | 1:5.5.52-1.el7 | ELSA-2016-2595 |
| Oracle Linux | 7 | mariadb-serverx86_64 | Advisory build | 1:5.5.52-1.el7 | ELSA-2016-2595 |
| Oracle Linux | 7 | mariadb-testx86_64 | Advisory build | 1:5.5.52-1.el7 | ELSA-2016-2595 |
| Red Hat Enterprise Linux | RHEL-6 | mariadb55-mariadbx86_64 | Advisory build | 5.5.53-1.el6 | RHSA-2016:2131 |
| Red Hat Enterprise Linux | RHEL-6 | mariadb55-mariadb-benchx86_64 | Advisory build | 5.5.53-1.el6 | RHSA-2016:2131 |
| Red Hat Enterprise Linux | RHEL-6 | mariadb55-mariadb-debuginfox86_64 | Advisory build | 5.5.53-1.el6 | RHSA-2016:2131 |
| Red Hat Enterprise Linux | RHEL-6 | mariadb55-mariadb-develx86_64 | Advisory build | 5.5.53-1.el6 | RHSA-2016:2131 |
| Red Hat Enterprise Linux | RHEL-6 | mariadb55-mariadb-libsx86_64 | Advisory build | 5.5.53-1.el6 | RHSA-2016:2131 |
| Red Hat Enterprise Linux | RHEL-6 | mariadb55-mariadb-serverx86_64 | Advisory build | 5.5.53-1.el6 | RHSA-2016:2131 |
| Red Hat Enterprise Linux | RHEL-6 | mariadb55-mariadb-testx86_64 | Advisory build | 5.5.53-1.el6 | RHSA-2016:2131 |
| Red Hat Enterprise Linux | RHEL-6 | mysqli686 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysqlppc64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysqls390x | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysqlsrc | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysqlx86_64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-benchi686 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-benchppc64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-benchs390x | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-benchx86_64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-debuginfoi686 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-debuginfoppc | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-debuginfoppc64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-debuginfos390 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-debuginfos390x | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-debuginfox86_64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-develi686 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-develppc | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-develppc64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-devels390 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-devels390x | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-develx86_64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-embeddedi686 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-embeddedppc | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-embeddedppc64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-embeddeds390 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-embeddeds390x | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-embeddedx86_64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-embedded-develi686 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-embedded-develppc | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-embedded-develppc64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-embedded-devels390 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-embedded-devels390x | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-embedded-develx86_64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-libsi686 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-libsppc | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-libsppc64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-libss390 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-libss390x | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-libsx86_64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-serveri686 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-serverppc64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-servers390x | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-serverx86_64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-testi686 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-testppc64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-tests390x | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql-testx86_64 | Advisory build | 5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux | RHEL-6 | mysql55-mysqlsrc | Advisory build | 5.5.52-1.el6 | RHSA-2016:2130 |
| Red Hat Enterprise Linux | RHEL-6 | mysql55-mysqlx86_64 | Advisory build | 5.5.52-1.el6 | RHSA-2016:2130 |
| Red Hat Enterprise Linux | RHEL-6 | mysql55-mysql-benchx86_64 | Advisory build | 5.5.52-1.el6 | RHSA-2016:2130 |
| Red Hat Enterprise Linux | RHEL-6 | mysql55-mysql-debuginfox86_64 | Advisory build | 5.5.52-1.el6 | RHSA-2016:2130 |
| Red Hat Enterprise Linux | RHEL-6 | mysql55-mysql-develx86_64 | Advisory build | 5.5.52-1.el6 | RHSA-2016:2130 |
| Red Hat Enterprise Linux | RHEL-6 | mysql55-mysql-libsx86_64 | Advisory build | 5.5.52-1.el6 | RHSA-2016:2130 |
| Red Hat Enterprise Linux | RHEL-6 | mysql55-mysql-serverx86_64 | Advisory build | 5.5.52-1.el6 | RHSA-2016:2130 |
| Red Hat Enterprise Linux | RHEL-6 | mysql55-mysql-testx86_64 | Advisory build | 5.5.52-1.el6 | RHSA-2016:2130 |
| Red Hat Enterprise Linux | RHEL-6 | rh-mariadb100-mariadbsrc | Advisory build | 1:10.0.28-5.el6 | RHSA-2016:2927 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
27- http://legalhackers.com/advisories/MySQL-Exploit-Remote-Root-Code-Execution-Privesc-CVE-2016-6662.html
- RHSA-2016:2058 http://rhn.redhat.com/errata/RHSA-2016-2058.html
- RHSA-2016:2059 http://rhn.redhat.com/errata/RHSA-2016-2059.html
- RHSA-2016:2060 http://rhn.redhat.com/errata/RHSA-2016-2060.html
- RHSA-2016:2061 http://rhn.redhat.com/errata/RHSA-2016-2061.html
- RHSA-2016:2062 http://rhn.redhat.com/errata/RHSA-2016-2062.html
- RHSA-2016:2077 http://rhn.redhat.com/errata/RHSA-2016-2077.html
- RHSA-2016:2130 http://rhn.redhat.com/errata/RHSA-2016-2130.html
- RHSA-2016:2131 http://rhn.redhat.com/errata/RHSA-2016-2131.html
- RHSA-2016:2595 http://rhn.redhat.com/errata/RHSA-2016-2595.html
- RHSA-2016:2749 http://rhn.redhat.com/errata/RHSA-2016-2749.html
- RHSA-2016:2927 http://rhn.redhat.com/errata/RHSA-2016-2927.html
- RHSA-2016:2928 http://rhn.redhat.com/errata/RHSA-2016-2928.html
- RHSA-2017:0184 http://rhn.redhat.com/errata/RHSA-2017-0184.html
- 20160912 CVE-2016-6662 - MySQL Remote Root Code Execution / Privilege Escalation ( 0day ) http://seclists.org/fulldisclosure/2016/Sep/23
- DSA-3666 http://www.debian.org/security/2016/dsa-3666
- [oss-security] 20160912 CVE-2016-6662 - MySQL Remote Root Code Execution / Privilege Escalation ( 0day ) http://www.openwall.com/lists/oss-security/2016/09/12/3
- http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html
- 92912 http://www.securityfocus.com/bid/92912
- 1036769 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/
- GLSA-201701-01 https://security.gentoo.org/glsa/201701-01
- 40360 https://www.exploit-db.com/exploits/40360/
- https://www.percona.com/blog/2016/09/12/percona-server-critical-update-cve-2016-6662/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2c2cb66c908868a20ac5c08109696f7d87bdc7a2070e7e68008156876258ac71
- Ingested
- 23 Sep 2026, 07:41:28 UTC
- Source record
- Official CVE record