CVE-2024-21009
Medium · 4.9CVSS
4.9
EPSS
1.1%
Published
Apr 16, 2024
CISA due date
—
Cloudanix analysis
Someone with special access to the database can make it stop responding, causing temporary outages for any applications that rely on it.
- Exploitation
- Remote Authenticated
- Attacker needs
- High Privilege
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Network Service
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
High-privileged network attacker can trigger repeated hangs or crashes in the MySQL Server Optimizer component, resulting in complete denial of service.
Why it matters to the business
Causes unplanned database downtime affecting applications and services that depend on MySQL, though risk remains low due to high-privilege requirement, stable low EPSS, and absence from KEV.
How an attack unfolds
An attacker who already possesses high database privileges connects over the network using supported protocols and submits crafted queries that exercise the Optimizer component, forcing the server into a hang or crash state.
How to fix it
Upgrade affected MySQL Server installations to patched releases beyond 8.0.36 and 8.3.0; apply the latest cumulative patches from Oracle for the 8.0 and 8.3 branches.
How to confirm the fix worked
Confirm the running MySQL version is newer than the affected releases, review release notes for Optimizer fixes, and test that normal privileged operations no longer trigger crashes.
Typical attack path
- Acquire high-privileged MySQL credentials
- Establish authenticated network connection to the target server
- Submit specially crafted queries that reach the Optimizer
- Induce repeated crashes or hangs to achieve denial of service
How to detect it
Monitor MySQL error logs for repeated Optimizer-related crashes or hang messages, correlate with privileged session activity, and watch for sudden spikes in connection resets from authenticated users.
What your security team should do
- Prioritize patching of internet-facing or business-critical MySQL instances
- Enforce least-privilege access and rotate high-privileged accounts
- Restrict network access to the MySQL port to trusted sources only
- Enable and centrally collect MySQL error and slow-query logs for anomaly detection
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. Easily exploitable 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.9 (Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/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