mysql_install_db in MariaDB 10.4.7 through 10.4.11 allows privilege escalation from the mysql user account to root because chown and chmod are performed unsafely, as demonstrated by a symlink attack on a chmod 04755 of auth_pam_tool_dir/auth_pam_tool. NOTE: this does not affect the Oracle MySQL product, which implements mysql_install_db differently.
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Mariadb | Mariadb | 10.4.7 (including) | 10.4.11 (including) |
Mariadb-10.0 | Ubuntu | esm-apps/xenial | * |
Mariadb-10.0 | Ubuntu | xenial | * |
Mariadb-5.5 | Ubuntu | trusty | * |
Mysql-5.5 | Ubuntu | esm-infra-legacy/trusty | * |
Mysql-5.5 | Ubuntu | precise/esm | * |
Mysql-5.5 | Ubuntu | trusty | * |
Mysql-5.5 | Ubuntu | trusty/esm | * |
Mysql-5.6 | Ubuntu | trusty | * |
Percona-xtradb-cluster-5.5 | Ubuntu | trusty | * |