Permissions, Privileges, and Access Controls in MariaDB - CVE-2020-7221

 

Permissions, Privileges, and Access Controls in MariaDB - CVE-2020-7221

Published: February 5, 2020


Vulnerability identifier: #VU24937
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2020-7221
CWE-ID: CWE-264
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Debian
Affected software:
MariaDB

Detailed vulnerability description

The vulnerability allows a remote user to escalate privileges on the system.

The vulnerability exists in the "mysql_install_db" script due to "chown" and "chmod" are performed unsafely, as demonstrated by a symlink attack on a chmod 04755 of auth_pam_tool_dir/auth_pam_tool. A remote user can gain root privileges on the target system.

Note: This vulnerability does not affect the Oracle MySQL product, which implements mysql_install_db differently.


How to mitigate CVE-2020-7221

Install updates from vendor's website.

Sources