Skip to content
Fencer Vulns
critical 9.8

CVE-2016-6662 in the critical feed json

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 befor…

published 2016-09-20 10 y ago modified 2026-06-17 4 mo ago also EUVD-2016-7565

cvss
9.8
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
67.7%
EPSS 67.7% chance of exploitation in 30 days, percentile 99.3%
public exploits
1
Exploit-DB

Summary

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.

Patch / fix

  • percona percona_server 5.5.51-38.1, 5.6.32-78.0, 5.7.14-7
  • mariadb mariadb 5.5.51, 10.0.27, 10.1.17
  • mysql-5.5 Ubuntu 14.04 LTS 5.5.52-0ubuntu0.14.04.1
  • mysql-5.6 Ubuntu 14.04 LTS 5.6.33-0ubuntu0.14.04.1
  • mysql-5.7 Ubuntu 16.04 LTS 5.7.15-0ubuntu0.16.04.1
  • mariadb-5.5 Ubuntu 14.04 LTS 5.5.52-1ubuntu0.14.04.1
  • mariadb-10.0 Ubuntu 16.04 LTS 10.0.27-0ubuntu0.16.04.1
  • percona-xtradb-cluster-5.6 Ubuntu 16.04 LTS 5.6.34-26.19-0ubuntu0.16.04.1

ubuntu advisories UBUNTU-CVE-2016-6662

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • mysql55-mysql RHEL 2 SOFTWARE_COLLECTIONS 5.5.52-1.el6
  • mysql55-mysql RHEL 2 SOFTWARE_COLLECTIONS 5.5.52-1.el7
  • mysql55-mysql-libs RHEL 2 SOFTWARE_COLLECTIONS 5.5.52-1.el6
  • mysql55-mysql-libs RHEL 2 SOFTWARE_COLLECTIONS 5.5.52-1.el7
  • mysql55-mysql-test RHEL 2 SOFTWARE_COLLECTIONS 5.5.52-1.el6
  • mysql55-mysql-test RHEL 2 SOFTWARE_COLLECTIONS 5.5.52-1.el7
  • mysql55-mysql-bench RHEL 2 SOFTWARE_COLLECTIONS 5.5.52-1.el6
  • mysql55-mysql-bench RHEL 2 SOFTWARE_COLLECTIONS 5.5.52-1.el7

red hat advisories RHSA-2016:2130RHSA-2016:2749RHSA-2017:0184RHSA-2016:2062RHSA-2016:2077RHSA-2016:2131

  • mariadb104 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 10.4.30-8.5.46
  • lz4 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 1.8.0-3.5.2
  • python-mysqlclient SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 1.3.14-8.9.2
  • mariadb-connector-c SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 3.1.22-2.35.1
  • mysql SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 5.5.53-0.30.1
  • mariadb SLES for SAP 12 SP1, SLES 12 SP1, SLED 12 SP1 +2 more 10.0.27-12.1
  • mysql SLES for SAP 11 SP4, SLES 11 SP4, SLES 11 SP3-TERADATA +6 more 5.5.52-0.27.1
  • mariadb104 SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLE High Performance Computing 15 SP1-LTSS 10.4.30-150100.3.5.10

suse advisories SUSE-RU-2023:4991-1SUSE-RU-2023:3956-1SUSE-SU-2016:2780-1SUSE-SU-2016:2404-1SUSE-SU-2016:2395-1SUSE-SU-2016:2343-1

  • mariadb Alpine 3.2 5.5.51-r0
  • mariadb Alpine 3.3 10.1.17-r0

alpine advisories ALPINE-CVE-2016-6662

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2016-6662 updated cvss 9.8

