CVE-2021-2021: 
MySQL vulnerability analysis and mitigation

Overview

CVE-2021-2021 is a vulnerability in the MySQL Server product of Oracle MySQL, specifically affecting the Server Optimizer component. The vulnerability affects MySQL versions 8.0.22 and prior. This vulnerability was disclosed in January 2021 as part of Oracle's Critical Patch Update (Oracle CPU).

Technical details

The vulnerability is characterized as an easily exploitable issue that allows high-privileged attackers with network access via multiple protocols to compromise MySQL Server. The vulnerability has received a CVSS 3.1 Base Score of 4.9 (Medium severity) with the following vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

Successful exploitation of this vulnerability can result in unauthorized ability to cause a hang or frequently repeatable crash, leading to a complete Denial of Service (DoS) of MySQL Server (NVD).

Exploitability

The vulnerability is considered easily exploitable but requires high privileges and network access. The attack can be conducted via multiple protocols. No known exploits were publicly available at the time of disclosure (Oracle CPU).

Mitigation and workarounds

The vulnerability has been fixed in MySQL version 8.0.23. Users are advised to upgrade to this version or later. For systems that cannot be immediately upgraded, network access to the MySQL Server should be restricted to trusted hosts and users (Oracle CPU, Gentoo Security).

Additional resources


Source: This report was generated using AI

Related MySQL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-114952CRITICAL9.1
  • MySQL logoMySQL
  • mysql:8.4::mecab
NoYesNov 17, 2026
CVE-2026-114951HIGH7.2
  • MySQL logoMySQL
  • mysql8.4
NoYesNov 17, 2026
CVE-2026-114950HIGH7.2
  • MySQL logoMySQL
  • mysql:8.4::mysql
NoYesNov 17, 2026
CVE-2026-127428HIGH7.1
  • MySQL logoMySQL
  • mysql-9.7
NoYesNov 17, 2026
CVE-2026-114953MEDIUM6.5
  • MySQL logoMySQL
  • mysql:8.4::mysql-errmsg
NoYesNov 17, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management