### [CVE-2016-6664](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-6664) ![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue) ![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen) ### Description 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. ### POC #### Reference - http://legalhackers.com/advisories/MySQL-Maria-Percona-RootPrivEsc-CVE-2016-6664-5617-Exploit.html - http://packetstormsecurity.com/files/139491/MySQL-MariaDB-PerconaDB-Root-Privilege-Escalation.html - http://seclists.org/fulldisclosure/2016/Nov/4 - http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html - https://www.exploit-db.com/exploits/40679/ - https://www.percona.com/blog/2016/11/02/percona-responds-to-cve-2016-6663-and-cve-2016-6664/ #### Github - https://github.com/ARPSyndicate/cvemon - https://github.com/Live-Hack-CVE/CVE-2016-6664 - https://github.com/r0eXpeR/redteam_vul - https://github.com/retr0-13/cveScannerV2 - https://github.com/scmanjarrez/CVEScannerV2 - https://github.com/stevenharradine/mariadb-vulneribility-scanner-patcher-20161104 - https://github.com/superfish9/pt