CVE-2021-27928

HIGH LAB

MariaDB <10.2.37, 10.3.28, 10.4.18, 10.5.9 - RCE

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 5 public exploits for CVE-2021-27928. PoCs published by Central InfoSec, Al1ex, shamo0.

AI-analyzed exploit summary This exploit leverages a vulnerability in MariaDB/MySQL's wsrep_provider configuration to execute arbitrary OS commands by loading a malicious shared object file. The PoC generates a reverse shell payload using msfvenom and triggers execution via a MySQL query.

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.

Exploits (5)

exploitdb WORKING POC
by Central InfoSec · textlocallinux
https://www.exploit-db.com/exploits/49765

This exploit leverages a vulnerability in MariaDB/MySQL's wsrep_provider configuration to execute arbitrary OS commands by loading a malicious shared object file. The PoC generates a reverse shell payload using msfvenom and triggers execution via a MySQL query.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: MariaDB 10.2 before 10.2.37, 10.3 before 10.3.28, 10.4 before 10.4.18, 10.5 before 10.5.9; Percona Server through 2021-03-03; and the wsrep patch through 2021-03-03 for MySQL
Auth required
Prerequisites: Valid MySQL/MariaDB credentials · Ability to transfer files to the target system · Network access to the target MySQL/MariaDB server
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 63 stars
by Al1ex · poc
https://github.com/Al1ex/CVE-2021-27928

This PoC demonstrates OS command execution in MariaDB/MySQL via the 'wsrep_provider' parameter by loading a malicious shared object file. It requires a reverse shell payload generated with msfvenom and execution via MySQL commands.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: MariaDB 10.2 before 10.2.37, 10.3 before 10.3.28, 10.4 before 10.4.18, 10.5 before 10.5.9; Percona Server through 2021-03-03; wsrep patch for MySQL through 2021-03-03
Auth required
Prerequisites: Valid MySQL/MariaDB credentials · Ability to transfer payload to target · Network access to target MySQL/MariaDB server
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by shamo0 · poc
https://github.com/shamo0/CVE-2021-27928-POC

This PoC demonstrates a remote code execution vulnerability in MariaDB and Percona Server by leveraging an untrusted search path to execute arbitrary OS commands via modified wsrep_provider and wsrep_notify_cmd settings. The exploit involves uploading a malicious shared object file and triggering its execution through database configuration changes.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: MariaDB (10.2 before 10.2.37, 10.3 before 10.3.28, 10.4 before 10.4.18, 10.5 before 10.5.9), Percona Server (through 2021-03-03), wsrep patch (through 2021-03-03) for MySQL
Auth required
Prerequisites: Database SUPER user privileges · Ability to upload files to the target system · Network access to the target database
devstral-2 · analyzed Feb 16, 2026 Full analysis →
gitlab WORKING POC
by hatimmouline2014 · poc
https://gitlab.com/hatimmouline2014/cve-2021-27928

This repository provides a Dockerized environment for exploiting CVE-2021-27928, a vulnerability in MariaDB. It sets up a vulnerable MariaDB instance and installs Metasploit for exploitation.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: MariaDB 10.5.7
No auth needed
Prerequisites: Docker environment · Internet access to download MariaDB and Metasploit
devstral-2 · analyzed Feb 23, 2026 Full analysis →
nomisec WORKING POC
by LalieA · poc
https://github.com/LalieA/CVE-2021-27928

This repository provides a proof-of-concept exploit for CVE-2021-27928, which allows OS command execution in MariaDB/MySQL via the `wsrep_provider` and `wsrep_notify_cmd` system variables. The exploit uses a reverse shell payload generated with `msfvenom` and leverages Docker for a controlled environment.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: MariaDB 10.2 before 10.2.37, 10.3 before 10.3.28, 10.4 before 10.4.18, 10.5 before 10.5.9; Percona Server through 2021-03-03; wsrep patch through 2021-03-03 for MySQL
Auth required
Prerequisites: Docker · msfvenom · openssh-client · mariadb · database super privileges
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (9)

Core 9
Core References
Issue Tracking, Vendor Advisory x_refsource_misc
https://jira.mariadb.org/browse/MDEV-25179
Release Notes, Vendor Advisory x_refsource_misc
https://mariadb.com/kb/en/mariadb-10237-release-notes/
Release Notes, Vendor Advisory x_refsource_misc
https://mariadb.com/kb/en/mariadb-10328-release-notes/
Release Notes, Vendor Advisory x_refsource_misc
https://mariadb.com/kb/en/mariadb-10418-release-notes/
Release Notes, Vendor Advisory x_refsource_misc
https://mariadb.com/kb/en/mariadb-1059-release-notes/
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2021/03/msg00028.html
Exploit, Third Party Advisory, VDB Entry x_refsource_misc
http://packetstormsecurity.com/files/162177/MariaDB-10.2-Command-Execution.html
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/202105-28
Vendor Advisory x_refsource_misc
https://mariadb.com/kb/en/security/

Scores

CVSS v3 7.2
EPSS 0.4895
EPSS Percentile 97.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-94
Status published
Products (4)
debian/debian_linux 9.0
galeracluster/wsrep < 2021-03-03
mariadb/mariadb 10.2 - 10.2.37
percona/percona_server < 2021-03-03
Published Mar 19, 2021
Tracked Since Feb 18, 2026