What’s Vulnerable › Vulnerabilities
CVE-2021-27928
- Severity: high (CVSS 7.2 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 38.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-03-19 · updated 2026-06-17
- Weakness: CWE-94
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.
Affected products
- Debian Linux: 9.0
- Galeracluster Wsrep: through 2021-03-03
- MariaDB: from 10.2 before 10.2.37; from 10.3 before 10.3.28; from 10.4 before 10.4.18; from 10.5 before 10.5.9 — fixed in 10.2.37, 10.3.28, 10.4.18, 10.5.9
- Percona Server: through 2021-03-03
How to fix
Upgrade to a fixed version: MariaDB 10.2.37, 10.3.28, 10.4.18, 10.5.9. Check the vendor advisory for mitigations.
References
- http://packetstormsecurity.com/files/162177/MariaDB-10.2-Command-Execution.html
- https://jira.mariadb.org/browse/MDEV-25179
- https://lists.debian.org/debian-lts-announce/2021/03/msg00028.html
- 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/
- https://mariadb.com/kb/en/security/
- https://security.gentoo.org/glsa/202105-28
- http://packetstormsecurity.com/files/162177/MariaDB-10.2-Command-Execution.html
- https://jira.mariadb.org/browse/MDEV-25179
- https://lists.debian.org/debian-lts-announce/2021/03/msg00028.html
Get alerted when CVE-2021-27928 or the next vulnerability affects your stack