First published: Tue Feb 04 2020(Updated: )
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.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
MariaDB Server | >=10.4.7<=10.4.11 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2020-7221 is classified as a high severity vulnerability due to its potential for privilege escalation.
To mitigate CVE-2020-7221, upgrade to MariaDB version 10.4.12 or later, where the vulnerability has been addressed.
CVE-2020-7221 affects users of MariaDB versions 10.4.7 through 10.4.11 on systems utilizing the mysql_install_db script.
CVE-2020-7221 facilitates a symlink attack that allows privilege escalation from the mysql user to root.
CVE-2020-7221 specifically affects certain versions of MariaDB and does not impact Oracle MySQL.