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-2025-21501

CVE-2025-21501: Oracle MySQL Server DoS Vulnerability

CVE-2025-21501 is a denial of service flaw in Oracle MySQL Server's Optimizer component that allows low-privileged attackers to crash the database. This article covers technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-21501 Overview

CVE-2025-21501 is a vulnerability in the MySQL Server product of Oracle MySQL, specifically affecting the Server: Optimizer component. This flaw allows a low-privileged attacker with network access to exploit the MySQL Server through multiple protocols, resulting in a complete denial of service condition. The vulnerability enables attackers to cause the MySQL Server to hang or experience frequently repeatable crashes, severely impacting database availability for organizations relying on MySQL infrastructure.

Critical Impact

Successful exploitation allows attackers to completely disrupt MySQL Server availability, causing system hangs or repeatable crashes that can take down critical database services.

Affected Products

  • Oracle MySQL Server 8.0.40 and prior versions
  • Oracle MySQL Server 8.4.3 and prior versions
  • Oracle MySQL Server 9.1.0 and prior versions

Discovery Timeline

  • 2025-01-21 - CVE-2025-21501 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-21501

Vulnerability Analysis

This vulnerability resides in the MySQL Server Optimizer component, which is responsible for query optimization and execution planning. The flaw is classified under CWE-770 (Allocation of Resources Without Limits or Throttling), indicating that the optimizer fails to properly limit resource allocation during certain operations. When exploited, this allows an attacker with minimal privileges to consume server resources in a way that causes the database engine to become unresponsive or crash entirely.

The attack can be initiated remotely via network access using multiple protocols supported by MySQL. The vulnerability is considered easily exploitable, requiring only low-privilege access to the MySQL Server—such as a basic database user account. No user interaction is required for exploitation, making it particularly dangerous in multi-tenant database environments where users with limited permissions could weaponize this flaw.

Root Cause

The root cause stems from improper resource allocation controls within the MySQL Server Optimizer component (CWE-770). The optimizer fails to implement adequate limits or throttling mechanisms when processing certain query patterns or optimization requests. This allows an attacker to craft queries that trigger unbounded resource consumption, exhausting server resources and leading to denial of service conditions. The lack of proper bounds checking in the resource allocation logic enables attackers to force the server into a hung state or trigger repeatable crashes.

Attack Vector

The attack vector is network-based, allowing remote exploitation through multiple protocols supported by MySQL Server. An attacker requires only low-privilege access—such as a standard database user account with basic query execution permissions—to exploit this vulnerability. The attack does not require any user interaction, and the scope is unchanged (confined to the MySQL Server itself).

The exploitation mechanism involves sending specially crafted requests to the MySQL Server that trigger the vulnerable code path in the Optimizer component. These requests cause the server to allocate resources without proper limits, leading to resource exhaustion and denial of service. Given the ease of exploitation and network accessibility, organizations should prioritize patching systems exposed to untrusted networks or users.

Detection Methods for CVE-2025-21501

Indicators of Compromise

  • Unexpected MySQL Server crashes or hangs occurring repeatedly without clear cause
  • Abnormally high CPU or memory utilization by the MySQL Server process during query processing
  • Error logs showing optimizer-related failures or resource exhaustion messages
  • Unusual query patterns from low-privilege user accounts targeting complex optimization scenarios

Detection Strategies

  • Monitor MySQL error logs for optimizer component errors, resource exhaustion warnings, or unexpected server restarts
  • Implement query monitoring to detect abnormal or malformed queries targeting the optimizer
  • Set up alerts for MySQL Server process crashes or unresponsive states in production environments
  • Use database activity monitoring (DAM) solutions to track query execution patterns from low-privilege accounts

Monitoring Recommendations

  • Enable MySQL slow query log and general query log to capture potentially malicious query activity
  • Configure system-level monitoring for MySQL process health, including CPU, memory, and thread utilization
  • Implement network traffic analysis to detect unusual connection patterns to MySQL Server ports
  • Set up automated alerting for MySQL Server availability drops or service interruptions

How to Mitigate CVE-2025-21501

Immediate Actions Required

  • Apply the Oracle Critical Patch Update from January 2025 to all affected MySQL Server installations
  • Audit database user accounts and revoke unnecessary privileges, especially for accounts that don't require optimizer access
  • Implement network segmentation to limit MySQL Server exposure to untrusted networks
  • Enable query timeout settings to prevent long-running queries from consuming excessive resources

Patch Information

Oracle has addressed this vulnerability in the January 2025 Critical Patch Update. Administrators should upgrade to the following patched versions:

  • MySQL Server 8.0.41 or later (for 8.0.x branch)
  • MySQL Server 8.4.4 or later (for 8.4.x branch)
  • MySQL Server 9.1.1 or later (for 9.x branch)

The official security advisory is available at Oracle Critical Patch Update - January 2025. Additional vendor guidance is provided in the NetApp Security Advisory for environments utilizing NetApp storage with MySQL.

Workarounds

  • Restrict network access to MySQL Server using firewall rules, allowing only trusted IP addresses and networks
  • Implement strict privilege controls, limiting optimizer-related permissions to essential administrative accounts only
  • Configure MySQL resource limits using max_execution_time and connection timeouts to mitigate resource exhaustion
  • Consider deploying MySQL behind a database proxy or firewall that can filter malicious query patterns
bash
# Example MySQL configuration to limit query execution time
# Add to my.cnf or my.ini configuration file
[mysqld]
max_execution_time=30000
max_connections=100
wait_timeout=300
interactive_timeout=300

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechMysql

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.28%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-770
  • Technical References
  • NetApp Security Advisory
  • Vendor Resources
  • Oracle Critical Patch Update
  • Related CVEs
  • CVE-2026-21952: MySQL Server Parser DoS Vulnerability

  • CVE-2026-21950: MySQL Server Optimizer DoS Vulnerability

  • CVE-2026-21949: MySQL Server DOS Vulnerability

  • CVE-2026-21948: MySQL Server DOS 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