CVE-2020-7221

high

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.

References

https://seclists.org/oss-sec/2020/q1/55

https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618

https://bugzilla.suse.com/show_bug.cgi?id=1160868

Details

Source: Mitre, NVD

Published: 2020-02-04

Updated: 2021-07-21

Risk Information

CVSS v2

Base Score: 7.2

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

Severity: High

CVSS v3

Base Score: 7.8

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Severity: High