{"schema_version":"1.9.0","id":"BIT-mariadb-2020-7221","published":"2024-03-06T11:07:58.868Z","modified":"2026-09-08T08:48:23.979291611Z","aliases":["BIT-mariadb-min-2020-7221","BIT-mysql-client-2020-7221","CVE-2020-7221"],"details":"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.","affected":[{"package":{"name":"mariadb","ecosystem":"Bitnami","purl":"pkg:bitnami/mariadb"},"ranges":[{"type":"SEMVER","events":[{"introduced":"10.4.7"},{"fixed":"10.4.12"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/mariadb/BIT-mariadb-2020-7221.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}],"references":[{"type":"ADVISORY","url":"https://bugzilla.suse.com/show_bug.cgi?id=1160868"},{"type":"ADVISORY","url":"https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618"},{"type":"ADVISORY","url":"https://seclists.org/oss-sec/2020/q1/55"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7221"}],"database_specific":{"cpes":["cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*"],"severity":"High"}}