CVE-2021-27928 in Debian Linux and 3 more products
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 exec...
Affects 4 products from 4 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, high privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 9.0 |
| Galeracluster | Wsrep | ≤ 2021-03-03 |
| Mariadb | Mariadb | ≥ 10.2, < 10.2.37 ≥ 10.3, < 10.3.28 ≥ 10.4, < 10.4.18 ≥ 10.5, < 10.5.9 |
| Percona | Percona Server | ≤ 2021-03-03 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official 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: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-27928 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-299267-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| Published | 2021-03-19 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-94: Code Injection
Attacker injects arbitrary code that is executed by the application process.
Related attack patterns (CAPEC)
CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-94
CAPEC-77 Manipulating User-Controlled Variables via CWE-94
CAPEC-242 Code Injection via CWE-94
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A remote code execution vulnerability in MariaDB and Percona Server allows a database SUPER user to execute OS commands by modifying wsrep_provider and wsrep_notify_cmd. This issue affects multiple versions of MariaDB and Percona Server, and has a CVSS score of 7.2, indicating a high severity. Public exploits are available, increasing the risk of exploitation in operational technology (OT) environments.
The vulnerability arises from an untrusted search path that leads to eval injection. A database SUPER user can manipulate the wsrep_provider and wsrep_notify_cmd parameters to execute arbitrary OS commands. This can lead to full system compromise if the database is running with elevated privileges. The attack can be performed remotely, and no user interaction is required.
Compensating controls AI-drafted, review before use
Implement strict access controls and least privilege for database users, especially those with SUPER user privileges. Monitor and log all changes to wsrep_provider and wsrep_notify_cmd parameters.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2021-27928?
A remote code execution vulnerability in MariaDB and Percona Server allows a database SUPER user to execute OS commands by modifying wsrep_provider and wsrep_notify_cmd. This issue affects multiple versions of MariaDB and Percona Server, and has a CVSS score of 7.2, indicating a high severity. Public exploits are available, increasing the risk of exploitation in operational technology (OT) environments.
What is the CVSS score for CVE-2021-27928?
CVE-2021-27928 has CVSS 7.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H. EPSS: 38.4%.
Is CVE-2021-27928 actively exploited?
Public exploit available for CVE-2021-27928. Exploitation risk elevated.
How do I remediate CVE-2021-27928?
Priority: IMMEDIATE. Advisory: https://jira.mariadb.org/browse/MDEV-25179 PSIRT: [email protected]
What systems are affected by CVE-2021-27928?
CVE-2021-27928 affects Debian Debian Linux; Galeracluster Wsrep; Mariadb Mariadb; Percona Percona Server.
What NERC-CIP standard applies to CVE-2021-27928?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 because it allows unauthorized access to the system through a database, which can lead to the execution of arbitrary commands and potential compromise of the control system.
What IEC 62443 requirement maps to CVE-2021-27928?
IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves a vulnerability that can be exploited to execute arbitrary code, which can compromise the integrity and availability of the control system.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.