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-2022-24048

CVE-2022-24048: MariaDB Privilege Escalation Vulnerability

CVE-2022-24048 is a privilege escalation vulnerability in MariaDB CONNECT Storage Engine caused by a stack-based buffer overflow. Authenticated attackers can exploit this to execute arbitrary code. Learn the technical details, affected versions, impact, and mitigation strategies.

Published: February 17, 2026

CVE-2022-24048 Overview

CVE-2022-24048 is a stack-based buffer overflow vulnerability in the MariaDB CONNECT Storage Engine that enables local attackers to escalate privileges on affected installations. The flaw exists within the processing of SQL queries, where insufficient validation of user-supplied data length allows attackers to overflow a fixed-length stack-based buffer. Successful exploitation grants attackers the ability to execute arbitrary code in the context of the MariaDB service account, potentially leading to complete system compromise.

Critical Impact

Local attackers with low privileges can leverage this stack-based buffer overflow to escalate privileges and execute arbitrary code as the MariaDB service account, potentially compromising database integrity and system security.

Affected Products

  • MariaDB versions prior to patched releases (multiple version branches affected)
  • Fedora 34, 35, and 36 (packages prior to security updates)
  • MariaDB 10.8.0

Discovery Timeline

  • 2022-02-18 - CVE-2022-24048 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-24048

Vulnerability Analysis

This vulnerability is classified as CWE-121 (Stack-based Buffer Overflow) and was originally tracked by the Zero Day Initiative as ZDI-CAN-16191. The CONNECT storage engine in MariaDB provides functionality for accessing external data sources, but contains a critical flaw in how it processes SQL queries.

When handling user-supplied data during query processing, the affected code fails to properly validate input length before copying data into a fixed-length stack-based buffer. This oversight allows an authenticated attacker to supply crafted input that exceeds the buffer's capacity, overwriting adjacent stack memory including return addresses and saved registers.

The local attack vector requires the attacker to have existing authentication to the MariaDB instance. However, once authenticated—even with minimal database privileges—the attacker can execute specially crafted SQL queries targeting the CONNECT storage engine to trigger the buffer overflow condition.

Root Cause

The root cause lies in the CONNECT storage engine's failure to implement proper bounds checking on user-supplied data. Specifically, when processing certain SQL query parameters, the code copies user-controlled input directly to a stack-allocated buffer without verifying that the input length does not exceed the buffer's allocated size. This classic programming error enables attackers to corrupt stack memory with controlled data.

Attack Vector

The attack requires local access and authentication to the MariaDB database server. An attacker with valid credentials—regardless of their privilege level within the database—can construct malicious SQL queries that exploit the CONNECT storage engine. The crafted queries contain oversized input data designed to overflow the vulnerable stack buffer. When the overflow occurs, the attacker can overwrite critical stack structures, hijack program execution flow, and ultimately execute arbitrary code with the privileges of the MariaDB service account.

The vulnerability exploitation follows a typical stack-based buffer overflow attack pattern:

  1. Attacker authenticates to the MariaDB instance
  2. Attacker crafts a SQL query targeting the CONNECT storage engine with oversized input
  3. The vulnerable code copies the oversized input to a fixed-length stack buffer
  4. Stack corruption occurs, overwriting return addresses
  5. Attacker gains code execution in the context of the MariaDB service

Detection Methods for CVE-2022-24048

Indicators of Compromise

  • Unusual or malformed SQL queries targeting the CONNECT storage engine with abnormally long parameter values
  • MariaDB service crashes or unexpected restarts following query execution
  • Evidence of privilege escalation from database service accounts
  • Suspicious process spawning from the MariaDB process context

Detection Strategies

  • Monitor MariaDB error logs for segmentation faults or stack corruption indicators during CONNECT engine operations
  • Implement database activity monitoring to detect unusual query patterns with excessive input lengths
  • Deploy endpoint detection and response (EDR) solutions to identify anomalous behavior from database service processes
  • Review authentication logs for unusual access patterns preceding service anomalies

Monitoring Recommendations

  • Enable verbose logging for the CONNECT storage engine to capture detailed query information
  • Configure alerts for MariaDB service crashes or unexpected terminations
  • Monitor for process execution anomalies originating from database service accounts
  • Implement network segmentation to limit the blast radius of potential privilege escalation

How to Mitigate CVE-2022-24048

Immediate Actions Required

  • Upgrade MariaDB to the latest patched version for your version branch immediately
  • If unable to patch, consider disabling the CONNECT storage engine if not required for operations
  • Review and restrict database user privileges to minimize authenticated attack surface
  • Implement network-level access controls to limit database connectivity to trusted hosts only

Patch Information

MariaDB has released security updates addressing this vulnerability across multiple version branches. Administrators should consult the MariaDB Security Overview for specific version information and download patched releases.

For Fedora users, security updates are available through the standard package management system. Relevant advisories have been published on the Fedora Package Announcement mailing list.

Additional vendor information is available from the NetApp Security Advisory and the ZDI-22-363 Advisory.

Workarounds

  • Disable the CONNECT storage engine if it is not essential for database operations by removing or unloading the plugin
  • Implement strict input validation at the application layer before data reaches the database
  • Restrict database access to trusted users and applications only
  • Run MariaDB with minimal system privileges to limit the impact of successful exploitation
bash
# Disable CONNECT storage engine if not required
# Add to my.cnf configuration file
[mysqld]
plugin-load-add = ha_connect.so
# Comment out or remove the above line to disable CONNECT engine

# Alternatively, uninstall the plugin at runtime (if loaded)
# mysql -u root -p -e "UNINSTALL PLUGIN CONNECT;"

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechMariadb

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-121
  • Technical References
  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory NTAP-20220318-0004

  • ZDI-22-363 Advisory
  • Vendor Resources
  • MariaDB Security Overview
  • Related CVEs
  • CVE-2021-47761: MilleGPG5 Privilege Escalation Flaw

  • CVE-2022-24051: MariaDB Privilege Escalation Vulnerability

  • CVE-2026-35549: MariaDB Server DoS Vulnerability

  • CVE-2026-32710: MariaDB Server RCE Vulnerability
Default Legacy - Prefooter | 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