cve.bz

CVE-2021-27928 Code Injection

7.2 highExploitEPSS 38%

High (7.2). EPSS 38% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.2 high
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
38% (unchanged from 38% a week ago; 38% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-27928 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-27928?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-27928?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-27928 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
mariadb:mariadbfrom 10.2 before 10.2.37
mariadb:mariadbfrom 10.3 before 10.3.28
mariadb:mariadbfrom 10.4 before 10.4.18
mariadb:mariadbfrom 10.5 before 10.5.9
percona:percona_serverthrough 2021-03-03
galeracluster:wsrepthrough 2021-03-03
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9mariadb-10.110.1.48-0+deb9u2DLA-2605-1
Debian11mariadb-10.51:10.5.9-1DEBIAN-CVE-2021-27928
Ubuntu16.04:LTSpercona-server-5.6no fix listedUBUNTU-CVE-2021-27928
Ubuntu18.04:LTSmariadb-10.1no fix listedUBUNTU-CVE-2021-27928
Red Hatenterprise_linux:8::appstreamJudy, Judy-debuginfo, Judy-debugsource0:1.0.5-18.module+el8+2765+cfa4f87bRHSA-2021:1242
Red Hatenterprise_linux:8::appstream, enterprise_linux:8::crbgalera, galera-debuginfo, galera-debugsource0:25.3.32-1.module+el8.3.0+10472+7adc332aRHSA-2021:1242
Red Hatenterprise_linux:8::appstream, enterprise_linux:8::crbmariadb, mariadb-test, mariadb-devel and 19 more3:10.3.28-1.module+el8.3.0+10472+7adc332aRHSA-2021:1242
Red Hatenterprise_linux:8::crbJudy, Judy-devel, Judy-debuginfo and 1 more0:1.0.5-18.module+el8+2765+cfa4f87bRHSA-2021:1242
Red Hatenterprise_linux:8::crbasio, asio-devel0:1.10.8-7.module+el8+2765+cfa4f87bRHSA-2021:1242
Red Hatopenstack:13::el7mariadb, mariadb-libs, mariadb-test and 7 more3:10.1.20-3.el7ostRHSA-2021:1039
Red Hatrhel_eus:8.1::appstreamJudy, Judy-debuginfo, Judy-debugsource0:1.0.5-18.module+el8+2765+cfa4f87bRHSA-2021:1241
Red Hatrhel_eus:8.1::appstream, rhel_eus:8.1::crbgalera, galera-debuginfo, galera-debugsource0:25.3.32-1.module+el8.1.0+10475+47ea4373RHSA-2021:1241
Red Hatrhel_eus:8.1::appstream, rhel_eus:8.1::crbmariadb, mariadb-test, mariadb-devel and 19 more3:10.3.28-1.module+el8.1.0+10475+47ea4373RHSA-2021:1241
Red Hatrhel_eus:8.1::crbJudy, Judy-devel, Judy-debuginfo and 1 more0:1.0.5-18.module+el8+2765+cfa4f87bRHSA-2021:1241
Red Hatrhel_eus:8.1::crbasio, asio-devel0:1.10.8-7.module+el8+2765+cfa4f87bRHSA-2021:1241
Red Hatrhel_eus:8.2::appstreamJudy, Judy-debuginfo, Judy-debugsource0:1.0.5-18.module+el8+2765+cfa4f87bRHSA-2021:1240
6 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 moremariadb10.2.39-3.40.1SUSE-SU-2021:2617-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1mariadb10410.4.30-150100.3.5.10SUSE-RU-2023:3956-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1python-mysqlclient1.4.6-150100.3.3.7SUSE-RU-2023:3956-1
SUSELinux Enterprise Module for Server Applications 15 SP2mariadb10.4.20-3.9.1SUSE-SU-2021:2616-1
SUSELinux Enterprise Module for Server Applications 15 SP3mariadb10.5.11-3.3.1SUSE-SU-2021:2605-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP4 and 3 moremariadb10.2.39-3.36.1SUSE-SU-2021:2634-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5lz41.8.0-3.5.2SUSE-RU-2023:4991-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5mariadb-connector-c3.1.22-2.35.1SUSE-RU-2023:4991-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5mariadb10410.4.30-8.5.46SUSE-RU-2023:4991-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5python-mysqlclient1.3.14-8.9.2SUSE-RU-2023:4991-1
openSUSELeap 15.3mariadb10.2.39-3.40.1openSUSE-SU-2021:2617-1
openSUSELeap 15.3mariadb10.4.20-3.9.1openSUSE-SU-2021:2616-1
openSUSELeap 15.3mariadb10.5.11-3.3.1openSUSE-SU-2021:2605-1
openSUSETumbleweedmariadb10.6.5-3.1openSUSE-SU-2024:11648-1
AlmaLinux8Judy1.0.5-18.module_el8.5.0+2632+14ced695ALSA-2021:1242
AlmaLinux8Judy1.0.5-18.module_el8.6.0+2761+593e5e59ALSA-2021:1242
AlmaLinux8Judy, Judy-devel1.0.5-18.module_el8.3.0+2028+5e3224e9ALSA-2021:1242
AlmaLinux8Judy, Judy-devel1.0.5-18.module_el8.6.0+2867+72759d2fALSA-2021:1242
AlmaLinux8Judy-devel1.0.5-18.module_el8.6.0+3072+3c630e87ALSA-2021:1242
AlmaLinux8asio-devel1.10.8-7.module_el8.6.0+2867+72759d2fALSA-2021:1242
AlmaLinux8asio-devel1.10.8-7.module_el8.6.0+3072+3c630e87ALSA-2021:1242
AlmaLinux8galera25.3.32-1.module_el8.3.0+2177+7adc332aALSA-2021:1242
AlmaLinux8mariadb, mariadb-test, mariadb-devel and 10 more3:10.3.28-1.module_el8.3.0+2177+7adc332aALSA-2021:1242
Rocky Linux8Judy0:1.0.5-18.module+el8.4.0+427+adf35707RLSA-2021:1242
Rocky Linux8asio0:1.10.8-7.module+el8.3.0+126+a7f7b5c5RLSA-2021:1242
Rocky Linux8asio0:1.10.8-7.module+el8.5.0+777+18007c86RLSA-2021:1242
Rocky Linux8galera0:25.3.32-1.module+el8.4.0+427+adf35707RLSA-2021:1242
Rocky Linux8mariadb3:10.3.28-1.module+el8.4.0+427+adf35707RLSA-2021:1242
Alpinev3.10mariadb10.3.28-r0ALPINE-CVE-2021-27928
Alpinev3.11, v3.12mariadb10.4.18-r0ALPINE-CVE-2021-27928
Alpinev3.13, v3.14, v3.15 and 9 moremariadb10.5.9-r0ALPINE-CVE-2021-27928

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Only users that have the SUPER privilege can exploit this flaw. To reduce your exposure, ensure user accounts with the SUPER privilege are protected with strong credentials, only allowed to connect locally and not shared with untrusted parties.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8mariadb:10.3-8030020210324132345.229f0a1cFixed 2021-04-19RHSA-2021:1242
Red Hat Enterprise Linux 8mariadb-devel:10.3-8030020210324132345.229f0a1cFixed 2021-04-19RHSA-2021:1242
Red Hat Enterprise Linux 8.1 Extended Update Supportmariadb:10.3-8010020210324132606.c27ad7f8Fixed 2021-04-19RHSA-2021:1241
Red Hat Enterprise Linux 8.1 Extended Update Supportmariadb-devel:10.3-8010020210324132606.c27ad7f8Fixed 2021-04-19RHSA-2021:1241
Red Hat Enterprise Linux 8.2 Extended Update Supportmariadb:10.3-8020020210324132420.4cda2c84Fixed 2021-04-19RHSA-2021:1240
Red Hat Enterprise Linux 8.2 Extended Update Supportmariadb-devel:10.3-8020020210324132420.4cda2c84Fixed 2021-04-19RHSA-2021:1240
Red Hat OpenStack Platform 13.0 (Queens)mariadb-3:10.1.20-3.el7ostFixed 2021-03-30RHSA-2021:1039
Red Hat OpenStack Platform 13.0 (Queens) for RHEL 7.6 EUSmariadb-3:10.1.20-3.el7ostFixed 2021-03-30RHSA-2021:1039
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-mariadb103-galera-0:25.3.32-2.el7Fixed 2021-05-19RHSA-2021:2040
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-mariadb103-mariadb-3:10.3.28-2.el7Fixed 2021-05-19RHSA-2021:2040
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-mariadb103-galera-0:25.3.32-2.el7Fixed 2021-05-19RHSA-2021:2040
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-mariadb103-mariadb-3:10.3.28-2.el7Fixed 2021-05-19RHSA-2021:2040
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-mariadb103-galera-0:25.3.32-2.el7Fixed 2021-05-19RHSA-2021:2040
Red Hat Enterprise Linux 6mysqlNot affected
Red Hat Enterprise Linux 7mariadbNot affected
Red Hat Enterprise Linux 8mariadb:10.5/mariadbNot affected
Red Hat Enterprise Linux 8mysql:8.0/mysqlNot affected
Red Hat Enterprise Linux 9mariadbNot affected
Red Hat Enterprise Linux 9mysqlNot affected
Red Hat Software Collectionsrh-mariadb105-mariadbNot affected
1 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-27928.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-027-02Festo Didactic SE MES PC2024-02-27Commercial Facilities, Communications, Critical Manufacturing, EnergyFesto Didactic SE MES PC shipped with Windows 10none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Public exploits

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON