# CVE-2016-6662

- Priority: **Prioritise**
- Reason: Public exploit (exploit-database, 12-09-2016)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2016-09-20 · Modified: 2024-08-06
- Aliases: ALPINE-CVE-2016-6662, SUSE-SU-2016:2395-1, SUSE-SU-2016:2404-1, RHSA-2016:2058, RHSA-2016:2059, RHSA-2016:2060, RHSA-2016:2061, RHSA-2016:2062, RHSA-2016:2077, UBUNTU-CVE-2016-6662, USN-3078-1, DLA-624-1, DSA-3666-1
- Record: https://cvemate.com/vulnerability/CVE-2016-6662 · JSON: https://cvemate.com/vulnerability/CVE-2016-6662/json

## Description

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

## Signals

- CVSS: 10 high (v2.0, NVD) AV:N/AC:L/Au:N/C:C/I:C/A:C
- EPSS: 67.73%, percentile 99.33%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (exploit-database)

## Affected (first 20 of 32)

- alpine mariadb (Alpine Linux): ≥ 5.5.20, \< 10.1.17-r0 \| ≥ 5.5.20, \< 5.5.51-r0 \| ≥ 10.1.0, \< 10.1.17-r0
- debian mysql-5.5 (Debian): \< 5.5.52-0+deb8u1 \| \< 5.5.52-0+deb7u1
- ubuntu mariadb-10.0 (Ubuntu): \< 10.0.27-0ubuntu0.16.04.1
- ubuntu mariadb-5.5 (Ubuntu): \< 5.5.52-1ubuntu0.14.04.1
- ubuntu mysql-5.5 (Ubuntu): \< 5.5.52-0ubuntu0.14.04.1
- ubuntu mysql-5.6 (Ubuntu): \< 5.6.33-0ubuntu0.14.04.1
- ubuntu mysql-5.7 (Ubuntu): \< 5.7.15-0ubuntu0.16.04.1
- ubuntu percona-server-5.6 (Ubuntu): All versions (No fix recorded)
- ubuntu percona-xtradb-cluster-5.6 (Ubuntu): \< 5.6.34-26.19-0ubuntu0.16.04.1
- debian debian\_linux: 8.0
- mariadb mariadb: ≥ 5.5.20, \< 5.5.51 \| ≥ 10.0.0, \< 10.0.27 \| ≥ 10.1.0, \< 10.1.17
- oracle mysql: ≥ 5.5.0, ≤ 5.5.52 \| ≥ 5.6.0, ≤ 5.6.33 \| ≥ 5.7.0, ≤ 5.7.15
- percona percona\_server: ≥ 5.5, \< 5.5.51-38.1 \| ≥ 5.6, \< 5.6.32-78.0 \| ≥ 5.7, \< 5.7.14-7
- redhat enterprise\_linux: 7.0
- redhat enterprise\_linux\_desktop: 6.0 \| 7.0
- redhat enterprise\_linux\_server: 6.0
- redhat enterprise\_linux\_server\_aus: 7.3 \| 7.4 \| 7.6
- redhat enterprise\_linux\_server\_eus: 7.3 \| 7.4 \| 7.5 \| 7.6
- redhat enterprise\_linux\_server\_tus: 7.3 \| 7.6
- redhat enterprise\_linux\_workstation: 6.0 \| 7.0

## References (first 20 of 61)

- <https://mariadb.com/kb/en/mariadb/mariadb-10027-release-notes/>
- <http://rhn.redhat.com/errata/RHSA-2016-2749.html>
- <http://rhn.redhat.com/errata/RHSA-2017-0184.html>
- <http://rhn.redhat.com/errata/RHSA-2016-2131.html>
- <http://rhn.redhat.com/errata/RHSA-2016-2060.html>
- <https://mariadb.com/kb/en/mariadb/mariadb-10117-release-notes/>
- <https://mariadb.com/kb/en/mariadb/mariadb-5551-release-notes/>
- <https://jira.mariadb.org/browse/MDEV-10465>
- <http://www.securityfocus.com/bid/92912>
- <http://seclists.org/fulldisclosure/2016/Sep/23>
- <https://security.gentoo.org/glsa/201701-01>
- <http://www.debian.org/security/2016/dsa-3666>
- <http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html>
- <http://rhn.redhat.com/errata/RHSA-2016-2130.html>
- <http://rhn.redhat.com/errata/RHSA-2016-2077.html>
- <http://rhn.redhat.com/errata/RHSA-2016-2927.html>
- <http://rhn.redhat.com/errata/RHSA-2016-2059.html>
- <http://legalhackers.com/advisories/MySQL-Exploit-Remote-Root-Code-Execution-Privesc-CVE-2016-6662.html>
- <https://www.percona.com/blog/2016/09/12/percona-server-critical-update-cve-2016-6662/>
- <http://rhn.redhat.com/errata/RHSA-2016-2062.html>

---

Data as of 2026-12-05T07:47:54.827Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
