{"id":"CVE-2016-6662","published":"2016-09-20T18:00:00Z","modified":"2024-08-06T01:36:29Z","title":"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…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw affects Oracle MySQL (through 5.5.52, 5.6.x through 5.6.33, and 5.7.x through 5.7.15), MariaDB, and Percona Server, where the general_log_file setting can be pointed at a my.cnf configuration file. A local user on the system can exploit this to create arbitrary configurations and bypass certain protection mechanisms, and the same setting can be used with malloc_lib to execute arbitrary code with root privileges.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:14:42Z"},"cvss":null,"epss":{"score":0.6773,"percentile":0.99314,"date":"2026-10-28","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2024-05-14","exploitedFirstSeen":"2024-05-14","ransomware":false,"evidence":[{"url":"https://www.trustwave.com/hubfs/Web/Library/Documents_pdf/2024_Trustwave_Public_Sector_Threat_Landscape.pdf","date":"2024-05-14"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":5,"pulses":[{"name":"CVE Data","url":"https://otx.alienvault.com/pulse/69929b597293fe5837b9c95c","created":"2026-02-16"},{"name":"IOC's found on my pesonal devices; week starting 08/14/23","url":"https://otx.alienvault.com/pulse/65709ffcf3ffe737f8cb8dfd","created":"2023-12-06"},{"name":"IOC's found on my pesonal devices; week starting 08/14/23","url":"https://otx.alienvault.com/pulse/64dd9c1d76a7807782a691d3","created":"2023-08-17"},{"name":"NCSC_MAR_C_00025_COLDSTEEL","url":"https://otx.alienvault.com/pulse/63da702509042269012119aa","created":"2023-02-01"},{"name":"Proof Point Emerging Exploit list","url":"https://otx.alienvault.com/pulse/6399fdc966948f6b537b9762","created":"2022-12-14"}],"provenance":"machine"},"cwes":[],"references":[{"url":"https://mariadb.com/kb/en/mariadb/mariadb-10027-release-notes/","tags":["x_refsource_CONFIRM"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2749.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://rhn.redhat.com/errata/RHSA-2017-0184.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2131.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2060.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://mariadb.com/kb/en/mariadb/mariadb-10117-release-notes/","tags":["x_refsource_CONFIRM"]},{"url":"https://mariadb.com/kb/en/mariadb/mariadb-5551-release-notes/","tags":["x_refsource_CONFIRM"]},{"url":"https://jira.mariadb.org/browse/MDEV-10465","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/92912","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://seclists.org/fulldisclosure/2016/Sep/23","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"https://security.gentoo.org/glsa/201701-01","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://www.debian.org/security/2016/dsa-3666","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html","tags":["x_refsource_CONFIRM"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2130.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2077.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2927.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2059.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://legalhackers.com/advisories/MySQL-Exploit-Remote-Root-Code-Execution-Privesc-CVE-2016-6662.html","tags":["x_refsource_MISC"]},{"url":"https://www.percona.com/blog/2016/09/12/percona-server-critical-update-cve-2016-6662/","tags":["x_refsource_CONFIRM"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2062.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2595.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.securitytracker.com/id/1036769","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2061.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.openwall.com/lists/oss-security/2016/09/12/3","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.exploit-db.com/exploits/40360/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2928.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2058.html","tags":["vendor-advisory","x_refsource_REDHAT"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2016-7565","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2016-7565","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":40360,"url":"https://www.exploit-db.com/exploits/40360","title":"MySQL / MariaDB / PerconaDB 5.5.51/5.6.32/5.7.14 - Code Execution / Privilege Escalation","type":"local","platform":"linux","date":"2016-09-12","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2016-09-12"},"pocGithub":{"count":6,"skipped":0,"earliest":"2016-09-14","earliestUrl":"https://github.com/konstantin-kelemen/mysqld_safe-CVE-2016-6662-patch","repos":[{"name":"MAYASEVEN/CVE-2016-6662","url":"https://github.com/MAYASEVEN/CVE-2016-6662","stars":28,"created":"2017-05-01"},{"name":"Ashrafdev/MySQL-Remote-Root-Code-Execution","url":"https://github.com/Ashrafdev/MySQL-Remote-Root-Code-Execution","stars":9,"created":"2016-09-20"},{"name":"meersjo/ansible-mysql-cve-2016-6662","url":"https://github.com/meersjo/ansible-mysql-cve-2016-6662","stars":1,"created":"2016-09-15"},{"name":"boompig/cve-2016-6662","url":"https://github.com/boompig/cve-2016-6662","stars":1,"created":"2017-03-19"},{"name":"konstantin-kelemen/mysqld_safe-CVE-2016-6662-patch","url":"https://github.com/konstantin-kelemen/mysqld_safe-CVE-2016-6662-patch","stars":0,"created":"2016-09-14"}]},"first":{"date":"2016-09-12","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/40360"},"provenance":"source"},"exploitRefs":["https://www.exploit-db.com/exploits/40360/"],"flow":[],"timeline":[{"date":"2016-09-12","kind":"exploit-public","label":"First public exploit: Exploit-DB (EDB-40360); later: PoC-in-GitHub 2016-09-14","url":"https://www.exploit-db.com/exploits/40360","provenance":"source"},{"date":"2016-09-20","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2016-6662","provenance":"source"},{"date":"2024-05-14","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://www.trustwave.com/hubfs/Web/Library/Documents_pdf/2024_Trustwave_Public_Sector_Threat_Landscape.pdf","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Exploit-DB","daysToKev":null},"priority":{"score":61.6,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 898 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.86,"detail":"percentile 0.9931"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD reference tagged Exploit; 1 Exploit-DB entry; 6 PoC-in-GitHub repos"},{"name":"Mentioned in OTX pulses","points":1.77,"detail":"5 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}