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.
References
Link Resource
https://bugzilla.suse.com/show_bug.cgi?id=1160868 Exploit Issue Tracking Third Party Advisory
https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618 Third Party Advisory
https://seclists.org/oss-sec/2020/q1/55 Exploit Mailing List Third Party Advisory
https://bugzilla.suse.com/show_bug.cgi?id=1160868 Exploit Issue Tracking Third Party Advisory
https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618 Third Party Advisory
https://seclists.org/oss-sec/2020/q1/55 Exploit Mailing List Third Party Advisory
Configurations

Configuration 1 (hide)

cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*

History

21 Nov 2024, 05:36

Type Values Removed Values Added
References () https://bugzilla.suse.com/show_bug.cgi?id=1160868 - Exploit, Issue Tracking, Third Party Advisory () https://bugzilla.suse.com/show_bug.cgi?id=1160868 - Exploit, Issue Tracking, Third Party Advisory
References () https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618 - Third Party Advisory () https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618 - Third Party Advisory
References () https://seclists.org/oss-sec/2020/q1/55 - Exploit, Mailing List, Third Party Advisory () https://seclists.org/oss-sec/2020/q1/55 - Exploit, Mailing List, Third Party Advisory

Information

Published : 2020-02-04 17:15

Updated : 2024-11-21 05:36


NVD link : CVE-2020-7221

Mitre link : CVE-2020-7221

CVE.ORG link : CVE-2020-7221


JSON object : View

Products Affected

mariadb

  • mariadb
CWE
CWE-59

Improper Link Resolution Before File Access ('Link Following')