CVE-2024-21137
Medium · 4.9CVSS
4.9
EPSS
0.8%
Published
Jul 16, 2024
CISA due date
—
Cloudanix analysis
A problem in the database server lets someone with special access over the network crash or freeze the service, stopping normal operations until it is restarted.
- 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
The flaw in the MySQL Server Optimizer component permits a high-privileged network attacker to trigger repeated crashes or hangs, resulting in complete denial of service for the database instance.
Why it matters to the business
Successful exploitation leads to unplanned database downtime, interrupting applications and services that depend on MySQL for data operations and potentially affecting business continuity until the service is restarted.
How an attack unfolds
An attacker with high-privileged network credentials authenticates to the MySQL Server via supported protocols and submits crafted queries that abuse the Optimizer, forcing the server process to hang or crash repeatedly.
How to fix it
Apply the latest MySQL Server patches that resolve the Optimizer vulnerability; upgrade all affected installations beyond version 8.0.35 and 8.2.0 to the vendor's fixed releases and verify the update through release notes.
How to confirm the fix worked
Confirm the installed MySQL version is newer than the affected releases, review release notes for the specific fix, and test that crafted Optimizer queries no longer cause crashes in a non-production environment.
Typical attack path
- Obtain high-privileged network credentials for a MySQL instance
- Establish an authenticated connection using one of the supported protocols
- Submit specially crafted queries targeting the Optimizer component
- Observe repeated server hangs or crashes that deny service to legitimate users
How to detect it
Examine MySQL error logs and crash reports for repeated Optimizer-induced hangs or terminations; correlate with authentication events from high-privileged accounts showing unusual query patterns.
What your security team should do
- Prioritize patching all MySQL 8.0.x and 8.2.x instances to the latest fixed versions
- Restrict network access to MySQL ports to only trusted administrative hosts
- Review and minimize the number of high-privileged database accounts with network access
- Monitor database error and crash logs for repeated Optimizer-related failures
The record
Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Optimizer). Supported versions that are affected are 8.0.35 and prior and 8.2.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 |
| Red Hat:enterprise_linux:8::appstream | mecab | 0 | 0:0.996-2.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mecab-debuginfo | 0 | 0:0.996-2.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mecab-debugsource | 0 | 0:0.996-2.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mecab-devel | 0 | 0:0.996-2.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mecab-ipadic | 0 | 0:2.7.0.20070801-16.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mecab-ipadic-EUCJP | 0 | 0:2.7.0.20070801-16.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mysql | 0 | 0:8.0.36-1.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mysql-common | 0 | 0:8.0.36-1.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mysql-debuginfo | 0 | 0:8.0.36-1.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mysql-debugsource | 0 | 0:8.0.36-1.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mysql-devel | 0 | 0:8.0.36-1.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mysql-devel-debuginfo | 0 | 0:8.0.36-1.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mysql-errmsg | 0 | 0:8.0.36-1.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mysql-libs | 0 | 0:8.0.36-1.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mysql-libs-debuginfo | 0 | 0:8.0.36-1.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mysql-server | 0 | 0:8.0.36-1.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mysql-server-debuginfo | 0 | 0:8.0.36-1.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mysql-test | 0 | 0:8.0.36-1.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:8::appstream | mysql-test-debuginfo | 0 | 0:8.0.36-1.module+el8.9.0+21207+6c20cb3d |
| Red Hat:enterprise_linux:9::appstream | mysql | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::appstream | mysql-common | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::appstream | mysql-debuginfo | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::appstream | mysql-debugsource | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::appstream | mysql-devel | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::appstream | mysql-devel-debuginfo | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::appstream | mysql-errmsg | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::appstream | mysql-libs | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::appstream | mysql-libs-debuginfo | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::appstream | mysql-server | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::appstream | mysql-server-debuginfo | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::appstream | mysql-test | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::appstream | mysql-test-debuginfo | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::crb | mysql | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::crb | mysql-common | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::crb | mysql-debuginfo | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::crb | mysql-debugsource | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::crb | mysql-devel | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::crb | mysql-devel-debuginfo | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::crb | mysql-errmsg | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::crb | mysql-libs | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::crb | mysql-libs-debuginfo | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::crb | mysql-server | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::crb | mysql-server-debuginfo | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::crb | mysql-test | 0 | 0:8.0.36-1.el9_3 |
| Red Hat:enterprise_linux:9::crb | mysql-test-debuginfo | 0 | 0:8.0.36-1.el9_3 |
| Ubuntu:14.04:LTS | mysql-5.5 | 0 | No fix |
| 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:20.04:LTS | mysql-8.0 | 0 | 8.0.36-0ubuntu0.20.04.1 |
| Ubuntu:22.04:LTS | mariadb-10.6 | 0 | No fix |
| Ubuntu:22.04:LTS | mysql-8.0 | 0 | 8.0.36-0ubuntu0.22.04.1 |
| Ubuntu:24.04:LTS | mariadb | 0 | No fix |
| Ubuntu:24.04:LTS | mysql-8.0 | 0 | 8.0.36-1 |
| Ubuntu:24.10 | mariadb | 0 | No fix |
| Ubuntu:25.04 | mariadb | 0 | No fix |
| Ubuntu:25.10 | mariadb | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | mysql-5.5 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | mariadb-10.0 | 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 | mariadb-10.1 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mysql-5.7 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mariadb-10.3 | 0 | No fix |
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