CVE-2024-21013
Medium · 4.4CVSS
4.4
EPSS
0.9%
Published
Apr 16, 2024
CISA due date
—
Cloudanix analysis
A flaw in the database software could let someone with special access crash the system and cause service interruptions.
- Exploitation
- Remote Authenticated
- Attacker needs
- High Privilege
- Complexity
- High
- Impact
- Denial Of Service
- Component
- Network Service
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability in the MySQL Server Optimizer component allows a high-privileged network attacker to trigger a denial of service by causing the server to hang or crash repeatedly.
Why it matters to the business
Successful exploitation can lead to unplanned database outages, disrupting applications and services reliant on the MySQL database, potentially causing operational downtime and data unavailability.
How an attack unfolds
An attacker with high privileges authenticates to the MySQL server and crafts specific queries or network packets that exploit weaknesses in the optimizer, leading to resource exhaustion or crash.
How to fix it
Upgrade MySQL Server to the latest supported versions that address the optimizer flaw beyond the affected releases.
How to confirm the fix worked
Confirm MySQL instances are running patched versions, review release notes for optimizer fixes, and validate stability under query loads in test environments.
Typical attack path
- Obtain high-privileged credentials for the MySQL server
- Establish network connection using supported protocols
- Issue crafted queries designed to stress the optimizer logic
- Trigger repeated hangs or crashes resulting in complete denial of service
How to detect it
Inspect MySQL error and crash logs for repeated optimizer-induced hangs, correlate with audit logs showing high-privileged network sessions, and watch for sudden spikes in resource usage tied to query processing.
What your security team should do
- Apply available patches to all MySQL Server instances promptly
- Limit network exposure and enforce least-privilege access controls
- Enable detailed logging and monitor for optimizer-related crashes
- Review and restrict high-privileged accounts with network access
The record
Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Optimizer). Supported versions that are affected are 8.0.36 and prior and 8.3.0 and prior. Difficult to exploit vulnerability allows high 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 4.4 (Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H).
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Chainguard | mysql-8.0 | 0 | 8.0.38-r0 |
| Chainguard | mysql-8.0-bitnami-compat | 0 | 8.0.38-r0 |
| Chainguard | mysql-8.0-client | 0 | 8.0.38-r0 |
| Chainguard | mysql-8.0-dev | 0 | 8.0.38-r0 |
| Chainguard | mysql-8.0-iamguarded-compat | 0 | 8.0.38-r0 |
| Chainguard | mysql-8.0-oci-entrypoint | 0 | 8.0.38-r0 |
| Chainguard | mysql-8.0-oci-entrypoint-compat | 0 | 8.0.38-r0 |
| Chainguard | percona-server-8.3 | 0 | 8.3.0-r1 |
| Chainguard | percona-server-8.3-dev | 0 | 8.3.0-r1 |
| Chainguard | percona-server-8.3-oci-entrypoint | 0 | 8.3.0-r1 |
| Chainguard | percona-server-8.3-oci-entrypoint-compat | 0 | 8.3.0-r1 |
| Ubuntu:14.04:LTS | mysql-5.5 | 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:20.04:LTS | mariadb-10.3 | 0 | No fix |
| Ubuntu:20.04:LTS | mysql-8.0 | 0 | 8.0.37-0ubuntu0.20.04.3 |
| Ubuntu:22.04:LTS | mysql-8.0 | 0 | 8.0.37-0ubuntu0.22.04.3 |
| Ubuntu:23.10 | mysql-8.0 | 0 | 8.0.37-0ubuntu0.23.10.2 |
| Ubuntu:24.04:LTS | mysql-8.0 | 0 | 8.0.37-0ubuntu0.24.04.1 |
| Ubuntu:24.10 | mysql-8.0 | 0 | 8.0.37-1 |
| Ubuntu:Pro:14.04:LTS | mysql-5.5 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | mysql-5.7 | 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 | mysql-5.7 | 0 | No fix |
| Wolfi | percona-server-8.3 | 0 | 8.3.0-r1 |
| Wolfi | percona-server-8.3-dev | 0 | 8.3.0-r1 |
| Wolfi | percona-server-8.3-oci-entrypoint | 0 | 8.3.0-r1 |
| Wolfi | percona-server-8.3-oci-entrypoint-compat | 0 | 8.3.0-r1 |
Related vulnerabilities
- CVE-2024-21173 Vulnerability in the MySQL Server product of Oracle MySQL (component: InnoDB). Also affects mysql-8.0
- CVE-2024-21163 Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Optimizer). Also affects mysql-8.0
- CVE-2024-21162 Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Optimizer). Also affects mysql-8.0
- CVE-2024-21166 Vulnerability in the MySQL Server product of Oracle MySQL (component: InnoDB). Also affects mysql-8.0
- CVE-2024-21160 Vulnerability in the MySQL Server product of Oracle MySQL (component: InnoDB). Also affects mysql-8.0
- CVE-2024-21159 Vulnerability in the MySQL Server product of Oracle MySQL (component: InnoDB). Also affects mysql-8.0
- CVE-2024-21157 Vulnerability in the MySQL Server product of Oracle MySQL (component: InnoDB). Also affects mysql-8.0
- CVE-2024-21142 Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Security… Also affects mysql-8.0