CVE-2021-27928
mariadb: writable system variables allows a database user with SUPER privilege to execute arbitrary code as the system mysql user
Overview
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.
Source: OX vulnerability database
Severity
7.2 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-94
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | mariadb | >=10.2.0, <10.2.37>=10.3.0, <10.3.28>=10.4.0, <10.4.18>=10.5.0, <10.5.9 | 10.2.3710.3.2810.4.1810.5.9 |
| Bitnami | mariadb-min | >=10.2.0, <10.2.37>=10.3.0, <10.3.28>=10.4.0, <10.4.18>=10.5.0, <10.5.9 | 10.2.3710.3.2810.4.1810.5.9 |
| Bitnami | mysql-client | >=10.2.0, <10.2.37>=10.3.0, <10.3.28>=10.4.0, <10.4.18>=10.5.0, <10.5.9 | 10.2.3710.3.2810.4.1810.5.9 |
Open a package to see all its vulnerabilities.
Operating systems · 46 fixes
Oracle Linux 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | judy +1 | 1.0.5-18.0.1.module+el8.3.0+9616+7a81225f |
| 8 | asio-devel | 1.10.8-7.module+el8.1.0+5402+691bd77e |
| 8 | galera | 25.3.32-1.module+el8.3.0+20131+15c9d707 |
| 8 | mariadb +12 | 3:10.3.28-1.module+el8.3.0+20131+15c9d707 |
Red Hat 3 releases · 6 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | rh-mariadb103-galera | 0:25.3.32-2.el7 | RHSA-2021:2040 |
| 7 | mariadb +8 | 3:10.1.20-3.el7ost | RHSA-2021:1039 |
| 7 | rh-mariadb103-mariadb +18 | 3:10.3.28-2.el7 | RHSA-2021:2040 |
| 8 (mariadb-devel:10.3) | judy +1 | 0:1.0.5-18.module+el8+2765+cfa4f87b | RHSA-2021:1240 |
| 8 (mariadb-devel:10.3) | judy +1 | 0:1.0.5-18.module+el8+2765+cfa4f87b | RHSA-2021:1241 |
| 8 (mariadb-devel:10.3) | judy +1 | 0:1.0.5-18.module+el8+2765+cfa4f87b | RHSA-2021:1242 |
18 more rows
SUSE Linux Enterprise 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | mariadb +3 | 10.2.39-3.36.1 | SUSE-SU-2021:2634-1 |
alma 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (mariadb:10.5) | judy-devel | 1.0.5-18.module_el8.3.0+2028+5e3224e9 |
| 8 (mariadb:10.5) | judy | 1.0.5-18.module_el8.5.0+2632+14ced695 |
| 8 (mariadb:10.5) | asio-devel | 1.10.8-7.module_el8.6.0+2867+72759d2f |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | mariadb | 10.5.9-r0 |
| 3.23 | mariadb | 10.5.9-r0 |
| 3.24 | mariadb | 10.5.9-r0 |
| edge | mariadb | 10.5.9-r0 |
debian 3 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | mariadb-10-3 | 1:10.3.29-0+deb10u1 |
| 11 | mariadb-10-5 | 1:10.5.9-1 |
| 9 | mariadb-10-1 | 10.1.48-0+deb9u2 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libmariadbd-devel +9 | 10.6.5-3.1 | openSUSE-SU-2024:11648-1 |
rocky 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (mariadb:10.3) | judy | 1.0.5-18.module+el8.4.0+427+adf35707 |
| 8 (mariadb:10.3) | galera | 25.3.32-1.module+el8.4.0+427+adf35707 |
| 8 (mariadb:10.3) | mariadb +12 | 3:10.3.28-1.module+el8.4.0+427+adf35707 |
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-mariadb-10-5 | 1:10.5.9-1 |
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| percona-server-26-7 +8 | not affected |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| percona-server-8-4 +1 | not affected |
References
- packetstormsecurity.com http://packetstormsecurity.com/files/162177/MariaDB-10.2-Command-Execution.html
- access.redhat.com https://access.redhat.com/errata/RHSA-2021:1242
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-27928
- bugzilla.redhat.com https://bugzilla.redhat.com/1940909
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1940909
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-27928
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2021-1242.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2021:1242
- jira.mariadb.org https://jira.mariadb.org/browse/MDEV-25179
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-27928.html
Show all 20 references
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2021-1242.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2021/03/msg00028.html
- mariadb.com https://mariadb.com/kb/en/mariadb-10237-release-notes/
- mariadb.com https://mariadb.com/kb/en/mariadb-10328-release-notes/
- mariadb.com https://mariadb.com/kb/en/mariadb-10418-release-notes/
- mariadb.com https://mariadb.com/kb/en/mariadb-1059-release-notes/
- mariadb.com https://mariadb.com/kb/en/security/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-27928
- security.gentoo.org https://security.gentoo.org/glsa/202105-28
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-27928
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.