CVE-2020-7221

NameCVE-2020-7221
Descriptionmysql_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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severityhigh

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
mariadb-10.1 (PTS)stretch10.1.44-0+deb9u1fixed
stretch (security)10.1.37-0+deb9u1fixed
mariadb-10.3 (PTS)buster1:10.3.22-0+deb10u1fixed
bullseye, sid1:10.3.23-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
mariadb-10.1source(unstable)(not affected)
mariadb-10.3source(unstable)(not affected)

Notes

- mariadb-10.3 <not-affected> (Only affects MariaDB 10.4.7 through 10.4.11)
- mariadb-10.1 <not-affected> (Only affects MariaDB 10.4.7 through 10.4.11)

Search for package or bug name: Reporting problems