What’s Vulnerable › Vulnerabilities
CVE-2020-7221
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2020-02-04 · updated 2026-06-17
- Weakness: CWE-59
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.
Affected products
- MariaDB: from 10.4.7 through 10.4.11
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
- https://seclists.org/oss-sec/2020/q1/55
Get alerted when CVE-2020-7221 or the next vulnerability affects your stack