mysql: general_log can write to configuration files, leading to privilege escalation (CPU Oct 2016)

  • Red Hat Enterprise Linux 5 mysql55-mysql
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Enterprise Linux Client (v. 7) mariadb 5.5.52-1.el7, mariadb-libs 5.5.52-1.el7, mariadb-server 5.5.52-1.el7 Red Hat Enterprise Linux Client Optional (v. 7) mariadb-test 5.5.52-1.el7, mariadb-bench 5.5.52-1.el7, mariadb-embedded 5.5.52-1.el7 Red Hat Enterprise Linux ComputeNode (v. 7) mariadb 5.5.52-1.el7, mariadb-libs 5.5.52-1.el7 Red Hat Enterprise Linux ComputeNode Optional (v. 7) mariadb-test 5.5.52-1.el7, mariadb-bench 5.5.52-1.el7, mariadb-server 5.5.52-1.el7, mariadb-embedded 5.5.52-1.el7
    fixed: vendor fix RHSA-2016:2595
  • Red Hat Enterprise Linux Desktop (v. 6) mysql 5.1.73-8.el6_8, mysql-libs 5.1.73-8.el6_8, mysql-server 5.1.73-8.el6_8 Red Hat Enterprise Linux Desktop Optional (v. 6) mysql-test 5.1.73-8.el6_8, mysql-bench 5.1.73-8.el6_8, mysql-embedded 5.1.73-8.el6_8 Red Hat Enterprise Linux HPC Node (v. 6) mysql 5.1.73-8.el6_8, mysql-libs 5.1.73-8.el6_8 Red Hat Enterprise Linux HPC Node Optional (v. 6) mysql-test 5.1.73-8.el6_8, mysql-bench 5.1.73-8.el6_8, mysql-server 5.1.73-8.el6_8, mysql-embedded 5.1.73-8.el6_8
    fixed: vendor fix RHSA-2017:0184
  • Red Hat Enterprise Linux OpenStack Platform 5.0 (Icehouse) for RHEL 6 mariadb-galera 5.5.42-1.1.el6ost, mariadb-galera-common 5.5.42-1.1.el6ost, mariadb-galera-server 5.5.42-1.1.el6ost
    fixed: vendor fix RHSA-2016:2058
  • Red Hat Enterprise Linux OpenStack Platform 5.0 (Icehouse) for RHEL 7 mariadb-galera 5.5.42-1.2.el7ost, mariadb-galera-common 5.5.42-1.2.el7ost, mariadb-galera-server 5.5.42-1.2.el7ost
    fixed: vendor fix RHSA-2016:2059
  • Red Hat Enterprise Linux OpenStack Platform 6.0 (Juno) for RHEL 7 mariadb-galera 5.5.42-1.2.el7ost, mariadb-galera-common 5.5.42-1.2.el7ost, mariadb-galera-server 5.5.42-1.2.el7ost
    fixed: vendor fix RHSA-2016:2060
  • Red Hat Enterprise Linux OpenStack Platform 7.0 (Kilo) for RHEL 7 mariadb-galera 5.5.42-5.el7ost, mariadb-galera-common 5.5.42-5.el7ost, mariadb-galera-server 5.5.42-5.el7ost
    fixed: vendor fix RHSA-2016:2061
  • Red Hat Enterprise Linux Server (v. 6) mysql 5.1.73-8.el6_8, mysql-libs 5.1.73-8.el6_8, mysql-test 5.1.73-8.el6_8, mysql-bench 5.1.73-8.el6_8, mysql-server 5.1.73-8.el6_8
    fixed: vendor fix RHSA-2017:0184
