Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 11 | mariadb-10.5 | 1:10.5.9-1 | — |
| Debian 9 | mariadb-10.1 | 10.1.48-0+deb9u2 | DLA-2605-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | mariadb-10.1 | No fix yet | — |
| Ubuntu 16.04 LTS | percona-server-5.6 | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | Judy +1 | 1.0.5-18.module+el8+2765+cfa4f87b | RHSA-2021:1242 |
| RHEL 8 | asio +1 | 1.10.8-7.module+el8+2765+cfa4f87b | RHSA-2021:1242 |
| RHEL 8 | galera | 25.3.32-1.module+el8.3.0+10472+7adc332a | RHSA-2021:1242 |
| RHEL 8 | mariadb +12 | 3:10.3.28-1.module+el8.3.0+10472+7adc332a | RHSA-2021:1242 |
| RHEL 3 | rh-mariadb103-galera | 25.3.32-2.el7 | RHSA-2021:2040 |
| RHEL 3 | rh-mariadb103-mariadb +18 | 3:10.3.28-2.el7 | RHSA-2021:2040 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.2 EUS | Judy +1 | 1.0.5-18.module+el8+2765+cfa4f87b | RHSA-2021:1240 |
| RHEL 8.2 EUS | asio +1 | 1.10.8-7.module+el8+2765+cfa4f87b | RHSA-2021:1240 |
| RHEL 8.2 EUS | galera | 25.3.32-1.module+el8.2.0+10474+c7510d9c | RHSA-2021:1240 |
| RHEL 8.2 EUS | mariadb +12 | 3:10.3.28-1.module+el8.2.0+10474+c7510d9c | RHSA-2021:1240 |
| RHEL 8.1 EUS | Judy +1 | 1.0.5-18.module+el8+2765+cfa4f87b | RHSA-2021:1241 |
| RHEL 8.1 EUS | asio +1 | 1.10.8-7.module+el8+2765+cfa4f87b | RHSA-2021:1241 |
| RHEL 8.1 EUS | galera | 25.3.32-1.module+el8.1.0+10475+47ea4373 | RHSA-2021:1241 |
| RHEL 8.1 EUS | mariadb +12 | 3:10.3.28-1.module+el8.1.0+10475+47ea4373 | RHSA-2021:1241 |
| Red Hat OpenStack 13 | mariadb +8 | 3:10.1.20-3.el7ost | RHSA-2021:1039 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | Judy +1 | 1.0.5-18.module_el8.3.0+2028+5e3224e9 | ALSA-2021:1242 |
| AlmaLinux 8 | asio-devel | 1.10.8-7.module_el8.6.0+2867+72759d2f | ALSA-2021:1242 |
| AlmaLinux 8 | galera | 25.3.32-1.module_el8.3.0+2177+7adc332a | ALSA-2021:1242 |
| AlmaLinux 8 | mariadb +12 | 3:10.3.28-1.module_el8.3.0+2177+7adc332a | ALSA-2021:1242 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | Judy | 1.0.5-18.module+el8.4.0+427+adf35707 | RLSA-2021:1242 |
| Rocky Linux 8 | asio | 1.10.8-7.module+el8.3.0+126+a7f7b5c5 | RLSA-2021:1242 |
| Rocky Linux 8 | galera | 25.3.32-1.module+el8.4.0+427+adf35707 | RLSA-2021:1242 |
| Rocky Linux 8 | mariadb | 3:10.3.28-1.module+el8.4.0+427+adf35707 | RLSA-2021:1242 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | mariadb | 10.5.11-3.3.1 | SUSE-SU-2021:2605-1 |
| SLES 15 SP2 | mariadb | 10.4.20-3.9.1 | SUSE-SU-2021:2616-1 |
| SLES 15 SP1 | mariadb | 10.2.39-3.40.1 | SUSE-SU-2021:2617-1 |
| SLES 15 SP1 | mariadb104 | 10.4.30-150100.3.5.10 | SUSE-RU-2023:3956-1 |
| SLES 15 SP1 | python-mysqlclient | 1.4.6-150100.3.3.7 | SUSE-RU-2023:3956-1 |
| SLES 15 | mariadb | 10.2.39-3.40.1 | SUSE-SU-2021:2617-1 |
| SLES 12 SP5 | lz4 | 1.8.0-3.5.2 | SUSE-RU-2023:4991-1 |
| SLES 12 SP5 | mariadb | 10.2.39-3.36.1 | SUSE-SU-2021:2634-1 |
| SLES 12 SP5 | mariadb-connector-c | 3.1.22-2.35.1 | SUSE-RU-2023:4991-1 |
| SLES 12 SP5 | mariadb104 | 10.4.30-8.5.46 | SUSE-RU-2023:4991-1 |
| SLES 12 SP5 | python-mysqlclient | 1.3.14-8.9.2 | SUSE-RU-2023:4991-1 |
Show 13 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP4 | mariadb | 10.2.39-3.36.1 | SUSE-SU-2021:2634-1 |
| SLES for SAP 15 SP1 | mariadb | 10.2.39-3.40.1 | SUSE-SU-2021:2617-1 |
| SLES for SAP 15 SP1 | mariadb104 | 10.4.30-150100.3.5.10 | SUSE-RU-2023:3956-1 |
| SLES for SAP 15 SP1 | python-mysqlclient | 1.4.6-150100.3.3.7 | SUSE-RU-2023:3956-1 |
| SLES for SAP 15 | mariadb | 10.2.39-3.40.1 | SUSE-SU-2021:2617-1 |
| SLES for SAP 12 SP5 | lz4 | 1.8.0-3.5.2 | SUSE-RU-2023:4991-1 |
| SLES for SAP 12 SP5 | mariadb | 10.2.39-3.36.1 | SUSE-SU-2021:2634-1 |
| SLES for SAP 12 SP5 | mariadb-connector-c | 3.1.22-2.35.1 | SUSE-RU-2023:4991-1 |
| SLES for SAP 12 SP5 | mariadb104 | 10.4.30-8.5.46 | SUSE-RU-2023:4991-1 |
| SLES for SAP 12 SP5 | python-mysqlclient | 1.3.14-8.9.2 | SUSE-RU-2023:4991-1 |
| SLES for SAP 12 SP4 | mariadb | 10.2.39-3.36.1 | SUSE-SU-2021:2634-1 |
| SLE HPC 15 SP1 | mariadb | 10.2.39-3.40.1 | SUSE-SU-2021:2617-1 |
| SLE HPC 15 SP1 | mariadb104 | 10.4.30-150100.3.5.10 | SUSE-RU-2023:3956-1 |
| SLE HPC 15 SP1 | python-mysqlclient | 1.4.6-150100.3.3.7 | SUSE-RU-2023:3956-1 |
| SLE HPC 15 | mariadb | 10.2.39-3.40.1 | SUSE-SU-2021:2617-1 |
| SUSE OpenStack Cloud Crowbar 9 | mariadb | 10.2.39-3.36.1 | SUSE-SU-2021:2634-1 |
| SUSE OpenStack Cloud 9 | mariadb | 10.2.39-3.36.1 | SUSE-SU-2021:2634-1 |
| SUSE Manager Server 4.0 | mariadb | 10.2.39-3.40.1 | SUSE-SU-2021:2617-1 |
| SUSE Manager Retail Branch Server 4.0 | mariadb | 10.2.39-3.40.1 | SUSE-SU-2021:2617-1 |
| SUSE Manager Proxy 4.0 | mariadb | 10.2.39-3.40.1 | SUSE-SU-2021:2617-1 |
| SUSE Enterprise Storage 6 | mariadb | 10.2.39-3.40.1 | SUSE-SU-2021:2617-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | mariadb | 10.6.5-3.1 | openSUSE-SU-2024:11648-1 |
| openSUSE Leap 15.3 | mariadb | 10.2.39-3.40.1 | openSUSE-SU-2021:2617-1, openSUSE-SU-2021:2616-1, openSUSE-SU-2021:2605-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | mariadb | 10.5.9-r0 | — |
| Alpine v3.23 | mariadb | 10.5.9-r0 | — |
| Alpine v3.22 | mariadb | 10.5.9-r0 | — |
| Alpine v3.21 | mariadb | 10.5.9-r0 | — |
| Alpine v3.20 | mariadb | 10.5.9-r0 | — |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | mariadb | 10.5.9-r0 | — |
| Alpine v3.18 | mariadb | 10.5.9-r0 | — |
| Alpine v3.17 | mariadb | 10.5.9-r0 | — |
| Alpine v3.16 | mariadb | 10.5.9-r0 | — |
| Alpine v3.15 | mariadb | 10.5.9-r0 | — |
| Alpine v3.14 | mariadb | 10.5.9-r0 | — |
| Alpine v3.13 | mariadb | 10.5.9-r0 | — |
| Alpine v3.12 | mariadb | 10.4.18-r0 | — |
| Alpine v3.11 | mariadb | 10.4.18-r0 | — |
| Alpine v3.10 | mariadb | 10.3.28-r0 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | Judy +1 | 1.0.5-18.0.1.module+el8.3.0+9616+7a81225f | ELSA-2021-1242 |
| Oracle Linux 8 | asio-devel | 1.10.8-7.module+el8.1.0+5402+691bd77e | ELSA-2021-1242 |
| Oracle Linux 8 | galera | 25.3.32-1.module+el8.3.0+20131+15c9d707 | ELSA-2021-1242 |
| Oracle Linux 8 | mariadb +12 | 3:10.3.28-1.module+el8.3.0+20131+15c9d707 | ELSA-2021-1242 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- MariaDB 10.2 - 'wsrep_provider' OS Command Execution EDB-49765 · local · Apr 14, 2021
GitHub 3 repositories
-
Al1ex/CVE-2021-27928 ★ 63 · Apr 15, 2021
CVE-2021-27928 MariaDB/MySQL-'wsrep provider' 命令注入漏洞
-
shamo0/CVE-2021-27928-POC ★ 1 · Dec 9, 2021
CVE-2021-27928-POC
-
LalieA/CVE-2021-27928 ★ 0 · Dec 14, 2022
A Proof of Concept for the CVE-2021-27928 flaw exploitation
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 23
- ALSA-2021:1242 Important: mariadb:10.3 and mariadb-devel:10.3 security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2021:2040 Red Hat Security Advisory: rh-mariadb103-mariadb and rh-mariadb103-galera security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2021:1241 Red Hat Security Advisory: mariadb:10.3 and mariadb-devel:10.3 security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2021:1242 Red Hat Security Advisory: mariadb:10.3 and mariadb-devel:10.3 security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2021:1240 Red Hat Security Advisory: mariadb:10.3 and mariadb-devel:10.3 security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2021:1039 Red Hat Security Advisory: mariadb security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- DLA-2605-1 mariadb-10.1 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2021:1242 Important: mariadb:10.3 and mariadb-devel:10.3 security update Rocky Linux Security Advisories · Feb 5, 2026
- SUSE-SU-2021:2616-1 Security update for mariadb SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:2616-1 Security update for mariadb SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-RU-2023:4991-1 Recommended update for mariadb104 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:2617-1 Security update for mariadb SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:2605-1 Security update for mariadb SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11648-1 libmariadbd-devel-10.6.5-3.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:2605-1 Security update for mariadb SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-RU-2023:3956-1 Recommended update for mariadb104 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:2634-1 Security update for mariadb SUSE / openSUSE Security Updates · Feb 4, 2026
- FSA-202302 Festo: Several vulnerabilities in FactoryViews CERT@VDE · Feb 2, 2026
- ICSA-26-027-02 Festo Didactic SE MES PC CISA ICS & IT advisories · Jan 27, 2026
- FSA-202402 Several Vulnerabilities in MES PC (Windows 10) CERT@VDE · Dec 8, 2025
- openSUSE-SU-2021:2617-1 Security update for mariadb SUSE / openSUSE Security Updates · May 7, 2025
- WID-SEC-2023-2463 MariaDB: Schwachstelle ermöglicht nicht spezifizierten Angriff BSI CERT-Bund (WID) · Sep 27, 2023
- ELSA-2021-1242 Important: mariadb:10.3 and mariadb-devel:10.3 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Apr 27, 2021
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/
- [debian-lts-announce] 20210323 [SECURITY] [DLA 2605-1] mariadb-10.1 security update mailing-list
- http://packetstormsecurity.com/files/162177/MariaDB-10.2-Command-Execution.html
- GLSA-202105-28 vendor-advisory