CVE-2026-21998
MySQL vulnerability analysis and mitigation

Overview

CVE-2026-21998 is a Denial of Service vulnerability in the MySQL Server Optimizer component of Oracle MySQL. It affects MySQL Server versions 8.0.0–8.0.45, 8.4.0–8.4.8, and 9.0.0–9.6.0. The vulnerability was disclosed on April 21, 2026, as part of Oracle's April 2026 Critical Patch Update. It carries a CVSS v3.1 base score of 4.9 (Medium) (Oracle Advisory, GitHub Advisory).

Technical details

The vulnerability is classified as CWE-400 (Uncontrolled Resource Consumption), meaning the MySQL Server Optimizer component fails to properly control resource allocation when processing certain inputs, which can lead to a server hang or crash (GitHub Advisory). An attacker with high privileges (e.g., a DBA-level account) and network access can exploit this flaw over multiple protocols without requiring user interaction. The low attack complexity means that once the attacker has the necessary credentials, exploitation is straightforward and repeatable. No public proof-of-concept code or detailed technical write-up has been identified at this time (Oracle Advisory).

Impact

Successful exploitation results in a complete Denial of Service (DoS) of the MySQL Server — specifically, the ability to cause the server to hang or crash in a frequently repeatable manner. There is no impact on confidentiality or data integrity; the vulnerability is limited to availability. Any application or service dependent on the affected MySQL Server instance would experience an outage for the duration of the attack (Oracle Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (GitHub Advisory). The EPSS score is approximately 0.037–0.047%, indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires high privileges (network-accessible, authenticated attacker), which limits the attack surface compared to unauthenticated vulnerabilities.

Mitigation and workarounds

Oracle has released patches for all affected versions as part of the April 2026 Critical Patch Update. Administrators should upgrade MySQL Server to versions beyond 8.0.45, 8.4.8, and 9.6.0 respectively, or apply the specific patches provided in the Oracle CPU documentation (Oracle Advisory). As a temporary workaround, restrict network access to the MySQL Server to trusted, high-privileged administrators only, and implement network segmentation to limit exposure. Oracle strongly recommends applying the patch rather than relying on network-level controls as a long-term solution.

Community reactions

Oracle addressed this vulnerability as part of its April 2026 Critical Patch Update, which contained 481 new security patches across its product families. No notable independent researcher commentary or significant social media discussion specific to CVE-2026-21998 has been identified, consistent with its medium severity rating and the requirement for high privileges to exploit (Oracle Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Ubuntu

Fixed

bionic (esm-apps)

mariadb-10.1

Not Affected

devel

mysql-8.4: 8.4.10-0ubuntu2

Affected

focal (esm-infra)

mysql-8.0: 8.0.46-0ubuntu0.20.04.1+esm2

Fixed

jammy

mysql-8.0: 8.0.46-0ubuntu0.22.04.2

Fixed

jammy (esm-apps)

mariadb-10.6

Not Affected

noble

mysql-8.0: 8.0.46-0ubuntu0.24.04.2

Fixed

noble (esm-apps)

mariadb

Not Affected

questing

mysql-8.4: 8.4.9-0ubuntu0.25.10.1

Fixed

RHEL / CentOS

Fixed

RHEL 8

:appstream:mysql:8.0:8100020260609092222:489197e6/mysql-0:8.0-8100020260609092222.489197e6.src

Fixed

RHEL 9

:appstream:mysql-0:8.0.46-1.el9_8.src

Fixed

RHEL 10

mysql8.4-0:8.4.9-1.el10_2.src

Fixed

SourceThis report was generated using AI

Related MySQL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-63385CRITICAL9.2
  • MySQL logoMySQL
  • libevent2-doc
NoYesAug 20, 2026
CVE-2026-63384HIGH8.7
  • MySQL logoMySQL
  • libevent-headers
NoYesAug 20, 2026
CVE-2026-63383HIGH8.7
  • MySQL logoMySQL
  • libevent2.src
NoYesAug 20, 2026
CVE-2026-63388HIGH8.4
  • MySQL logoMySQL
  • libevent-debuginfo
NoYesAug 20, 2026
CVE-2026-63387HIGH7
  • MySQL logoMySQL
  • mysql
NoYesAug 20, 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

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