Skip to content
Noroxi
CVE-2016-6662· NVD / CVE Program· CNA mitre

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

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.

CriticalCVSS 9.8 · v3.0—Proof of concept Fix available
Published
Sep 20, 2016
Updated
Jun 16, 2026
EPSS
67.7% · 99th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

59

Plan

Add it to your regular patch cycle.

CVSS
39 / 40 · 9.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
20 / 30 · 67.7%

Affected systems

VendorProduct
oraclemysql
perconapercona server
mariadbmariadb
debiandebian linux
redhatopenstack
redhatenterprise linux
redhatenterprise linux desktop
redhatenterprise linux server
redhatenterprise linux server aus
redhatenterprise linux server eus
redhatenterprise linux server tus
redhatenterprise linux workstation

Using mysql? Add it to your stack and be the first to know about CVEs like this one. (MySQL)

Add to my stack

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • oracle mysql5.5.0 and later · up to 5.5.52 inclusive
  • oracle mysql5.6.0 and later · up to 5.6.33 inclusive
  • oracle mysql5.7.0 and later · up to 5.7.15 inclusive

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.2mariadbfrom 5.5.20 · before 5.5.51-r05.5.51-r0
Alpine:v3.3mariadbfrom 5.5.20 · before 10.1.17-r010.1.17-r0
Debian:7mysql-5.5before 5.5.52-0+deb7u15.5.52-0+deb7u1
Debian:8mysql-5.5before 5.5.52-0+deb8u15.5.52-0+deb8u1
Red Hat:enterprise_linux:6::clientmysqlbefore 0:5.1.73-8.el6_80:5.1.73-8.el6_8
Red Hat:enterprise_linux:6::clientmysql-benchbefore 0:5.1.73-8.el6_80:5.1.73-8.el6_8
Red Hat:enterprise_linux:6::clientmysql-debuginfobefore 0:5.1.73-8.el6_80:5.1.73-8.el6_8
Red Hat:enterprise_linux:6::clientmysql-develbefore 0:5.1.73-8.el6_80:5.1.73-8.el6_8
Red Hat:enterprise_linux:6::clientmysql-embeddedbefore 0:5.1.73-8.el6_80:5.1.73-8.el6_8
Red Hat:enterprise_linux:6::clientmysql-embedded-develbefore 0:5.1.73-8.el6_80:5.1.73-8.el6_8
Red Hat:enterprise_linux:6::clientmysql-libsbefore 0:5.1.73-8.el6_80:5.1.73-8.el6_8
Red Hat:enterprise_linux:6::clientmysql-serverbefore 0:5.1.73-8.el6_80:5.1.73-8.el6_8
Red Hat:enterprise_linux:6::clientmysql-testbefore 0:5.1.73-8.el6_80:5.1.73-8.el6_8
Red Hat:enterprise_linux:7::clientmariadbbefore 1:5.5.52-1.el71:5.5.52-1.el7
Red Hat:enterprise_linux:7::clientmariadb-benchbefore 1:5.5.52-1.el71:5.5.52-1.el7
Red Hat:enterprise_linux:7::clientmariadb-debuginfobefore 1:5.5.52-1.el71:5.5.52-1.el7
Red Hat:enterprise_linux:7::clientmariadb-develbefore 1:5.5.52-1.el71:5.5.52-1.el7
Red Hat:enterprise_linux:7::clientmariadb-embeddedbefore 1:5.5.52-1.el71:5.5.52-1.el7
Red Hat:enterprise_linux:7::clientmariadb-embedded-develbefore 1:5.5.52-1.el71:5.5.52-1.el7
Red Hat:enterprise_linux:7::clientmariadb-libsbefore 1:5.5.52-1.el71:5.5.52-1.el7
Red Hat:enterprise_linux:7::clientmariadb-serverbefore 1:5.5.52-1.el71:5.5.52-1.el7
Red Hat:enterprise_linux:7::clientmariadb-testbefore 1:5.5.52-1.el71:5.5.52-1.el7
Red Hat:openstack:5::el6mariadb-galerabefore 0:5.5.42-1.1.el6ost0:5.5.42-1.1.el6ost
Red Hat:openstack:5::el6mariadb-galera-commonbefore 0:5.5.42-1.1.el6ost0:5.5.42-1.1.el6ost

+96

Other highest-scoring records for the same primary product.

  • CVE-2017-3599Vulnerability in the MySQL Server component of Oracle MySQL (subcomponent: Server: Pluggable Auth).
    57Plan
  • CVE-2009-4484Multiple stack-based buffer overflows in the CertDecoder::GetName function in src/asn.cpp in TaoCrypt in yaSSL before 1.9.9, as used in mysq
    51Plan
  • CVE-2022-21489Vulnerability in the MySQL Cluster product of Oracle MySQL (component: Cluster: General).
    49Plan
  • CVE-2022-21279Vulnerability in the MySQL Cluster product of Oracle MySQL (component: Cluster: General).
    49Plan
  • CVE-2012-2122sql/password.c in Oracle MySQL 5.1.x before 5.1.63, 5.5.x before 5.5.24, and 5.6.x before 5.6.6, and MariaDB 5.1.x before 5.1.62, 5.2.x befo
    49Plan
  • CVE-2003-0150MySQL 3.23.55 and earlier creates world-writeable files and allows mysql users to gain root privileges by using the "SELECT * INFO OUTFILE"
    49Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
alpine:mariadb5.5.51-r0 · Alpine:v3.2Package registry (OSV)
debian:mysql-5.55.5.52-0+deb7u1 · Debian:7Package registry (OSV)
red hat:mariadb-galera0:5.5.42-1.1.el6ost · Red Hat:openstack:5::el6Package registry (OSV)
red hat:mariadb-galera-common0:5.5.42-1.1.el6ost · Red Hat:openstack:5::el6Package registry (OSV)
red hat:mariadb-galera-debuginfo0:5.5.42-1.1.el6ost · Red Hat:openstack:5::el6Package registry (OSV)
red hat:mariadb-galera-server0:5.5.42-1.1.el6ost · Red Hat:openstack:5::el6Package registry (OSV)
red hat:mariadb55-mariadb0:5.5.53-1.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:mysql55-mysql0:5.5.52-1.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:mysql55-mysql-bench0:5.5.52-1.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:mysql55-mysql-debuginfo0:5.5.52-1.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:mysql55-mysql-devel0:5.5.52-1.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:mysql55-mysql-libs0:5.5.52-1.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:mysql55-mysql-server0:5.5.52-1.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:mysql55-mysql-test0:5.5.52-1.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
suse:mariadb10.0.27-20.13.1 · SUSE:Linux Enterprise Server for SAP Applications 12Package registry (OSV)
suse:mysql5.5.52-0.27.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4Package registry (OSV)

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Exploit-DB entry ×1
  • Proof-of-concept repository on GitHub ×6

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Exploit-DB entrylocal2016-09-12
Proof-of-concept repository on GitHubstars:02016-09-14
Proof-of-concept repository on GitHubstars:12016-09-15
Proof-of-concept repository on GitHubstars:02016-09-16
Proof-of-concept repository on GitHubstars:92016-09-20
Proof-of-concept repository on GitHubstars:12017-03-19
Proof-of-concept repository on GitHubstars:292017-05-01

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. First PoC-9 d
  2. Published
  3. TodaySep 30, 2026+3662 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

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

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records