Command Injection in MariaDB - CVE-2021-27928

 

Command Injection in MariaDB - CVE-2021-27928

Published: March 23, 2021 / Updated: December 15, 2022


Vulnerability identifier: #VU51645
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-27928
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary commands on the target system.

The vulnerability exists due to improper input validation in the "wsrep_provider" and "wsrep_notify_cmd" parameters. A remote attacker can pass specially crafted data to the application and execute arbitrary commands on the target system.


Affected software

MariaDB
Gentoo Linux
Anolis OS
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat CodeReady Linux Builder for ARM 64 - Extended Update Support
Red Hat CodeReady Linux Builder for Power, little endian - Extended Update Support
Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Server
SUSE Linux Enterprise Module for Server Applications
openEuler
Red Hat Software Collections
PowerVC
Red Hat OpenStack
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
rh-mariadb103-mariadb (Red Hat package)
rh-mariadb103-galera (Red Hat package)
Judy
mariadb (Red Hat package)
mariadb-tools-debuginfo
mariadb-errormessages
mariadb-tools
mariadb-galera
mariadb-debugsource
mariadb-debuginfo
mariadb-client-debuginfo
mariadb-client
mariadb
mariadb-test
mariadb-errmessage
mariadb-embedded-devel
mariadb-backup
mariadb-server-galera
mariadb-devel
mariadb-server
mariadb-gssapi-server
mariadb-embedded
mariadb-oqgraph-engine
mariadb-cracklib
mariadb-common
mariadb-errmsg
mariadb-server-utils
galera

How to mitigate CVE-2021-27928

Install updates from vendor's website.

MariaDB - addressed in versions 10.2.37, 10.3.28, 10.4.18, 10.5.9
rh-mariadb103-mariadb (Red Hat package) - update to 10.3.28-2.el7
rh-mariadb103-galera (Red Hat package) - update to 25.3.32-2.el7
Judy - update to 1.0.5-18
mariadb (Red Hat package) - update to 10.1.20-3.el7ost
mariadb-tools-debuginfo - update to 10.2.39-3.36.1
mariadb-errormessages - update to 10.2.39-3.36.1
mariadb-tools - update to 10.2.39-3.36.1
mariadb-galera - update to 10.2.39-3.36.1
mariadb-debugsource - update to 10.2.39-3.36.1
mariadb-debuginfo - update to 10.2.39-3.36.1
mariadb-client-debuginfo - update to 10.2.39-3.36.1
mariadb-client - update to 10.2.39-3.36.1
mariadb - update to 10.2.39-3.36.1
mariadb-debugsource - update to 10.3.9-11
mariadb-test - update to 10.3.9-11
mariadb-errmessage - update to 10.3.9-11
mariadb-embedded-devel - update to 10.3.9-11
mariadb-debuginfo - update to 10.3.9-11
mariadb-backup - update to 10.3.9-11
mariadb-server-galera - update to 10.3.9-11
mariadb-devel - update to 10.3.9-11
mariadb-server - update to 10.3.9-11
mariadb-gssapi-server - update to 10.3.9-11
mariadb-embedded - update to 10.3.9-11
mariadb-oqgraph-engine - update to 10.3.9-11
mariadb-cracklib - update to 10.3.9-11
mariadb-common - update to 10.3.9-11
mariadb - update to 10.3.9-11
mariadb-gssapi-server - update to 10.3.28-1
mariadb-embedded-devel - update to 10.3.28-1
mariadb-errmsg - update to 10.3.28-1
mariadb-test - update to 10.3.28-1
mariadb-oqgraph-engine - update to 10.3.28-1
mariadb-server - update to 10.3.28-1
mariadb-server-galera - update to 10.3.28-1
mariadb-server-utils - update to 10.3.28-1
mariadb-embedded - update to 10.3.28-1
mariadb-devel - update to 10.3.28-1
mariadb-common - update to 10.3.28-1
mariadb-backup - update to 10.3.28-1
mariadb - update to 10.3.28-1
Red Hat OpenStack - update to 13.0
galera - update to 25.3.32-1

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins