Vulnerability record · CVE-2020-7221 · published 4 February 2020
CVE-2020-7221: Mariadb link following vulnerability
Mariadb · Mariadb
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.
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:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://bugzilla.suse.com/show_bug.cgi?id=1160868 | ExploitIssue TrackingThird Party Advisory |
| https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618 | Third Party Advisory |
| https://seclists.org/oss-sec/2020/q1/55 | ExploitMailing ListThird Party Advisory |
| https://bugzilla.suse.com/show_bug.cgi?id=1160868 | ExploitIssue TrackingThird Party Advisory |
| https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618 | Third Party Advisory |
| https://seclists.org/oss-sec/2020/q1/55 | ExploitMailing ListThird Party Advisory |
Track CVE-2020-7221 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2020-7221), CISA KEV, FIRST EPSS (scores of 2026-11-24). This page is refreshed as NVD updates the record.