CVE-2016-6664
HIGHOracle MySQL, MariaDB, Percona Server, Percona XtraDB Cluster - Privilege Escalation via Symlink Attack
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2016-6664. PoCs published by Dawid Golunski.
AI-analyzed exploit summary This exploit leverages unsafe error log handling in MySQL/MariaDB/PerconaDB to escalate privileges from the mysql user to root by manipulating the error log file to create a symlink to /etc/ld.so.preload and injecting a shared library that sets SUID permissions on a backdoor shell.
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.
Exploits (1)
This exploit leverages unsafe error log handling in MySQL/MariaDB/PerconaDB to escalate privileges from the mysql user to root by manipulating the error log file to create a symlink to /etc/ld.so.preload and injecting a shared library that sets SUID permissions on a backdoor shell.
References (15)
Scores
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H