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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (0.67%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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
- 7.8 HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 0.67% probability · 50th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-59
- Affected
- mariadb/mariadb
- Source
- cve@mitre.org
References
- https://bugzilla.suse.com/show_bug.cgi?id=1160868Exploit, Issue Tracking, Third Party Advisory
- https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618Third Party Advisory
- https://seclists.org/oss-sec/2020/q1/55Exploit, Mailing List, Third Party Advisory
- https://bugzilla.suse.com/show_bug.cgi?id=1160868Exploit, Issue Tracking, Third Party Advisory
- https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618Third Party Advisory
- https://seclists.org/oss-sec/2020/q1/55Exploit, Mailing List, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.