show 13 more
  • Red Hat Enterprise Linux Server (v. 7) mariadb 5.5.52-1.el7, mariadb-libs 5.5.52-1.el7, mariadb-test 5.5.52-1.el7, mariadb-bench 5.5.52-1.el7, mariadb-server 5.5.52-1.el7
    fixed: vendor fix RHSA-2016:2595
  • Red Hat Enterprise Linux Server Optional (v. 6) mysql-embedded 5.1.73-8.el6_8
    fixed: vendor fix RHSA-2017:0184
  • Red Hat Enterprise Linux Server Optional (v. 7) mariadb-embedded 5.5.52-1.el7
    fixed: vendor fix RHSA-2016:2595
  • Red Hat Enterprise Linux Workstation (v. 6) mysql 5.1.73-8.el6_8, mysql-libs 5.1.73-8.el6_8, mysql-test 5.1.73-8.el6_8, mysql-bench 5.1.73-8.el6_8, mysql-server 5.1.73-8.el6_8
    fixed: vendor fix RHSA-2017:0184
  • Red Hat Enterprise Linux Workstation (v. 7) mariadb 5.5.52-1.el7, mariadb-libs 5.5.52-1.el7, mariadb-test 5.5.52-1.el7, mariadb-bench 5.5.52-1.el7, mariadb-server 5.5.52-1.el7
    fixed: vendor fix RHSA-2016:2595
  • Red Hat Enterprise Linux Workstation Optional (v. 6) mysql-embedded 5.1.73-8.el6_8
    fixed: vendor fix RHSA-2017:0184
  • Red Hat Enterprise Linux Workstation Optional (v. 7) mariadb-embedded 5.5.52-1.el7
    fixed: vendor fix RHSA-2016:2595
  • Red Hat OpenStack Platform 8.0 (Liberty) mariadb-galera 5.5.42-5.el7ost, mariadb-galera-common 5.5.42-5.el7ost, mariadb-galera-server 5.5.42-5.el7ost
    fixed: vendor fix RHSA-2016:2077
  • Red Hat OpenStack Platform 9.0 mariadb-galera 5.5.42-5.el7ost, mariadb-galera-common 5.5.42-5.el7ost, mariadb-galera-server 5.5.42-5.el7ost
    fixed: vendor fix RHSA-2016:2062
  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) mysql55-mysql 5.5.52-1.el6, rh-mysql56-mysql 5.6.34-2.el6, mariadb55-mariadb 5.5.53-1.el6, mysql55-mysql-libs 5.5.52-1.el6, mysql55-mysql-test 5.5.52-1.el6, mysql55-mysql-bench 5.5.52-1.el6, +28 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) mysql55-mysql 5.5.52-1.el7, rh-mysql56-mysql 5.6.34-2.el7, mariadb55-mariadb 5.5.53-1.el7, mysql55-mysql-libs 5.5.52-1.el7, mysql55-mysql-test 5.5.52-1.el7, mysql55-mysql-bench 5.5.52-1.el7, +28 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) mysql55-mysql 5.5.52-1.el6, mariadb55-mariadb 5.5.53-1.el6, mysql55-mysql-libs 5.5.52-1.el6, mysql55-mysql-test 5.5.52-1.el6, mysql55-mysql-bench 5.5.52-1.el6, mysql55-mysql-server 5.5.52-1.el6, +4 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) mysql55-mysql 5.5.52-1.el6, rh-mysql56-mysql 5.6.34-2.el6, mariadb55-mariadb 5.5.53-1.el6, mysql55-mysql-libs 5.5.52-1.el6, mysql55-mysql-test 5.5.52-1.el6, mysql55-mysql-bench 5.5.52-1.el6, +28 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) mysql55-mysql 5.5.52-1.el7, rh-mysql56-mysql 5.6.34-2.el7, mariadb55-mariadb 5.5.53-1.el7, mysql55-mysql-libs 5.5.52-1.el7, mysql55-mysql-test 5.5.52-1.el7, mysql55-mysql-bench 5.5.52-1.el7, +11 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) mysql55-mysql 5.5.52-1.el7, rh-mysql56-mysql 5.6.34-2.el7, mariadb55-mariadb 5.5.53-1.el7, mysql55-mysql-libs 5.5.52-1.el7, mysql55-mysql-test 5.5.52-1.el7, mysql55-mysql-bench 5.5.52-1.el7, +28 more
    fixed: vendor fix RHSA-2016:2131
  • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-mariadb100-mariadb 10.0.28-5.el7, rh-mariadb101-mariadb 10.1.19-6.el7, rh-mariadb100-mariadb-test 10.0.28-5.el7, rh-mariadb101-mariadb-test 10.1.19-6.el7, rh-mariadb100-mariadb-bench 10.0.28-5.el7, rh-mariadb101-mariadb-bench 10.1.19-6.el7, +11 more
    fixed: vendor fix RHSA-2016:2927
  • Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) mysql55-mysql 5.5.52-1.el6, rh-mysql56-mysql 5.6.34-2.el6, mariadb55-mariadb 5.5.53-1.el6, mysql55-mysql-libs 5.5.52-1.el6, mysql55-mysql-test 5.5.52-1.el6, mysql55-mysql-bench 5.5.52-1.el6, +28 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) mysql55-mysql 5.5.52-1.el7, rh-mysql56-mysql 5.6.34-2.el7, mariadb55-mariadb 5.5.53-1.el7, mysql55-mysql-libs 5.5.52-1.el7, mysql55-mysql-test 5.5.52-1.el7, mysql55-mysql-bench 5.5.52-1.el7, +28 more
    fixed: vendor fix RHSA-2016:2131
  • Red Hat Enterprise Linux 5 mysql Red Hat Mobile Application Platform 4 millicore Red Hat OpenStack Platform 10 (Newton) mariadb-galera, mariadb-galera-common, mariadb-galera-server
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. First public exploit (EDB-40360)
  2. Published

Exploit prediction

67.73% chance of exploitation in the next 30 days, higher than 99.3% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • EDB-40360 MySQL / MariaDB / PerconaDB 5.5.51/5.6.32/5.7.14 - Code Execution / Privilege Escalation local, 2016-09-12

CVSS scores

assigned by version score vector
NVD 3.0 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 10.0 AV:N/AC:L/Au:N/C:C/I:C/A:C

Classification

Weakness
  • CWE-264 Permissions, Privileges, and Access Controls
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.