Vulnerability Details : CVE-2020-7221
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.
Vulnerability category: Gain privilege
Products affected by CVE-2020-7221
- cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2020-7221
0.07%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 28 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2020-7221
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.2
|
HIGH | AV:L/AC:L/Au:N/C:C/I:C/A:C |
3.9
|
10.0
|
NIST | |
7.8
|
HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
1.8
|
5.9
|
NIST |
CWE ids for CVE-2020-7221
-
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.Assigned by: nvd@nist.gov (Primary)
References for CVE-2020-7221
-
https://bugzilla.suse.com/show_bug.cgi?id=1160868
Bug 1160868 – VUL-0: CVE-2020-7221: mariadb: auth_pam_tool runtime permission setting allows privilege escalation from mysql user to rootExploit;Issue Tracking;Third Party Advisory
-
https://seclists.org/oss-sec/2020/q1/55
oss-sec: CVE-2020-7221: mariadb: possible local mysql to root user exploit in mysql_install_db script setting permissions of /usr/lib64/mysql/plugin/auth_pam_tool_dir/auth_pam_toolExploit;Mailing List;Third Party Advisory
-
https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618
rpm/deb and auth_pam_tool_dir/auth_pam_tool · MariaDB/server@9d18b62 · GitHubThird Party Advisory
Jump to