{"cve":"CVE-2020-7221","nvd":{"published":"2020-02-04T17:15:13.233","modified":"2026-06-17T03:24:32.340","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-59"],"references":["https://bugzilla.suse.com/show_bug.cgi?id=1160868","https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618","https://seclists.org/oss-sec/2020/q1/55","https://bugzilla.suse.com/show_bug.cgi?id=1160868","https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618"],"products":["mariadb:mariadb"],"source":"nvd","synced_at":"2026-10-19T21:02:53.949909883+00:00"},"epss":{"cve":"CVE-2020-7221","score":0.0067,"percentile":0.51999,"date":"2026-10-31"},"kev":null,"osv":[],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}