CVE-2024-21056
Medium · 4.9CVSS
4.9
EPSS
0.9%
Published
Apr 16, 2024
CISA due date
—
Cloudanix analysis
A flaw in the database software lets a privileged remote user send a special command that can freeze or crash the entire database system, interrupting all 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
The flaw permits a high-privileged network attacker to submit crafted DML statements that trigger an unhandled condition in the Server DML component, resulting in a hang or repeatable crash that terminates MySQL Server availability.
Why it matters to the business
Successful exploitation produces immediate database downtime that halts dependent applications and services until the server is restarted, increasing operational costs and risk of data inconsistency during recovery.
How an attack unfolds
An attacker who already possesses high-privileged network credentials connects to the MySQL instance over any supported protocol and issues a specially constructed DML statement; the malformed operation reaches the vulnerable DML code path and forces the server process to hang or exit, achieving a complete denial of service.
How to fix it
Upgrade MySQL Server to the latest supported release that resolves the Server DML issue; restrict network access to the database to only trusted clients; enforce least-privilege accounts and enable connection throttling where possible.
How to confirm the fix worked
Compare the installed MySQL version against the affected range (8.0.34 and earlier); after patching, monitor process stability under representative DML workloads and review release notes to confirm the fix is present.
Typical attack path
- Obtain valid high-privileged network credentials for the MySQL instance
- Establish a connection using any supported protocol
- Transmit a crafted DML statement that reaches the vulnerable code path
- Observe server hang or crash confirming denial of service
How to detect it
Correlate MySQL error logs and process termination events with spikes in DML statements from privileged accounts; watch for repeated server restarts or availability alerts that coincide with unusual query patterns.
What your security team should do
- Apply the latest MySQL Server security update as soon as it is available
- Limit database network exposure to approved subnets and hosts
- Review and reduce the number of high-privileged accounts with remote access
- Enable enhanced auditing of DML statements from privileged users
The record
Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: DML). Supported versions that are affected are 8.0.34 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 |
| Red Hat:rhel_software_collections:3::el7 | rh-mysql80-mysql | 0 | 0:8.0.36-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-mysql80-mysql-common | 0 | 0:8.0.36-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-mysql80-mysql-config | 0 | 0:8.0.36-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-mysql80-mysql-config-syspaths | 0 | 0:8.0.36-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-mysql80-mysql-debuginfo | 0 | 0:8.0.36-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-mysql80-mysql-devel | 0 | 0:8.0.36-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-mysql80-mysql-errmsg | 0 | 0:8.0.36-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-mysql80-mysql-icu-data-files | 0 | 0:8.0.36-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-mysql80-mysql-server | 0 | 0:8.0.36-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-mysql80-mysql-server-syspaths | 0 | 0:8.0.36-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-mysql80-mysql-syspaths | 0 | 0:8.0.36-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | rh-mysql80-mysql-test | 0 | 0:8.0.36-1.el7 |
| 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.35-0ubuntu0.20.04.1 |
| Ubuntu:22.04:LTS | mysql-8.0 | 0 | 8.0.35-0ubuntu0.22.04.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 |
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