Skip to content
OpenAdvisories
Unscored Public exploit CVE-2021-27928 EUVD-2021-14648GHSA-2q7x-w5q3-rjxc

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…

Published Mar 19, 2021 · Updated Aug 3, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
Debian 11 mariadb-10.5 1:10.5.9-1 —
Debian 9 mariadb-10.1 10.1.48-0+deb9u2 DLA-2605-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS mariadb-10.1 No fix yet —
Ubuntu 16.04 LTS percona-server-5.6 No fix yet —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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 ↗
ReleasePackageFixed inAdvisory
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 ↗
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

GitHub 3 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 23

References