{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2020-7221","published":"2020-02-04T17:15:13.233000Z","last_modified":"2026-06-17T03:24:32.340000Z","status":"Modified","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-59"],"cpes":[{"criteria":"cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*","part":"a","vendor":"mariadb","product":"mariadb","version_start_including":"10.4.7","version_end_including":"10.4.11"}],"cpes_truncated":false,"vendors":["mariadb"],"products":["mariadb/mariadb"],"epss":{"score":0.0067,"percentile":0.53255,"date":"2026-12-01","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2020-7221/","html_en":"/en/cve/CVE-2020-7221/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-7221","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-7221"},"untrusted":{"vendor_name":"Mariadb","product_name":"Mariadb","desc_en":"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":[],"references":[{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1160868","tags":["Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618","tags":["Third Party Advisory"]},{"url":"https://seclists.org/oss-sec/2020/q1/55","tags":["Exploit","Mailing List","Third Party Advisory"]}]}}