Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-27457

CVE-2022-27457: MariaDB Use-After-Free Vulnerability

CVE-2022-27457 is a use-after-free vulnerability in MariaDB Server v10.6.3 and earlier versions affecting the my_mb_wc_latin1 component. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-27457 Overview

MariaDB Server v10.6.3 and below was discovered to contain a use-after-free vulnerability in the component my_mb_wc_latin1 at /strings/ctype-latin1.c. This memory corruption vulnerability can be exploited remotely without authentication, potentially leading to denial of service conditions against database servers running vulnerable versions of MariaDB.

Critical Impact

Remote attackers can exploit this use-after-free vulnerability to cause denial of service by crashing the MariaDB database server, disrupting critical database operations and affecting business continuity.

Affected Products

  • MariaDB Server v10.6.3 and below
  • MariaDB Server versions across multiple release branches
  • Systems using MariaDB with Latin1 character set processing

Discovery Timeline

  • 2022-04-14 - CVE-2022-27457 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-27457

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free), a memory corruption flaw that occurs when a program continues to use a pointer after the memory it references has been freed. In the context of MariaDB Server, the vulnerability exists within the my_mb_wc_latin1 function located in the /strings/ctype-latin1.c source file, which handles Latin1 character set conversion operations.

When triggered, the use-after-free condition allows an attacker to cause the MariaDB server process to access memory that has already been deallocated. This can result in crashes, unexpected behavior, or in some cases, potential for further exploitation depending on the memory state at the time of access.

Root Cause

The root cause of CVE-2022-27457 lies in improper memory lifecycle management within the Latin1 character set handling code. The my_mb_wc_latin1 function fails to properly track the validity of memory references during character conversion operations. When certain sequences of operations are performed, the code attempts to access memory through a pointer that references previously freed memory, violating memory safety guarantees.

This type of vulnerability typically arises from complex control flow paths where memory deallocation and subsequent pointer usage occur in unexpected sequences, often exacerbated by error handling code paths or edge cases in input processing.

Attack Vector

The vulnerability can be exploited remotely over the network without requiring authentication. An attacker can craft malicious database queries or connection sequences that trigger the vulnerable code path in the Latin1 character conversion routine. The attack does not require user interaction and can be initiated by any network-accessible client that can connect to the MariaDB server.

The exploitation primarily results in denial of service through server crashes. While the vulnerability involves memory corruption, the current assessment indicates the primary impact is availability disruption rather than confidentiality or integrity compromise. Organizations relying on MariaDB for critical applications should prioritize patching to prevent service disruptions.

Detection Methods for CVE-2022-27457

Indicators of Compromise

  • Unexpected MariaDB server crashes or restarts, particularly during character set conversion operations
  • Core dumps or error logs referencing the my_mb_wc_latin1 function or ctype-latin1.c
  • Unusual network traffic patterns targeting MariaDB ports (default 3306) with malformed queries
  • Memory-related errors in MariaDB error logs indicating heap corruption or invalid memory access

Detection Strategies

  • Monitor MariaDB server stability metrics for unusual crash patterns or service restarts
  • Implement database query logging and analyze for suspicious character set manipulation patterns
  • Deploy network intrusion detection rules to identify potential exploitation attempts targeting MariaDB
  • Use memory debugging tools (Valgrind, AddressSanitizer) in development environments to detect use-after-free conditions

Monitoring Recommendations

  • Enable comprehensive MariaDB error logging and configure alerts for crash-related events
  • Implement real-time monitoring of database server availability and automatic failover mechanisms
  • Configure SentinelOne agents to monitor for suspicious process behavior and memory anomalies on database servers
  • Establish baseline metrics for MariaDB performance to quickly identify denial of service impacts

How to Mitigate CVE-2022-27457

Immediate Actions Required

  • Upgrade MariaDB Server to a patched version that addresses the use-after-free vulnerability in my_mb_wc_latin1
  • Review network access controls to limit which systems can connect to MariaDB servers
  • Implement database connection monitoring and rate limiting to mitigate potential exploitation attempts
  • Ensure database backups are current and recovery procedures are tested

Patch Information

MariaDB has addressed this vulnerability in subsequent releases. Detailed information about the fix is available in the MariaDB Issue MDEV-28098 tracking entry. Organizations should review the MariaDB release notes to identify the specific version that includes the security fix and plan their upgrade accordingly.

Additional security guidance is available from NetApp Security Advisory ntap-20220526-0007 for environments running MariaDB in NetApp configurations.

Workarounds

  • Restrict network access to MariaDB servers using firewall rules, allowing only trusted application servers to connect
  • Implement connection pooling and monitoring at the application layer to detect and block suspicious query patterns
  • Consider deploying a database proxy or firewall that can filter potentially malicious queries before they reach the server
  • If Latin1 character set is not required, evaluate migrating to alternative character sets to reduce exposure to this specific code path
bash
# Example: Restrict MariaDB network access using iptables
iptables -A INPUT -p tcp --dport 3306 -s 10.0.0.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 3306 -j DROP

# Verify MariaDB version to check vulnerability status
mysql -V

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechMariadb

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.12%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • NetApp Security Advisory ntap-20220526-0007
  • Vendor Resources
  • MariaDB Issue MDEV-28098
  • Related CVEs
  • CVE-2022-32091: MariaDB Use-After-Free Vulnerability

  • CVE-2022-32081: MariaDB Use-After-Free 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