Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-21566 Overview
CVE-2025-21566 is a denial of service vulnerability in the Oracle MySQL Server Optimizer component. The flaw affects MySQL Server versions 9.1.0 and prior. An authenticated attacker with low privileges and network access can trigger a hang or repeatable crash of the database server. Oracle addressed the issue in the January 2025 Critical Patch Update.
The vulnerability is categorized under [CWE-732] (Incorrect Permission Assignment for Critical Resource) and impacts availability only. No confidentiality or integrity impact is reported. Exploitation requires valid credentials but no user interaction.
Critical Impact
Successful exploitation causes a complete denial of service of MySQL Server, disrupting any application or service dependent on the database.
Affected Products
- Oracle MySQL Server versions 9.1.0 and prior
- NetApp products bundling affected MySQL Server versions (see NetApp advisory NTAP-20250124-0014)
- Downstream distributions packaging unpatched MySQL Server builds
Discovery Timeline
- 2025-01-21 - CVE CVE-2025-21566 published to NVD alongside Oracle Critical Patch Update January 2025
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-21566
Vulnerability Analysis
The vulnerability resides in the Server: Optimizer component of MySQL Server. The Optimizer is responsible for parsing SQL statements and building efficient execution plans. A specially crafted query processed by the Optimizer causes the server process to hang or crash reliably. The attack is network-reachable through multiple MySQL protocols, including the standard MySQL client protocol and X Protocol.
Because the impact is a complete server outage, a single low-privileged account is sufficient to disrupt all database clients. Exploitation does not require social engineering or administrative privileges, which raises operational risk in multi-tenant and shared-hosting environments.
Root Cause
Oracle has not published source-level details. The CWE classification [CWE-732] points to incorrect permission assignment on a critical resource reachable from the Optimizer code path. The resulting condition allows a low-privileged session to force the server into an unrecoverable state.
Attack Vector
An attacker authenticates to MySQL Server over the network using any valid account. The attacker then submits a crafted SQL statement that the Optimizer processes. Processing triggers the hang or crash condition and halts the server. Repeated submissions can prevent restart recovery from stabilizing the service.
No verified public exploit or proof-of-concept has been published. Refer to the Oracle Critical Patch Update January 2025 for vendor remediation details.
Detection Methods for CVE-2025-21566
Indicators of Compromise
- Unexpected mysqld process termination or restart events in system logs
- Repeated client disconnection errors coinciding with specific query patterns
- Spike in connection failures from a single authenticated account prior to a crash
- Core dumps generated by mysqld referencing Optimizer stack frames
Detection Strategies
- Enable the MySQL general query log or audit plugin to capture statements executed immediately before a crash
- Correlate mysqld process exit events with the session user and source IP to identify the originating account
- Alert on crash-restart loops using host and container orchestrator telemetry
Monitoring Recommendations
- Monitor MySQL error logs for signal 11 or assertion failures linked to Optimizer code paths
- Track query execution anomalies and sudden drops in query throughput
- Baseline authenticated session activity to detect low-privileged accounts issuing unusual query shapes
How to Mitigate CVE-2025-21566
Immediate Actions Required
- Apply the January 2025 Oracle Critical Patch Update to all MySQL Server instances running 9.1.0 or earlier
- Audit MySQL accounts and remove unused or dormant low-privileged users that could serve as attack footholds
- Restrict network exposure of MySQL Server to trusted application tiers using firewall or security group rules
Patch Information
Oracle released fixes in the January 2025 Critical Patch Update. Administrators should upgrade to a patched MySQL Server release as documented in the Oracle Critical Patch Update January 2025. NetApp customers should review the NetApp Security Advisory NTAP-20250124-0014 for product-specific guidance.
Workarounds
- Limit database connectivity to known application hosts using network segmentation and bind-address restrictions
- Enforce least-privilege account design so compromised credentials cannot reach the vulnerable code path from untrusted contexts
- Deploy connection rate limiting and query timeouts to reduce the blast radius of repeated crash attempts
# Example: restrict MySQL to the application subnet and enforce query timeouts
# /etc/mysql/my.cnf
[mysqld]
bind-address = 10.0.1.25
max_execution_time = 30000
max_connections_per_hour = 1000
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

