CVE-2021-27928
A remote code execution issue was discovered in MariaDB 10.2 before 10.2.37, 10.3 before 10.3.28, 10.4 before 10.4.18, and 10.5 before 10.5.9; Percona Server through 2021-03-03; and the wsrep patch through 2021-03-03 for MySQL. An untrusted search path leads to eval injection, in which a database SUPER user can execute OS commands after modifying wsrep_provider and wsrep_notify_cmd. NOTE: this does not affect an Oracle product.
What to do
Likely to be exploited: EPSS gives a 38% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux: see the table below for the fixed version per release.
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 20.04 | mariadb-10.3 | Fix pending | ||
| Ubuntu 18.04 | mariadb-10.1 | Fix pending | UBUNTU-CVE-2021-27928 | |
| Ubuntu 16.04 | percona-server-5.6 | Fix pending | UBUNTU-CVE-2021-27928 | |
| Red Hat Enterprise Linux 9 | mariadb | Not affected | ||
| Red Hat Enterprise Linux 9 | mariadb-backup | Not affected | ||
| Red Hat Enterprise Linux 9 | mariadb-common | Not affected | ||
| Red Hat Enterprise Linux 9 | mariadb-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | mariadb-embedded | Not affected | ||
| Red Hat Enterprise Linux 9 | mariadb-embedded-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | mariadb-errmsg | Not affected | ||
| Red Hat Enterprise Linux 9 | mariadb-gssapi-server | Not affected | ||
| Red Hat Enterprise Linux 9 | mariadb-oqgraph-engine | Not affected | ||
| Red Hat Enterprise Linux 9 | mariadb-pam | Not affected | ||
| Red Hat Enterprise Linux 9 | mariadb-server | Not affected | ||
| Red Hat Enterprise Linux 9 | mariadb-server-galera | Not affected | ||
| Red Hat Enterprise Linux 9 | mariadb-server-utils | Not affected | ||
| Red Hat Enterprise Linux 9 | mariadb-test | Not affected | ||
| Red Hat Enterprise Linux 9 | mysql | Not affected | ||
| Red Hat Enterprise Linux 9 | mysql-common | Not affected | ||
| Red Hat Enterprise Linux 9 | mysql-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | mysql-errmsg | Not affected | ||
| Red Hat Enterprise Linux 9 | mysql-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | mysql-server | Not affected | ||
| Red Hat Enterprise Linux 9 | mysql-test | Not affected | ||
| Red Hat Enterprise Linux 8 | Judy | Fixed | 0:1.0.5-18.module+el8+2765+cfa4f87b | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | Judy-devel | Fixed | 0:1.0.5-18.module+el8+2765+cfa4f87b | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | asio | Fixed | 0:1.10.8-7.module+el8+2765+cfa4f87b | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | asio-devel | Fixed | 0:1.10.8-7.module+el8+2765+cfa4f87b | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | galera | Fixed | 0:25.3.32-1.module+el8.3.0+10472+7adc332a | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | mariadb | Fixed | 3:10.3.28-1.module+el8.3.0+10472+7adc332a | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | mariadb-backup | Fixed | 3:10.3.28-1.module+el8.3.0+10472+7adc332a | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | mariadb-common | Fixed | 3:10.3.28-1.module+el8.3.0+10472+7adc332a | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | mariadb-devel | Fixed | 3:10.3.28-1.module+el8.3.0+10472+7adc332a | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | mariadb-embedded | Fixed | 3:10.3.28-1.module+el8.3.0+10472+7adc332a | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | mariadb-embedded-devel | Fixed | 3:10.3.28-1.module+el8.3.0+10472+7adc332a | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | mariadb-errmsg | Fixed | 3:10.3.28-1.module+el8.3.0+10472+7adc332a | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | mariadb-gssapi-server | Fixed | 3:10.3.28-1.module+el8.3.0+10472+7adc332a | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | mariadb-oqgraph-engine | Fixed | 3:10.3.28-1.module+el8.3.0+10472+7adc332a | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | mariadb-pam | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-server | Fixed | 3:10.3.28-1.module+el8.3.0+10472+7adc332a | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | mariadb-server-galera | Fixed | 3:10.3.28-1.module+el8.3.0+10472+7adc332a | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | mariadb-server-utils | Fixed | 3:10.3.28-1.module+el8.3.0+10472+7adc332a | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | mariadb-test | Fixed | 3:10.3.28-1.module+el8.3.0+10472+7adc332a | RHSA-2021:1242 |
| Red Hat Enterprise Linux 8 | mecab | Not affected | ||
| Red Hat Enterprise Linux 8 | mecab-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | mecab-ipadic | Not affected | ||
| Red Hat Enterprise Linux 8 | mecab-ipadic-EUCJP | Not affected | ||
| Red Hat Enterprise Linux 8 | mysql | Not affected | ||
| Red Hat Enterprise Linux 8 | mysql-common | Not affected | ||
| Red Hat Enterprise Linux 8 | mysql-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | mysql-errmsg | Not affected | ||
| Red Hat Enterprise Linux 8 | mysql-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | mysql-server | Not affected | ||
| Red Hat Enterprise Linux 8 | mysql-test | Not affected | ||
| Red Hat Enterprise Linux 8 | mysql-test-data | 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 | ||
| Red Hat Enterprise Linux 6 | mysql | Not affected | ||
| Red Hat Enterprise Linux 6 | mysql-bench | Not affected | ||
| Red Hat Enterprise Linux 6 | mysql-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | mysql-embedded | Not affected | ||
| Red Hat Enterprise Linux 6 | mysql-embedded-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | mysql-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | mysql-server | Not affected | ||
| Red Hat Enterprise Linux 6 | mysql-test | Not affected | ||
| AlmaLinux 8 | Judy | Fixed | 1.0.5-18.module_el8.5.0+2632+14ced695 | ALSA-2021:1242 |
| AlmaLinux 8 | Judy-devel | Fixed | 1.0.5-18.module_el8.3.0+2028+5e3224e9 | ALSA-2021:1242 |
| AlmaLinux 8 | asio-devel | Fixed | 1.10.8-7.module_el8.6.0+3072+3c630e87 | ALSA-2021:1242 |
| AlmaLinux 8 | galera | Fixed | 25.3.32-1.module_el8.3.0+2177+7adc332a | ALSA-2021:1242 |
| AlmaLinux 8 | mariadb | Fixed | 3:10.3.28-1.module_el8.3.0+2177+7adc332a | ALSA-2021:1242 |
| AlmaLinux 8 | mariadb-backup | Fixed | 3:10.3.28-1.module_el8.3.0+2177+7adc332a | ALSA-2021:1242 |
| AlmaLinux 8 | mariadb-common | Fixed | 3:10.3.28-1.module_el8.3.0+2177+7adc332a | ALSA-2021:1242 |
| AlmaLinux 8 | mariadb-devel | Fixed | 3:10.3.28-1.module_el8.3.0+2177+7adc332a | ALSA-2021:1242 |
| AlmaLinux 8 | mariadb-embedded | Fixed | 3:10.3.28-1.module_el8.3.0+2177+7adc332a | ALSA-2021:1242 |
| AlmaLinux 8 | mariadb-embedded-devel | Fixed | 3:10.3.28-1.module_el8.3.0+2177+7adc332a | ALSA-2021:1242 |
| AlmaLinux 8 | mariadb-errmsg | Fixed | 3:10.3.28-1.module_el8.3.0+2177+7adc332a | ALSA-2021:1242 |
| AlmaLinux 8 | mariadb-gssapi-server | Fixed | 3:10.3.28-1.module_el8.3.0+2177+7adc332a | ALSA-2021:1242 |
| AlmaLinux 8 | mariadb-oqgraph-engine | Fixed | 3:10.3.28-1.module_el8.3.0+2177+7adc332a | ALSA-2021:1242 |
| AlmaLinux 8 | mariadb-server | Fixed | 3:10.3.28-1.module_el8.3.0+2177+7adc332a | ALSA-2021:1242 |
| AlmaLinux 8 | mariadb-server-galera | Fixed | 3:10.3.28-1.module_el8.3.0+2177+7adc332a | ALSA-2021:1242 |
| AlmaLinux 8 | mariadb-server-utils | Fixed | 3:10.3.28-1.module_el8.3.0+2177+7adc332a | ALSA-2021:1242 |
| AlmaLinux 8 | mariadb-test | Fixed | 3:10.3.28-1.module_el8.3.0+2177+7adc332a | ALSA-2021:1242 |
| Rocky Linux 8 | Judy | Fixed | 0:1.0.5-18.module+el8.4.0+427+adf35707 | RLSA-2021:1242 |
| Rocky Linux 8 | asio | Fixed | 0:1.10.8-7.module+el8.5.0+777+18007c86 | RLSA-2021:1242 |
| Rocky Linux 8 | galera | Fixed | 0:25.3.32-1.module+el8.4.0+427+adf35707 | RLSA-2021:1242 |
| Rocky Linux 8 | mariadb | Fixed | 3:10.3.28-1.module+el8.4.0+427+adf35707 | RLSA-2021:1242 |
| Alpine Linux 3.24 | mariadb | Fixed | 10.5.9-r0 | ALPINE-CVE-2021-27928 |
| Alpine Linux 3.23 | mariadb | Fixed | 10.5.9-r0 | ALPINE-CVE-2021-27928 |
| Alpine Linux 3.22 | mariadb | Fixed | 10.5.9-r0 | ALPINE-CVE-2021-27928 |
| Alpine Linux 3.21 | mariadb | Fixed | 10.5.9-r0 | ALPINE-CVE-2021-27928 |
| Alpine Linux 3.20 | mariadb | Fixed | 10.5.9-r0 | ALPINE-CVE-2021-27928 |
| Alpine Linux 3.19 | mariadb | Fixed | 10.5.9-r0 | ALPINE-CVE-2021-27928 |
| Alpine Linux 3.18 | mariadb | Fixed | 10.5.9-r0 | ALPINE-CVE-2021-27928 |
| Alpine Linux 3.17 | mariadb | Fixed | 10.5.9-r0 | ALPINE-CVE-2021-27928 |
| Alpine Linux 3.16 | mariadb | Fixed | 10.5.9-r0 | ALPINE-CVE-2021-27928 |
| Alpine Linux 3.15 | mariadb | Fixed | 10.5.9-r0 | ALPINE-CVE-2021-27928 |
| Alpine Linux 3.14 | mariadb | Fixed | 10.5.9-r0 | ALPINE-CVE-2021-27928 |
| Alpine Linux 3.13 | mariadb | Fixed | 10.5.9-r0 | ALPINE-CVE-2021-27928 |
| Alpine Linux 3.12 | mariadb | Fixed | 10.4.18-r0 | ALPINE-CVE-2021-27928 |
| Alpine Linux 3.11 | mariadb | Fixed | 10.4.18-r0 | ALPINE-CVE-2021-27928 |
| Alpine Linux 3.10 | mariadb | Fixed | 10.3.28-r0 | ALPINE-CVE-2021-27928 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://security.gentoo.org/glsa/202105-28 (vendor-advisory)
References
- https://mariadb.com/kb/en/security/
- https://jira.mariadb.org/browse/MDEV-25179
- https://mariadb.com/kb/en/mariadb-10237-release-notes/
- https://mariadb.com/kb/en/mariadb-10328-release-notes/
- https://mariadb.com/kb/en/mariadb-10418-release-notes/
- https://mariadb.com/kb/en/mariadb-1059-release-notes/
- https://lists.debian.org/debian-lts-announce/2021/03/msg00028.html
- http://packetstormsecurity.com/files/162177/MariaDB-10.2-Command-Execution.html
- https://security.gentoo.org/glsa/202105-28
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.