Code executionin CVE-2016-6662.
Proof of concept public (Exploit-DB).
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.
- No source names a fix yet. Watch this page or the product for updates; we never guess a fixed version.
Not confirmed by any source yet: affected versions not confirmed; fixed version not confirmed; severity not scored yet. We show these as not confirmed instead of guessing.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 10 Aug 2016CVE ID reserved by mitre.
- 14 Sep 2016First public proof of concept on GitHub.
- 20 Sep 2016Published in the CVE List.
- 6 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (Exploit-DB).
6 proof of concept repositories on GitHub. No fix or workaround is known yet, so we count them but do not link to them.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
- mariadb.com x_refsource_CONFIRM
- rhn.redhat.com vendor-advisory, x_refsource_REDHAT
- rhn.redhat.com vendor-advisory, x_refsource_REDHAT
- rhn.redhat.com vendor-advisory, x_refsource_REDHAT
- rhn.redhat.com vendor-advisory, x_refsource_REDHAT
- mariadb.com x_refsource_CONFIRM
- mariadb.com x_refsource_CONFIRM
- jira.mariadb.org x_refsource_CONFIRM
- www.securityfocus.com vdb-entry, x_refsource_BID
- seclists.org mailing-list, x_refsource_FULLDISC
- security.gentoo.org vendor-advisory, x_refsource_GENTOO
- www.debian.org vendor-advisory, x_refsource_DEBIAN
- www.oracle.com x_refsource_CONFIRM
- rhn.redhat.com vendor-advisory, x_refsource_REDHAT
- rhn.redhat.com vendor-advisory, x_refsource_REDHAT
- rhn.redhat.com vendor-advisory, x_refsource_REDHAT
- rhn.redhat.com vendor-advisory, x_refsource_REDHAT
- legalhackers.com x_refsource_MISC
- www.percona.com x_refsource_CONFIRM
- rhn.redhat.com vendor-advisory, x_refsource_REDHAT
- rhn.redhat.com vendor-advisory, x_refsource_REDHAT
- www.securitytracker.com vdb-entry, x_refsource_SECTRACK
- rhn.redhat.com vendor-advisory, x_refsource_REDHAT
- www.openwall.com mailing-list, x_refsource_MLIST
- rhn.redhat.com vendor-advisory, x_refsource_REDHAT
- rhn.redhat.com vendor-advisory, x_refsource_REDHAT
Patchminder. CVE-2016-6662: Code execution in CVE-2016-6662. https://patchminder.com/cve/cve-2016-6662/ (accessed 5 December 2026).