Skip to main content
Vulnerability Database/CVE-2025-21575

CVE-2025-21575: Oracle MySQL Cluster DOS Vulnerability

CVE-2025-21575 is a denial of service vulnerability in Oracle MySQL Server affecting versions 8.0.0-8.0.41, 8.4.0-8.4.4, and 9.0.0-9.2.0. Attackers can cause complete system crashes. This article covers technical details, impact assessment, and mitigation strategies.

Published:

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-21575 Overview

CVE-2025-21575 is a denial of service vulnerability in the Oracle MySQL Server Parser component. The flaw affects MySQL Server versions 8.0.0-8.0.41, 8.4.0-8.4.4, and 9.0.0-9.2.0. A low-privileged attacker with network access can exploit this issue over multiple protocols to crash or hang the database server. The vulnerability is categorized under [CWE-400] Uncontrolled Resource Consumption. Oracle addressed the issue in the April 2025 Critical Patch Update.

Critical Impact

Successful exploitation results in a complete denial of service, causing MySQL Server to hang or crash repeatedly, disrupting dependent applications and services.

Affected Products

  • Oracle MySQL Server versions 8.0.0 through 8.0.41
  • Oracle MySQL Server versions 8.4.0 through 8.4.4 and 9.0.0 through 9.2.0
  • Oracle MySQL Cluster deployments bundling affected server versions

Discovery Timeline

  • 2025-04-15 - Oracle disclosed the vulnerability in the April 2025 Critical Patch Update
  • 2025-04-15 - CVE-2025-21575 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-21575

Vulnerability Analysis

The vulnerability resides in the MySQL Server Parser component, which processes SQL statements submitted by authenticated clients. A specially crafted statement triggers uncontrolled resource consumption during parsing, resulting in a server hang or a frequently repeatable crash. The flaw maps to [CWE-400], indicating the parser fails to enforce bounds on resources consumed while handling attacker-supplied input. Because the parser is a shared, foundational component, a single exploitation attempt affects every client session served by the instance.

The EPSS probability for this CVE is approximately 0.93%, placing it in the 59.9th percentile of exploitability likelihood. No public proof-of-concept or in-the-wild exploitation has been reported.

Root Cause

The root cause is improper resource management inside the SQL parser. Oracle has not published source-level details, but the behavior is consistent with input patterns that force the parser into excessive memory allocation, recursion, or algorithmic complexity before validation completes. The condition can be triggered through any protocol that accepts SQL input, including the classic MySQL protocol, X Protocol, and MySQL Router connections.

Attack Vector

Exploitation requires network reachability to the MySQL Server and a valid low-privilege account. The attacker submits one or more malformed or complexity-inducing SQL statements over any supported protocol. No user interaction is required, and attack complexity is low. The outcome is a complete loss of availability for the database service, with no impact on confidentiality or integrity.

No verified exploit code has been published. See the Oracle Critical Patch Update Advisory - April 2025 for vendor technical details.

Detection Methods for CVE-2025-21575

Indicators of Compromise

  • Unexpected mysqld process crashes or restarts recorded in error.log with parser-related stack frames.
  • Sudden spikes in CPU or memory consumption by mysqld immediately preceding a hang or restart.
  • Repeated short-lived sessions from a low-privileged account issuing malformed SQL just before service failure.

Detection Strategies

  • Enable the MySQL general query log or audit log to capture SQL statements executed before any crash event, then correlate timestamps with mysqld restart entries.
  • Monitor the MySQL error log for signal 11 (SIGSEGV) or signal 6 (SIGABRT) entries referencing parser functions.
  • Alert on database availability probes failing in rapid succession, especially when accompanied by connection resets from a specific source IP.

Monitoring Recommendations

  • Track mysqld uptime and restart counts through host metrics or Performance Schema counters.
  • Forward MySQL error, audit, and connection logs to a centralized SIEM and build dashboards for parser-related anomalies.
  • Baseline normal query volume per account and alert on deviations from low-privilege service accounts.

How to Mitigate CVE-2025-21575

Immediate Actions Required

  • Apply the April 2025 Critical Patch Update for Oracle MySQL Server to all affected 8.0.x, 8.4.x, and 9.0.x through 9.2.x deployments.
  • Inventory MySQL Cluster installations and update bundled server binaries to a patched version.
  • Restrict network reachability to MySQL instances using firewall rules, security groups, and bastion access patterns.

Patch Information

Oracle released fixes in the Oracle Critical Patch Update Advisory - April 2025. Upgrade MySQL Server to version 8.0.42, 8.4.5, 9.3.0, or later. NetApp has also published guidance for bundled products in the NetApp Security Advisory NTAP-20250502-0006.

Workarounds

  • Revoke database privileges from accounts that do not require interactive SQL access, reducing the pool of credentials usable for exploitation.
  • Place MySQL behind a connection proxy such as MySQL Router or ProxySQL with query filtering to block anomalous statement patterns.
  • Enforce rate limits on new connections per source using max_user_connections and network-layer controls.
bash
# Example: restrict a low-privilege account and limit concurrent connections
mysql> ALTER USER 'app_ro'@'%' WITH MAX_USER_CONNECTIONS 10;
mysql> REVOKE ALL PRIVILEGES ON *.* FROM 'app_ro'@'%';
mysql> GRANT SELECT ON app_db.* TO 'app_ro'@'%';
mysql> FLUSH PRIVILEGES;

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.