CVE-2024-21162: Oracle MySQL Server · Easily exploitable vulnerability allows high privileged attacker with network access via multiple
Affects Oracle MySQL ServerSource CVE Database V5
Not known to be exploited · CVSS 4.9 Medium : upgrade to 8.0.38 when convenient.
Data as of 26 Oct 2026, 11:42 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 57% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 8.0.38
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 16 Jul 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade mysql/mysql-server to 8.0.38.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Mysqlmysql/mysql-serverpkg:deb/mysql/mysql-serverOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. 2. Restrict network access to MySQL Server instances by implementing strict firewall rules and network segmentation, allowing only trusted hosts and services to communicate with the database server. 3. Enforce the principle of least privilege by limiting high-level privileges on MySQL servers to only essential administrative accounts and regularly auditing these privileges. 4. Implement robust internal monitoring and alerting for unusual MySQL server behavior, such as frequent crashes or hangs, to enable rapid detection and response. 5. Use intrusion detection and prevention systems (IDPS) to identify and block suspicious network activity targeting MySQL services. 6. Harden MySQL configurations by disabling unnecessary protocols and services that could be exploited to gain network access. 7. Conduct regular security assessments and penetration testing focusing on privilege escalation and lateral movement scenarios within the network. 8. Prepare incident response plans that include procedures for MySQL service recovery and forensic analysis in case of DoS attacks. 9. Consider deploying high availability and failover mechanisms to minimize downtime if a MySQL instance becomes unavailable. 10. Educate privileged users on security best practices to reduce the risk of credential compromise.
Description
Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Optimizer). Supported versions that are affected are 8.0.37 and prior and 8.4.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).