CVE-2025-21566
NoneCVSS
—
EPSS
0.7%
Published
Jan 21, 2025
CISA due date
—
Cloudanix analysis
A flaw in the database server lets someone with limited access over the network crash or freeze the service, stopping applications that rely on it until it is restarted.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw in the Optimizer component allows a low-privileged network attacker to trigger a hang or repeatable crash resulting in complete denial of service against the MySQL Server process.
Why it matters to the business
Successful exploitation can cause prolonged database downtime, interrupting dependent applications and services until the server is restarted.
How an attack unfolds
An attacker with low-privileged network access connects to the MySQL Server using supported protocols and submits specially crafted queries that abuse the optimizer logic, forcing the server into a hung or crashed state.
How to fix it
Apply the latest vendor patches for MySQL Server 9.1.0 and prior. For listed Ubuntu packages upgrade openvpn to the specified fixed versions: 2.3.2-7ubuntu3.2+esm1 on 14.04 LTS and 2.3.10-1ubuntu2.2+esm1 on 16.04 LTS.
How to confirm the fix worked
Confirm the MySQL Server version has been updated beyond 9.1.0 and test that previously successful denial-of-service queries no longer cause crashes or hangs.
Typical attack path
- Obtain low-privileged network credentials for the MySQL Server
- Establish a connection using one of the allowed protocols
- Submit crafted queries that exercise the vulnerable optimizer code path
- Observe repeated server hang or crash confirming denial of service
How to detect it
Inspect database server logs for repeated abnormal terminations, optimizer-related error messages, or sudden process restarts around the time of suspected attacks; correlate with network connection logs from low-privileged accounts.
What your security team should do
- Prioritize patching MySQL Server instances within the next maintenance window due to network exploitability
- Review and restrict low-privileged accounts that have network access to the database
- Monitor for unexpected MySQL process restarts or availability alerts
The record
Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Optimizer). Supported versions that are affected are 9.1.0 and prior. Easily exploitable vulnerability allows low privileged attacker with network access via multiple protocols to compromise MySQL Server. Successful attacks of this vulnerability can result in unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Server. CVSS 3.1 Base Score 6.5 (Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:16.04:LTS | mariadb-10.0 | 0 | No fix |
| Ubuntu:16.04:LTS | percona-server-5.6 | 0 | No fix |
| Ubuntu:16.04:LTS | percona-xtradb-cluster-5.6 | 0 | No fix |
| Ubuntu:18.04:LTS | mariadb-10.1 | 0 | No fix |
| Ubuntu:20.04:LTS | mariadb-10.3 | 0 | No fix |
| Ubuntu:22.04:LTS | mariadb-10.6 | 0 | No fix |
| Ubuntu:24.04:LTS | mariadb | 0 | No fix |
| Ubuntu:24.10 | mariadb | 0 | No fix |
| Ubuntu:25.04 | mariadb | 0 | No fix |
| Ubuntu:25.10 | mariadb | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | mariadb-10.0 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | percona-server-5.6 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | percona-xtradb-cluster-5.6 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mariadb-10.1 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mariadb-10.3 | 0 | No fix |
Related vulnerabilities
- CVE-2025-21567 Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Security… Also affects mariadb-10.0
- CVE-2025-21555 Vulnerability in the MySQL Server product of Oracle MySQL (component: InnoDB). Also affects mariadb-10.0
- CVE-2025-21559 Vulnerability in the MySQL Server product of Oracle MySQL (component: InnoDB). Also affects mariadb-10.0
- CVE-2025-21540 Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Security… Also affects mariadb-10.0
- CVE-2025-21546 Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Security… Also affects mariadb-10.0
- CVE-2025-21543 Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Packaging). Also affects mariadb-10.0
- CVE-2025-21534 Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Performance… Also affects mariadb-10.0
- CVE-2025-21536 Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Optimizer). Also affects mariadb-10.0