Vulnerabilities / CVE-2016-6662

critical

CVE-2016-6662

mysql: general_log can write to configuration files, leading to privilege escalation (CPU Oct 2016)

Published Modified CWE 264
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (high), Amazon (high), Oracle (high), Ubuntu (medium).

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 packages and fixed versions

SourcePackageFixed in
alpine 3.2mariadb5.5.51-r0
alpine 3.3mariadb10.1.17-r0
amazon linux 1mysql-config, mysql51, mysql51-bench and 28 more5.5.52-1.13.amzn1 and 2 more
debian 7mysql-5.55.5.52-0+deb7u1
debian 8mariadb-10.0, mysql-5.510.0.27-0+deb8u1 and 1 more
Oracle Linux 6mysql, mysql-bench, mysql-devel and 5 more5.1.73-8.0.1.el6_8
Oracle Linux 7mariadb, mariadb-bench, mariadb-devel and 5 more1:5.5.52-1.el7
ubuntu 12.04mysql-5.55.5.52-0ubuntu0.12.04.1
ubuntu 14.04mariadb-5.5, mysql-5.5, mysql-5.65.5.52-1ubuntu0.14.04.1 and 2 more
ubuntu 14.04-ESMmysql-5.55.5.52-0ubuntu0.14.04.1
ubuntu 16.04mariadb-10.0, mysql-5.7, percona-xtradb-cluster-5.610.0.27-0ubuntu0.16.04.1 and 2 more
ubuntu 16.04-ESMmariadb-10.0, mysql-5.7, percona-xtradb-cluster-5.610.0.27-0ubuntu0.16.04.1 and 2 more
Show all 72 entries from 19 sources
SourcePackageFixed in
alpine 3.2mariadb5.5.51-r0
alpine 3.3mariadb10.1.17-r0
amazon linux 1mysql-config5.5.52-1.13.amzn1
amazon linux 1mysql515.1.73-8.72.amzn1
amazon linux 1mysql51-bench5.1.73-8.72.amzn1
amazon linux 1mysql51-common5.1.73-8.72.amzn1
amazon linux 1mysql51-debuginfo5.1.73-8.72.amzn1
amazon linux 1mysql51-devel5.1.73-8.72.amzn1
amazon linux 1mysql51-embedded5.1.73-8.72.amzn1
amazon linux 1mysql51-embedded-devel5.1.73-8.72.amzn1
amazon linux 1mysql51-libs5.1.73-8.72.amzn1
amazon linux 1mysql51-server5.1.73-8.72.amzn1
amazon linux 1mysql51-test5.1.73-8.72.amzn1
amazon linux 1mysql555.5.52-1.13.amzn1
amazon linux 1mysql55-bench5.5.52-1.13.amzn1
amazon linux 1mysql55-debuginfo5.5.52-1.13.amzn1
amazon linux 1mysql55-devel5.5.52-1.13.amzn1
amazon linux 1mysql55-embedded5.5.52-1.13.amzn1
amazon linux 1mysql55-embedded-devel5.5.52-1.13.amzn1
amazon linux 1mysql55-libs5.5.52-1.13.amzn1
amazon linux 1mysql55-server5.5.52-1.13.amzn1
amazon linux 1mysql55-test5.5.52-1.13.amzn1
amazon linux 1mysql565.6.33-1.21.amzn1
amazon linux 1mysql56-bench5.6.33-1.21.amzn1
amazon linux 1mysql56-common5.6.33-1.21.amzn1
amazon linux 1mysql56-debuginfo5.6.33-1.21.amzn1
amazon linux 1mysql56-devel5.6.33-1.21.amzn1
amazon linux 1mysql56-embedded5.6.33-1.21.amzn1
amazon linux 1mysql56-embedded-devel5.6.33-1.21.amzn1
amazon linux 1mysql56-errmsg5.6.33-1.21.amzn1
amazon linux 1mysql56-libs5.6.33-1.21.amzn1
amazon linux 1mysql56-server5.6.33-1.21.amzn1
amazon linux 1mysql56-test5.6.33-1.21.amzn1
debian 7mysql-5.55.5.52-0+deb7u1
debian 8mariadb-10.010.0.27-0+deb8u1
debian 8mysql-5.55.5.52-0+deb8u1
Oracle Linux 6mysql5.1.73-8.0.1.el6_8
Oracle Linux 6mysql-bench5.1.73-8.0.1.el6_8
Oracle Linux 6mysql-devel5.1.73-8.0.1.el6_8
Oracle Linux 6mysql-embedded5.1.73-8.0.1.el6_8
Oracle Linux 6mysql-embedded-devel5.1.73-8.0.1.el6_8
Oracle Linux 6mysql-libs5.1.73-8.0.1.el6_8
Oracle Linux 6mysql-server5.1.73-8.0.1.el6_8
Oracle Linux 6mysql-test5.1.73-8.0.1.el6_8
Oracle Linux 7mariadb1:5.5.52-1.el7
Oracle Linux 7mariadb-bench1:5.5.52-1.el7
Oracle Linux 7mariadb-devel1:5.5.52-1.el7
Oracle Linux 7mariadb-embedded1:5.5.52-1.el7
Oracle Linux 7mariadb-embedded-devel1:5.5.52-1.el7
Oracle Linux 7mariadb-libs1:5.5.52-1.el7
Oracle Linux 7mariadb-server1:5.5.52-1.el7
Oracle Linux 7mariadb-test1:5.5.52-1.el7
ubuntu 12.04mysql-5.55.5.52-0ubuntu0.12.04.1
ubuntu 14.04mariadb-5.55.5.52-1ubuntu0.14.04.1
ubuntu 14.04mysql-5.55.5.52-0ubuntu0.14.04.1
ubuntu 14.04mysql-5.65.6.33-0ubuntu0.14.04.1
ubuntu 14.04-ESMmysql-5.55.5.52-0ubuntu0.14.04.1
ubuntu 16.04mariadb-10.010.0.27-0ubuntu0.16.04.1
ubuntu 16.04mysql-5.75.7.15-0ubuntu0.16.04.1
ubuntu 16.04percona-xtradb-cluster-5.65.6.34-26.19-0ubuntu0.16.04.1
ubuntu 16.04-ESMmariadb-10.010.0.27-0ubuntu0.16.04.1
ubuntu 16.04-ESMmysql-5.75.7.15-0ubuntu0.16.04.1
ubuntu 16.04-ESMpercona-xtradb-cluster-5.65.6.34-26.19-0ubuntu0.16.04.1
ubuntu 16.10mariadb-10.010.0.28-0ubuntu0.16.10.1
ubuntu 16.10mysql-5.75.7.15-0ubuntu2
ubuntu 16.10percona-xtradb-cluster-5.65.6.34-26.19-0ubuntu0.16.10.1
ubuntu 17.04mysql-5.75.7.15-0ubuntu2
ubuntu 17.10mysql-5.75.7.15-0ubuntu2
ubuntu 18.04mysql-5.75.7.15-0ubuntu2
ubuntu 18.04-ESMmysql-5.75.7.15-0ubuntu2
ubuntu 18.10mysql-5.75.7.15-0ubuntu2
ubuntu 19.04mysql-5.75.7.15-0ubuntu2

References

All 34 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.