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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | mysql-8.0 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | mysql-8.0 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | mariadb-10.3 | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | mariadb-10.1 | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | mariadb-10.0 | Fix pending | ||
| Ubuntu 16.04 | mysql-5.7 | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | percona-server-5.6 | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | percona-xtradb-cluster-5.6 | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | mysql-5.5 | Fix pending | UBUNTU-CVE-2020-7221 | |
| Ubuntu 14.04 | mysql-5.6 | Fix pending | ||
| Ubuntu 14.04 | percona-xtradb-cluster-5.5 | Fix pending | ||
| Red Hat Enterprise Linux 8 | Judy | Not affected | ||
| Red Hat Enterprise Linux 8 | galera | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-backup | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-common | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-embedded | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-embedded-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-errmsg | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-gssapi-server | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-oqgraph-engine | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-pam | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-server | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-server-galera | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-server-utils | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-test | Not affected | ||
| Red Hat Enterprise Linux 7 | mariadb | Not affected | ||
| Red Hat Enterprise Linux 7 | mariadb-bench | Not affected | ||
| Red Hat Enterprise Linux 7 | mariadb-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | mariadb-embedded | Not affected | ||
| Red Hat Enterprise Linux 7 | mariadb-embedded-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | mariadb-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | mariadb-server | Not affected | ||
| Red Hat Enterprise Linux 7 | mariadb-test | Not affected |
References
- https://seclists.org/oss-sec/2020/q1/55
- https://bugzilla.suse.com/show_bug.cgi?id=1160868
- https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618
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.