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-46659

CVE-2021-46659: MariaDB DOS Vulnerability

CVE-2021-46659 is a denial of service vulnerability in MariaDB that causes application crashes due to improper handling of SELECT_LEX::nest_level in VIEW operations. This article covers technical details, affected versions, and mitigation strategies.

Published: February 25, 2026

CVE-2021-46659 Overview

CVE-2021-46659 is a Denial of Service vulnerability affecting MariaDB database server versions prior to 10.7.2. The vulnerability exists because the database server does not properly recognize that SELECT_LEX::nest_level is local to each VIEW, leading to an application crash condition. This flaw allows a local authenticated attacker to cause the MariaDB server to crash, resulting in service disruption.

Critical Impact

Local authenticated attackers can crash the MariaDB database server, causing denial of service and potential data integrity issues for applications dependent on database availability.

Affected Products

  • MariaDB versions prior to 10.7.2
  • Fedora 34
  • Fedora 35
  • Fedora 36

Discovery Timeline

  • 2022-01-29 - CVE-2021-46659 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-46659

Vulnerability Analysis

This vulnerability is rooted in improper handling of the SELECT_LEX::nest_level variable within MariaDB's query processing engine. When processing complex queries involving VIEWs, the database server fails to properly scope the nest_level variable to each individual VIEW context. This architectural flaw leads to incorrect state management during query execution.

The vulnerability requires local access and authenticated privileges to exploit. While it does not result in data disclosure or unauthorized modifications, the high availability impact makes it a significant concern for production database environments where uptime is critical. Organizations running MariaDB as a backend for web applications or critical business services face particular risk from this vulnerability.

Root Cause

The root cause stems from improper scope management of the SELECT_LEX::nest_level variable in the MariaDB source code. The nest_level variable is intended to track the nesting depth of SELECT statements, particularly important when processing nested queries within VIEWs. However, the implementation fails to properly isolate this variable to each VIEW's context, causing incorrect tracking of query nesting levels. When multiple VIEWs are processed or when specific query patterns are executed, this scope confusion leads to an unhandled exception and subsequent application crash.

Attack Vector

The attack vector is local in nature, requiring an authenticated user with database access privileges. An attacker with the ability to execute queries against the MariaDB server can craft specific SQL statements involving VIEWs that trigger the improper nest_level handling. The exploitation does not require special administrative privileges—standard database user permissions are sufficient to trigger the crash condition.

The vulnerability is triggered through query execution rather than connection handling, meaning the attacker must have valid credentials to interact with the database. Once exploited, the entire database server process crashes, affecting all connected clients and pending transactions.

Detection Methods for CVE-2021-46659

Indicators of Compromise

  • Unexpected MariaDB server crashes or restarts without apparent system resource issues
  • Core dump files or crash logs referencing SELECT_LEX or nest_level in stack traces
  • Sudden termination of all database connections with "server has gone away" errors
  • Unusual patterns of complex VIEW queries preceding server crashes

Detection Strategies

  • Monitor MariaDB error logs for crash signatures related to query processing failures
  • Implement database monitoring to detect unexpected service restarts or process terminations
  • Review slow query logs for unusual VIEW-related query patterns that may indicate exploitation attempts
  • Deploy SentinelOne Singularity to detect process crashes and anomalous database server behavior

Monitoring Recommendations

  • Enable MariaDB's general query log temporarily to identify suspicious query patterns during investigation periods
  • Configure alerting on MariaDB process state changes and automatic restart events
  • Monitor system logs for segmentation faults or other crash indicators from the MariaDB process
  • Track database connection metrics to identify sudden mass disconnections indicative of a crash

How to Mitigate CVE-2021-46659

Immediate Actions Required

  • Upgrade MariaDB to version 10.7.2 or later to remediate the vulnerability
  • Review database user accounts and remove unnecessary privileges to limit potential attack surface
  • Implement query monitoring to detect potentially malicious VIEW-related queries
  • Consider deploying database connection pooling to facilitate faster recovery from crash events

Patch Information

MariaDB has addressed this vulnerability in version 10.7.2. Organizations should upgrade to this version or later to fully remediate the issue. For detailed information about the fix, refer to the MariaDB Issue MDEV-25631 in the MariaDB issue tracker. Additional security guidance is available at the MariaDB Security Knowledge Base.

Fedora users should apply the latest package updates as announced through the Fedora package announcements. NetApp customers should review the NetApp Security Advisory NTAP-20220311-0003 for guidance on affected NetApp products.

Workarounds

  • Restrict database access to trusted users only until patching can be completed
  • Implement network segmentation to limit which systems can connect to the database server
  • Consider temporarily disabling or restricting access to complex VIEWs if operationally feasible
  • Deploy database activity monitoring to detect and block suspicious query patterns
bash
# Configuration example - Restrict database user privileges
# Review and limit user permissions to minimize attack surface
mysql -u root -p -e "SELECT User, Host, Select_priv, Create_view_priv FROM mysql.user;"

# Consider revoking VIEW creation privileges from non-essential users
# REVOKE CREATE VIEW ON *.* FROM 'username'@'host';

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechMariadb

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.04%

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

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory NTAP-20220311-0003
  • Vendor Resources
  • MariaDB Issue MDEV-25631

  • MariaDB Security Knowledge Base
  • Related CVEs
  • CVE-2026-35549: MariaDB Server DoS Vulnerability

  • CVE-2022-47015: MariaDB Server DoS Vulnerability

  • CVE-2022-32085: MariaDB DoS Vulnerability

  • CVE-2022-32083: MariaDB Segmentation Fault 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