The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-27928

CVE-2021-27928: MariaDB RCE Vulnerability

CVE-2021-27928 is a remote code execution vulnerability in MariaDB that allows database SUPER users to execute OS commands through untrusted search path exploitation. This article covers technical details, affected versions, and mitigations.

Published: February 25, 2026

CVE-2021-27928 Overview

A remote code execution vulnerability was discovered in MariaDB that allows an attacker with SUPER user privileges to execute arbitrary operating system commands. The flaw exists due to an untrusted search path that leads to eval injection when a database SUPER user modifies the wsrep_provider and wsrep_notify_cmd configuration parameters. This vulnerability affects multiple versions of MariaDB, Percona Server, and the wsrep patch for MySQL.

Critical Impact

Attackers with database SUPER privileges can achieve full remote code execution on the underlying operating system, potentially leading to complete system compromise.

Affected Products

  • MariaDB 10.2 before 10.2.37
  • MariaDB 10.3 before 10.3.28
  • MariaDB 10.4 before 10.4.18
  • MariaDB 10.5 before 10.5.9
  • Percona Server through 2021-03-03
  • wsrep patch for MySQL through 2021-03-03
  • Debian Linux 9.0

Discovery Timeline

  • 2021-03-19 - CVE-2021-27928 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-27928

Vulnerability Analysis

This vulnerability is classified as CWE-94 (Code Injection) and enables authenticated attackers to break out of the database context and execute commands at the operating system level. The flaw stems from insufficient validation of the wsrep_provider and wsrep_notify_cmd system variables within MariaDB's Galera Cluster replication implementation. When a user with SUPER privileges modifies these configuration parameters, the database server evaluates and executes the provided paths without proper sanitization, allowing arbitrary command injection.

The attack requires network access and high privileges (SUPER user role), but once these conditions are met, exploitation is straightforward. Successful exploitation results in complete compromise of confidentiality, integrity, and availability of the affected system.

Root Cause

The root cause lies in the untrusted search path vulnerability within MariaDB's handling of the wsrep (Write Set REPlication) configuration parameters. The wsrep_provider parameter specifies the path to the Galera library, and wsrep_notify_cmd specifies a command to be executed on cluster state changes. The database server fails to properly validate these parameters before evaluation, allowing malicious paths or commands to be injected and executed with the privileges of the MariaDB process.

Attack Vector

The attack is network-accessible and can be exploited remotely by any user who has obtained SUPER privileges on the MariaDB database. The attacker modifies the wsrep_provider or wsrep_notify_cmd variables to point to a malicious shared library or command script. When the database server processes these configuration changes, it evaluates the malicious input, resulting in arbitrary code execution at the operating system level.

The vulnerability can be exploited by setting wsrep_provider to a malicious .so file path or by injecting shell commands through the wsrep_notify_cmd parameter. The commands execute with the same privileges as the MariaDB database process, typically as the mysql user, which could allow further privilege escalation depending on the system configuration.

Detection Methods for CVE-2021-27928

Indicators of Compromise

  • Unexpected modifications to wsrep_provider or wsrep_notify_cmd system variables in MariaDB configuration
  • Suspicious .so files appearing in non-standard directories referenced by database configuration
  • Unusual process spawning from the MariaDB/MySQL daemon process
  • Database audit logs showing SET GLOBAL commands modifying wsrep-related parameters

Detection Strategies

  • Monitor database audit logs for SET GLOBAL statements targeting wsrep_provider or wsrep_notify_cmd
  • Implement file integrity monitoring on directories containing Galera libraries and the MariaDB installation
  • Use endpoint detection to identify child processes spawned by the MariaDB daemon that execute unexpected commands
  • Review database user privileges and alert on accounts with SUPER privilege that are not explicitly authorized

Monitoring Recommendations

  • Enable MariaDB audit plugin to log all privilege changes and configuration modifications
  • Configure SIEM alerts for database configuration changes involving wsrep parameters
  • Monitor for network connections originating from the MariaDB process to unexpected destinations
  • Implement process monitoring to detect command injection attempts from database service accounts

How to Mitigate CVE-2021-27928

Immediate Actions Required

  • Upgrade MariaDB to patched versions: 10.2.37, 10.3.28, 10.4.18, or 10.5.9 or later
  • Audit all database accounts with SUPER privileges and revoke where not strictly necessary
  • Review and restrict network access to database servers using firewall rules
  • Implement principle of least privilege for database user accounts

Patch Information

MariaDB has released security patches addressing this vulnerability. Organizations should upgrade to the following minimum versions:

  • MariaDB 10.2: Upgrade to version 10.2.37 or later (Release Notes)
  • MariaDB 10.3: Upgrade to version 10.3.28 or later (Release Notes)
  • MariaDB 10.4: Upgrade to version 10.4.18 or later (Release Notes)
  • MariaDB 10.5: Upgrade to version 10.5.9 or later (Release Notes)

For Percona Server and wsrep patch users, consult your vendor for updated packages. Debian users should refer to the Debian LTS Security Announcement for package updates.

Additional technical details are available in the MariaDB MDEV-25179 Ticket and the Packet Storm Command Execution Exploit advisory.

Workarounds

  • Restrict SUPER privileges to only essential administrative accounts and audit their usage
  • Use SELinux or AppArmor to confine the MariaDB process and limit its ability to execute external commands
  • Implement network segmentation to limit exposure of database servers to untrusted networks
  • Configure read-only mode for wsrep_provider by using configuration file settings rather than runtime variables where possible
bash
# Example: Restrict database privileges and verify wsrep configuration
# Check for users with SUPER privilege
mysql -e "SELECT user, host FROM mysql.user WHERE Super_priv='Y';"

# Verify current wsrep settings
mysql -e "SHOW VARIABLES LIKE 'wsrep%';"

# Ensure wsrep_provider points to legitimate Galera library only
# /usr/lib/galera/libgalera_smm.so (typical legitimate path)

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMariadb

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability47.18%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • Packet Storm Command Execution Exploit

  • Debian LTS Security Announcement

  • Gentoo GLSA 2021-05-28
  • Vendor Resources
  • MariaDB MDEV-25179 Ticket

  • MariaDB 10.2.37 Release Notes

  • MariaDB 10.3.28 Release Notes

  • MariaDB 10.4.18 Release Notes

  • MariaDB 10.5.9 Release Notes

  • MariaDB Security Documentation
  • Related CVEs
  • CVE-2026-32710: MariaDB Server RCE Vulnerability

  • CVE-2020-15180: MariaDB mysql-wsrep RCE Vulnerability

  • CVE-2026-3494: MariaDB Audit Logging Bypass Vulnerability

  • CVE-2021-47761: MilleGPG5 Privilege Escalation Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English