CVE-2021-27928: MariaDB & Percona Server - Command Injection
- Cve: CVE-2021-27928
- Name: MariaDB & Percona Server - Command Injection
- 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.
- Impact: Super users can execute arbitrary OS commands, leading to full system compromise.
- Remediation: Update to MariaDB 10.2.37, 10.3.28, 10.4.18, 10.5.9 or later versions; also update Percona Server and wsrep patches to latest versions.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: admin_privileges
- Requirements: Attacker needs SUPER privileges and modification of wsrep_provider and wsrep_notify_cmd.
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.2
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.38179
- Epss percentile: 0.98584
- Assignee: [email protected]
- Published at: 2021-03-19T03:15:12Z
- Age in days: 2076
- Modified at: 2026-06-17T03:45:37Z
- Patch available: yes
- Public exploits total: 4
- References total: 9
- Products total: 4
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-27928
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
Public exploits
| Url | Source | Added date |
|---|---|---|
| http://packetstormsecurity.com/files/162177/MariaDB-10.2-Command-Execution.html | nvd | 2021-03-19 |
| https://github.com/LalieA/CVE-2021-27928 | poc-in-github | 2022-12-14 |
| https://github.com/shamo0/CVE-2021-27928-POC | poc-in-github | 2021-12-09 |
| https://github.com/Al1ex/CVE-2021-27928 | poc-in-github | 2021-04-15 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://jira.mariadb.org/browse/MDEV-25179 | Issue Tracking, Vendor Advisory |
| https://mariadb.com/kb/en/mariadb-10237-release-notes/ | Release Notes, Vendor Advisory |
| https://mariadb.com/kb/en/mariadb-10328-release-notes/ | Release Notes, Vendor Advisory |
| https://mariadb.com/kb/en/mariadb-10418-release-notes/ | Release Notes, Vendor Advisory |
| https://mariadb.com/kb/en/mariadb-1059-release-notes/ | Release Notes, Vendor Advisory |
| https://mariadb.com/kb/en/security/ | Vendor Advisory |
| http://packetstormsecurity.com/files/162177/MariaDB-10.2-Command-Execution.html | Exploit, Third Party Advisory, VDB Entry |
| https://lists.debian.org/debian-lts-announce/2021/03/msg00028.html | Mailing List, Third Party Advisory |
| https://security.gentoo.org/glsa/202105-28 | Third Party Advisory |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| mariadb:mariadb | >= 10.5, < 10.5.9; >= 10.4, < 10.4.18; >= 10.3, < 10.3.28; >= 10.2, < 10.2.37 | /v1/products/mariadb/mariadb |
| percona:percona_server | <= 2021-03-03 | /v1/products/percona/percona_server |
| galeracluster:wsrep | <= 2021-03-03 | /v1/products/galeracluster/wsrep |
| debian:debian_linux | = 9.0 | /v1/products/debian/debian_linux |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 4
- Public exploit first date: 2021-03-19
- Remote: yes
- Authentication required: yes
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports