Original 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.
Affected software
- MariaDB ≥ 10.1.0 < 10.1.17≥ 10.0.0 < 10.0.27≥ 5.5.20 < 5.5.51 Fixed in: 10.1.17, 10.0.27, 5.5.51 exact match
Details
- Published
- 2016-09-20
- Last modified
- 2026-06-17
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- CWE
- CWE-264
- EPSS (30-day exploit probability)
- 67.73% (percentile 99)
References
- cve.org/CVE-2016-6662
- nvd.nist.gov/vuln/detail/CVE-2016-6662
- legalhackers.com/advisories/MySQL-Exploit-Remote-Root-Code-Execution-Privesc-CVE-2016-6662...
- rhn.redhat.com/errata/RHSA-2016-2058.html
- rhn.redhat.com/errata/RHSA-2016-2059.html
- rhn.redhat.com/errata/RHSA-2016-2060.html
- rhn.redhat.com/errata/RHSA-2016-2061.html
- rhn.redhat.com/errata/RHSA-2016-2062.html
- rhn.redhat.com/errata/RHSA-2016-2077.html
- rhn.redhat.com/errata/RHSA-2016-2130.html
- rhn.redhat.com/errata/RHSA-2016-2131.html
- rhn.redhat.com/errata/RHSA-2016-2595.html
- rhn.redhat.com/errata/RHSA-2016-2749.html
- rhn.redhat.com/errata/RHSA-2016-2927.html
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.