Skip to content
On CISA KEVCritical

CVE-2016-6662Mariadb Vulnerability

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

Published Sep 20, 2016 · Updated Oct 24, 2026 · Also known as ALPINE-CVE-2016-6662, DEBIAN-CVE-2016-6662, DLA-624-1, DSA-3666-1, SUSE-SU-2016:2395-1, SUSE-SU-2016:2404-1, UBUNTU-CVE-2016-6662, USN-3078-1

Key Facts

Patch immediately
  • CVE-2016-6662 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Mariadb, Mysql (Oracle), Percona Server and 22 more products.
  • It is exploited in the wild, listed in Industry KEV feed since May 14, 2024. A public exploit is reported by tracking sources, but no code link is listed yet.
  • EPSS estimates a 68% probability of exploitation in the next 30 days.
  • Fixed versions are available, including liblz4-1 1.8.0-3.5.2, libmariadb_plugins 3.1.22-2.35.1, libmariadb-devel 3.1.22-2.35.1.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

Scores

CVSS v3.1

9.8

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

68%

Higher than 99.4% of all scored CVEs

Exploit maturity

Exploited (KEV)

ATLAS score

73/100

Publication score, see How it works

Exploitation Verdict

KEV listed

May 14, 2024

2793 days after publication

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Exploited (KEV)

Public exploit code

2

Proof-of-concept links

In-the-wild evidence

1

Reports of active use

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.

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
Industry KEV feedMay 14, 2024n/aNot reported

Affected Products

355 affected entries in total
ProductAffected versionsFixed in
MariadbMariadbSee advisory5.5.51
MysqlOracleSee advisory5.5.52
Percona ServerPerconaSee advisory5.5.51-38.1
OpenstackRedhat5.0, 6.0, 7.0, 8, 9n/a
Debian LinuxDebian8.0n/a
20 more affected products in the full CVE brief

Patched Releases

liblz4-1

1.8.0-3.5.2

libmariadb_plugins

3.1.22-2.35.1

libmariadb-devel

3.1.22-2.35.1

libmariadb3

3.1.22-2.35.1

libmariadbd104-devel

10.4.30-150100.3.5.10, 10.4.30-8.5.46

libmariadbd19

10.4.30-150100.3.5.10, 10.4.30-8.5.46

libmysql55client_r18

5.5.52-0.27.1, 5.5.53-0.30.1

libmysql55client_r18-32bit

5.5.52-0.27.1, 5.5.53-0.30.1

libmysql55client_r18-x86

5.5.52-0.27.1, 5.5.53-0.30.1

libmysql55client18

5.5.52-0.27.1, 5.5.53-0.30.1

libmysql55client18-32bit

5.5.52-0.27.1, 5.5.53-0.30.1

libmysql55client18-x86

5.5.52-0.27.1, 5.5.53-0.30.1

libmysql56client_r18

5.6.34-1.1, 5.6.34-19.2

libmysql56client_r18-32bit

5.6.34-1.1, 5.6.34-19.2

libmysql56client18

5.6.34-1.1, 5.6.34-19.2

libmysql56client18-32bit

5.6.34-1.1, 5.6.34-19.2

libmysqlclient_r18

10.0.27-12.1, 10.0.27-2.27.1, 10.0.27-20.13.1

libmysqlclient_r18-32bit

10.0.27-12.1, 10.0.27-2.27.1

libmysqlclient-devel

10.0.27-12.1, 10.0.27-2.27.1, 10.0.27-20.13.1

libmysqlclient18

10.0.27-12.1, 10.0.27-2.27.1, 10.0.27-20.13.1

libmysqlclient18-32bit

10.0.27-12.1, 10.0.27-2.27.1, 10.0.27-20.13.1

libmysqlclient18-debuginfo

10.0.27-2.27.1

libmysqlclient18-debuginfo-32bit

10.0.27-2.27.1

libmysqld-devel

10.0.27-12.1, 10.0.27-2.27.1, 10.0.27-20.13.1

libmysqld18

10.0.27-12.1, 10.0.27-2.27.1, 10.0.27-20.13.1

Timeline

  1. Publicly disclosed

    Sep 20, 2016

  2. Added to Industry KEV feed

    May 14, 2024

  3. Last updated

    Oct 24, 2026

Weakness Type

  • CWE-264
  • CWE-732 Incorrect Permission Assignment for Critical Resource

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2016-6662 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Dec 2, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.