CVE-2016-6662
Reported by mitre · Published September 20, 2016
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| percona_server | percona | 5.7.14-7, 5.6.32-78.0, 5.5.51-38.1 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| alpine | mariadb | 0, 0 |
Timeline
- Sep 11, 2016 PoC Published (4 in total, the first dated here)
- Sep 20, 2016 VulnCheck XDB Entry (3 in total, the first dated here)
- Sep 20, 2016 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- May 14, 2024 VulnCheck KEV Exploitation
- Mar 5, 2026 Distribution Patch (12 in total, the first dated here)
- Mar 5, 2026 Security Advisory (16 in total, the first dated here)
- Oct 7, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-6662
vulnetix vdb fixes CVE-2016-6662
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-6662/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- RHSA-2016:2749 vendor-advisoryx_refsource_REDHAT
- RHSA-2017:0184 vendor-advisoryx_refsource_REDHAT
- RHSA-2016:2131 vendor-advisoryx_refsource_REDHAT
- RHSA-2016:2060 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- 92912 vdb-entryx_refsource_BID
- 20160912 CVE-2016-6662 - MySQL Remote Root Code Execution / Privilege Escalation ( 0day ) mailing-listx_refsource_FULLDISC
- GLSA-201701-01 vendor-advisoryx_refsource_GENTOO
- DSA-3666 vendor-advisoryx_refsource_DEBIAN
- x_refsource_CONFIRM
- RHSA-2016:2130 vendor-advisoryx_refsource_REDHAT
- RHSA-2016:2077 vendor-advisoryx_refsource_REDHAT
- RHSA-2016:2927 vendor-advisoryx_refsource_REDHAT
- RHSA-2016:2059 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- x_refsource_CONFIRM
- RHSA-2016:2062 vendor-advisoryx_refsource_REDHAT
…and 7 more