{"id":"CVE-2016-6664","details":"mysqld_safe in Oracle MySQL through 5.5.51, 5.6.x through 5.6.32, and 5.7.x through 5.7.14; MariaDB; Percona Server before 5.5.51-38.2, 5.6.x before 5.6.32-78-1, and 5.7.x before 5.7.14-8; and Percona XtraDB Cluster before 5.5.41-37.0, 5.6.x before 5.6.32-25.17, and 5.7.x before 5.7.14-26.17, when using file-based logging, allows local users with access to the mysql account to gain root privileges via a symlink attack on error logs and possibly other files.","modified":"2026-04-16T06:19:33.588472549Z","published":"2016-12-13T21:59:01.740Z","related":["SUSE-RU-2023:3956-1","SUSE-RU-2023:4991-1","SUSE-SU-2017:0411-1","SUSE-SU-2017:0412-1","openSUSE-SU-2024:11038-1"],"references":[{"type":"ADVISORY","url":"https://www.percona.com/blog/2016/11/02/percona-responds-to-cve-2016-6663-and-cve-2016-6664/"},{"type":"ADVISORY","url":"http://seclists.org/fulldisclosure/2016/Nov/4"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201702-18"},{"type":"ADVISORY","url":"http://www.debian.org/security/2017/dsa-3770"},{"type":"ADVISORY","url":"http://www.securityfocus.com/archive/1/539695/100/0/threaded"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2130.html"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/93612"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:0574"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2749.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2017:2192"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:0279"},{"type":"FIX","url":"http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/40679/"},{"type":"EVIDENCE","url":"http://packetstormsecurity.com/files/139491/MySQL-MariaDB-PerconaDB-Root-Privilege-Escalation.html"},{"type":"EVIDENCE","url":"http://legalhackers.com/advisories/MySQL-Maria-Percona-RootPrivEsc-CVE-2016-6664-5617-Exploit.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mariadb/server","events":[{"introduced":"776555af021e917ce0d6235386b43ae59fdd5161"},{"fixed":"5fc1ba604e27b7d9eaa2977ef5b0c180f6f62565"},{"introduced":"c235de12ae3723b96944337bd89ad9cc87f21d8f"},{"fixed":"f7d030489d2980c9deb733925515099ec256f6d2"}],"database_specific":{"versions":[{"introduced":"10.0.0"},{"fixed":"10.0.29"},{"introduced":"10.1.0"},{"fixed":"10.1.21"}]}},{"type":"GIT","repo":"https://github.com/mysql/mysql-server","events":[{"introduced":"54df0057e18d8c82c23fbd4e0bf5b5dc2e762955"},{"last_affected":"7d57772f47e0d69b2e2a7bcd62da59e54f8c8343"},{"introduced":"0"},{"last_affected":"c3a8ca1ed0063d4bca761ac9b57718796242ccc1"},{"introduced":"0"},{"last_affected":"1020e95bb203bd500ece736163e44a2034beba4d"},{"introduced":"54df0057e18d8c82c23fbd4e0bf5b5dc2e762955"},{"fixed":"c8f0eeb9c8596be83fefb7fef9f9871e53edb020"}],"database_specific":{"versions":[{"introduced":"5.5.0"},{"last_affected":"5.5.51"},{"introduced":"5.6.0"},{"last_affected":"5.6.32"},{"introduced":"5.7.0"},{"last_affected":"5.7.14"},{"introduced":"5.5.0"},{"fixed":"5.5.54"}]}},{"type":"GIT","repo":"https://github.com/percona/percona-server","events":[{"introduced":"ba312212c98fb993434cc7420950102ecca7793d"},{"fixed":"6a9ff9a10b3ba41710a735cbff0f1d89d0dc0219"},{"introduced":"0"},{"fixed":"4c779b72b4804ad04266bf8abc9e787034698a20"},{"introduced":"0"},{"fixed":"1f84ccd54525a4a513a12a2884f12a7d31a85867"},{"introduced":"ba312212c98fb993434cc7420950102ecca7793d"},{"fixed":"b8714facc739ac4ea9eb90d2b3d348ef678ae9a2"}],"database_specific":{"versions":[{"introduced":"5.5"},{"fixed":"5.5.51-38.2"},{"introduced":"5.6"},{"fixed":"5.6.32-78.1"},{"introduced":"5.7"},{"fixed":"5.7.14-8"},{"introduced":"5.5"},{"fixed":"5.5.41-37.0"}]}},{"type":"GIT","repo":"https://github.com/percona/percona-xtradb-cluster","events":[{"introduced":"0"},{"fixed":"0ca1798609a5b29b30da520de96dfa7a7f8afaac"},{"introduced":"0"},{"fixed":"6a03453bccf54324059a4d6beb39f2d735c37ad6"}],"database_specific":{"versions":[{"introduced":"5.6"},{"fixed":"5.6.32-25.17"},{"introduced":"5.7"},{"fixed":"5.7.14-26.17"}]}}],"versions":["Percona-Server-5.5.34-32.0","Percona-Server-5.5.35-33.0","Percona-Server-5.5.51-38.1","Percona-Server-5.6.14-62.0","Percona-Server-5.6.15-63.0","Percona-Server-5.6.22-72.0","Percona-Server-5.6.32-78.0","Percona-Server-5.6.5-60.0","Percona-Server-5.7.14-7","Percona-XtraDB-Cluster-5.6.14-25.1","Percona-XtraDB-Cluster-5.6.15-25.2","Percona-XtraDB-Cluster-5.6.15-25.3","Percona-XtraDB-Cluster-5.6.15-25.4","Percona-XtraDB-Cluster-5.6.15-25.5","Percona-XtraDB-Cluster-5.6.19-25.6","Percona-XtraDB-Cluster-5.6.20-25.7","Percona-XtraDB-Cluster-5.6.24-25.11","clone-5.1.0-build","clone-5.1.31-pv-0.2.0-build","clone-5.1.4-build","clone-5.4.0-build","clone-5.6.3-m5-build","clone-5.6.3-m6-build","last-PS-5.5-as-patches","mariadb-10.1.0","mariadb-10.1.10","mariadb-10.1.11","mariadb-10.1.12","mariadb-10.1.13","mariadb-10.1.14","mariadb-10.1.15","mariadb-10.1.16","mariadb-10.1.17","mariadb-10.1.18","mariadb-10.1.19","mariadb-10.1.2","mariadb-10.1.20","mariadb-10.1.3","mariadb-10.1.4","mariadb-10.1.5","mariadb-10.1.6","mariadb-10.1.7","mariadb-10.1.8","mariadb-10.1.9","mysql-3.23.22-beta","mysql-3.23.28-gamma","mysql-3.23.30-gamma","mysql-3.23.31","mysql-3.23.32","mysql-3.23.33","mysql-3.23.36","mysql-4.0.2","mysql-4.0.4","mysql-5.1.4","mysql-5.5.15","mysql-5.5.19","mysql-5.5.23","mysql-5.5.25","mysql-5.5.27","mysql-5.5.44","mysql-5.5.47","mysql-5.5.49","mysql-5.5.51","mysql-5.6.32","mysql-5.7.14","mysql_4.0","mysqlsummit-0.2.0","mysqlsummit-0.2.0-build","mysqlsummit-0.2.1","mysqlsummit-0.2.1-build","pre-null-merge","pxc_5.6.25-25.12-3.12"],"database_specific":{"vanir_signatures_modified":"2026-04-11T05:00:41Z","vanir_signatures":[{"id":"CVE-2016-6664-2235861b","target":{"function":"wsrep_calc_row_hash","file":"storage/xtradb/handler/ha_innodb.cc"},"source":"https://github.com/mariadb/server/commit/5fc1ba604e27b7d9eaa2977ef5b0c180f6f62565","signature_type":"Function","signature_version":"v1","digest":{"function_hash":"326577626690167958606778565745841641029","length":1075},"deprecated":false},{"id":"CVE-2016-6664-76d7bb16","target":{"function":"wsrep_store_key_val_for_row","file":"storage/xtradb/handler/ha_innodb.cc"},"digest":{"length":4678,"function_hash":"175766638502419520218478376205151830061"},"signature_type":"Function","deprecated":false,"source":"https://github.com/mariadb/server/commit/5fc1ba604e27b7d9eaa2977ef5b0c180f6f62565","signature_version":"v1"},{"id":"CVE-2016-6664-d7841ca0","target":{"file":"storage/xtradb/handler/ha_innodb.cc"},"digest":{"threshold":0.9,"line_hashes":["333910009814716899599761924093289489726","161392224999518567510718607174078569010","161097539754424727880941917296259394470","86950865214847603434991963376525204394","149603238303571009756227611135528613560","246754121958178494555659751381354980297","112180117738318881565344278433296106535","56934855970519006216491266214889014278","177233899003535037117533813868483428969","91781135331166554714959393998795539181","231826346572631787101747650932251996807","120129231197026531763378830534168927209","78750874032296690609296176761798461946","37466225183381131843040316628502534513","73966958620296014639090697993023755838","302517151867660583156292446738041253690","320251111942484271165771358375346713457","137617643939518963627606737565894291194"]},"signature_type":"Line","deprecated":false,"source":"https://github.com/mariadb/server/commit/5fc1ba604e27b7d9eaa2977ef5b0c180f6f62565","signature_version":"v1"}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-6664.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}