CVEfocus › CVE database › CVE-2020-7221

CVE-2020-7221

CVSS 7.8 HighEPSS 0.7% (higher than 53% of CVEs)Published 2020-02-04Updated 2024-08-04Assigner: mitre

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.

What to do

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fix pending
31Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04mysql-8.0Not affected
vulnerable_code_not_present
Ubuntu 22.04mysql-8.0Not affected
vulnerable_code_not_present
Ubuntu 20.04mariadb-10.3Not affected
vulnerable_code_not_present
Ubuntu 18.04mariadb-10.1Not affected
vulnerable_code_not_present
Ubuntu 16.04mariadb-10.0Fix pending
Ubuntu 16.04mysql-5.7Not affected
vulnerable_code_not_present
Ubuntu 16.04percona-server-5.6Not affected
vulnerable_code_not_present
Ubuntu 16.04percona-xtradb-cluster-5.6Not affected
vulnerable_code_not_present
Ubuntu 14.04mysql-5.5Fix pendingUBUNTU-CVE-2020-7221
Ubuntu 14.04mysql-5.6Fix pending
Ubuntu 14.04percona-xtradb-cluster-5.5Fix pending
Red Hat Enterprise Linux 8JudyNot affected
Red Hat Enterprise Linux 8galeraNot affected
Red Hat Enterprise Linux 8mariadbNot affected
Red Hat Enterprise Linux 8mariadb-backupNot affected
Red Hat Enterprise Linux 8mariadb-commonNot affected
Red Hat Enterprise Linux 8mariadb-develNot affected
Red Hat Enterprise Linux 8mariadb-embeddedNot affected
Red Hat Enterprise Linux 8mariadb-embedded-develNot affected
Red Hat Enterprise Linux 8mariadb-errmsgNot affected
Red Hat Enterprise Linux 8mariadb-gssapi-serverNot affected
Red Hat Enterprise Linux 8mariadb-oqgraph-engineNot affected
Red Hat Enterprise Linux 8mariadb-pamNot affected
Red Hat Enterprise Linux 8mariadb-serverNot affected
Red Hat Enterprise Linux 8mariadb-server-galeraNot affected
Red Hat Enterprise Linux 8mariadb-server-utilsNot affected
Red Hat Enterprise Linux 8mariadb-testNot affected
Red Hat Enterprise Linux 7mariadbNot affected
Red Hat Enterprise Linux 7mariadb-benchNot affected
Red Hat Enterprise Linux 7mariadb-develNot affected
Red Hat Enterprise Linux 7mariadb-embeddedNot affected
Red Hat Enterprise Linux 7mariadb-embedded-develNot affected
Red Hat Enterprise Linux 7mariadb-libsNot affected
Red Hat Enterprise Linux 7mariadb-serverNot affected
Red Hat Enterprise Linux 7mariadb-testNot affected

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.