{"id":"CVE-2020-7221","aliases":["CVE-2020-7221","BIT-MARIADB-2020-7221","BIT-MARIADB-MIN-2020-7221","BIT-MYSQL-CLIENT-2020-7221"],"related":[],"kind":"vulnerability","state":"published","title":"mysqlinstalldb in MariaDB 10.4.7 through 10.4.11 allows privilege escalation from the mysql user account to root because chown and chmod ar…","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"mysql_install_db en MariaDB versiones 10.4.7 hasta 10.4.11, permite una escalada de privilegios de la cuenta de usuario mysql a root porque chown y chmod se realizan de forma no segura, como es demostrado por un ataque de tipo symlink  en un chmod 04755 de auth_pam_tool_dir/auth_pam_tool. NOTA: esto no afecta el producto Oracle MySQL, que implementa mysql_install_db de manera diferente.","source":"nvd"}],"published":"2020-02-04T16:57:00.000Z","modified":"2026-09-08T08:48:23.979Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","score":7.2,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-59"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","introduced":"10.4.7","lastAffected":"10.4.11"}],"vendor":"mariadb","product":"mariadb","cpe":"cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"10.4.7","status":"affected","fixed":"10.4.12"}],"ecosystem":"Bitnami","package":"mariadb","purl":"pkg:bitnami/mariadb","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"10.4.7","status":"affected","lastAffected":"10.4.11"}],"ecosystem":"Bitnami","package":"mariadb-min","purl":"pkg:bitnami/mariadb-min","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"10.4.7","status":"affected","fixed":"10.4.12"}],"ecosystem":"Bitnami","package":"mysql-client","purl":"pkg:bitnami/mysql-client","source":"bitnami"}],"references":[{"url":"https://seclists.org/oss-sec/2020/q1/55","tags":["advisory","exploit","mailing-list","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1160868","tags":["advisory","exploit","issue-tracking","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618","tags":["advisory","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7221","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-7221","url":"https://www.cve.org/CVERecord?id=CVE-2020-7221","licence":"CVE Terms of Use","modified":"2024-08-04T09:25:48.582Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-7221","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7221","licence":"Public domain","modified":"2026-06-17T03:24:32.340Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MARIADB-2020-7221","url":"https://osv.dev/vulnerability/BIT-MARIADB-2020-7221","licence":"Apache-2.0","modified":"2026-09-08T08:48:23.979Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MARIADB-MIN-2020-7221","url":"https://osv.dev/vulnerability/BIT-MARIADB-MIN-2020-7221","licence":"Apache-2.0","modified":"2026-09-08T08:48:09.732Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MYSQL-CLIENT-2020-7221","url":"https://osv.dev/vulnerability/BIT-MYSQL-CLIENT-2020-7221","licence":"Apache-2.0","modified":"2026-09-08T08:48:15.807Z"}],"updatedAt":"2026-11-25T22:57:50.744Z","epss":{"score":0.0067,"percentile":0.53255,"date":"2026-12-01T12:00:22.000Z"}}