Skip to main content

MySQL Server CVE-2026-21998

| EUVDEUVD-2026-24295 MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-04-21 oracle GHSA-x878-48g9-62p4
4.9
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain high-privilege MySQL credentials
  2. Delivery
    Connect to MySQL Server over network (native or X Protocol)
  3. Exploit
    Send crafted optimizer-triggering SQL query
  4. Execution
    Trigger uncontrolled resource consumption in Optimizer
  5. Persist
    MySQL Server hangs or crashes
  6. Impact
    Denial of service for all connected clients

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the attacker hold a high-privilege MySQL account - DBA, SUPER, or equivalent - as confirmed by the CVSS vector's PR:H metric; standard low-privilege application accounts are insufficient. The attack is conducted remotely over the network (AV:N) and can use multiple MySQL protocols including the native protocol (port 3306) and X Protocol (port 33060), with no user interaction required (UI:N). Exploitation is constrained by: the mandatory high-privilege credential prerequisite, which limits the realistic attacker pool to insiders or post-compromise lateral movement; SSVC automatable=no, indicating the attack cannot be trivially mass-scripted; and the absence of any known public exploit. Environments that restrict high-privilege MySQL account access to specific trusted internal hosts and enforce credential least-privilege meaningfully reduce the practical attack surface beyond what the raw CVSS score reflects.

Impact

The CVSS 3.1 base score of 4.9 (Medium) is appropriate and primarily shaped by PR:H - the attacker must already hold a high-privilege MySQL account (e.g., DBA or SUPER user) to trigger the flaw. This single constraint dramatically narrows the realistic attacker population to insiders, compromised application service accounts with over-provisioned privileges, or post-breach lateral movement scenarios. EPSS at 0.04% (11th percentile) corroborates a very low probability of observed in-the-wild exploitation. CISA SSVC confirms exploitation status as 'none,' automatable as 'no' (consistent with the authentication barrier), and technical impact as 'partial.' No KEV listing and no public POC further reduce urgency. The primary risk scenario is an insider threat or an attacker who has already compromised high-privilege credentials. The broad version coverage across three LTS branches increases the organizational patch surface but does not elevate exploitation likelihood. Organizations with properly segmented MySQL access - where DBA credentials are tightly controlled and MySQL ports are firewalled - face minimal immediate operational risk.

Exploit ScenarioDerived

An insider or an attacker who has obtained high-privilege MySQL credentials (DBA-level or SUPER access) connects to the MySQL server over the network using the native protocol or X Protocol and submits a specially crafted SQL query designed to trigger uncontrolled resource consumption in the Optimizer component. The server processes the malformed query plan without adequate resource bounds, exhausting CPU or memory and causing the MySQL process to hang or crash, denying service to all connected clients and applications. No public exploit code is known at time of analysis, and the PR:H requirement makes opportunistic mass exploitation impractical.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Denial-of-service in MySQL Server's Optimizer component allows high-privileged, network-authenticated attackers to cause a complete crash or hang across three active release trains (8.0.x, 8.4.x, 9.x). The broad version coverage and multi-protocol attack surface are notable, but the PR:H requirement limits the attacker pool to actors who already hold elevated MySQL credentials. No public exploit has been identified and EPSS at 0.04% (11th percentile) confirms low observed exploitation probability; Oracle has released a patch via the April 2026 Critical Patch Update.

RemediationAI

The primary fix is to upgrade MySQL Server to the patched version released as part of Oracle's Critical Patch Update for April 2026; consult https://www.oracle.com/security-alerts/cpuapr2026.html for the specific patched releases across the 8.0, 8.4, and 9.x trains - exact fix version numbers (e.g., 8.0.46, 8.4.9) are not explicitly enumerated in available reference data and should be confirmed directly from the Oracle advisory. Red Hat and SUSE users should apply distribution-provided MySQL package updates, as both vendors are tagged in associated advisories. As a compensating control prior to patching, restrict high-privilege MySQL account usage to audited, trusted hosts using MySQL's GRANT ... REQUIRE statements or network-level firewall rules limiting access to MySQL ports (default 3306/3306 X Protocol 33060); note this does not fix the underlying optimizer flaw and constitutes a defense-in-depth measure only. Additionally, review and minimize the number of accounts granted SUPER or DBA-equivalent privileges to reduce the attacker surface if credentials are compromised.

Affected VersionsENISA

MySQL Server 9.0.0 ≤9.6.0
MySQL Server 8.0.0 ≤8.0.45
MySQL Server 8.4.0 ≤8.4.8

Affected Packages

euvd mysql_server no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in MySQL Server's Optimizer component, which is responsible for parsing, planning, and optimizing SQL query execution paths. CWE-400 (Uncontrolled Resource Consumption) indicates that a specially crafted query or optimizer input can exhaust server-side resources - CPU cycles, memory, or internal execution state - without adequate bounds enforcement, resulting in a hang or repeatable crash. The affected CPE (cpe:2.3:a:oracle_corporation:mysql_server) spans three major release trains (8.0, 8.4, and 9.x), suggesting the flaw exists in a shared optimizer code path rather than a version-specific feature introduced in one branch. Oracle's description that exploitation occurs 'via multiple protocols' means the attack surface includes MySQL's native client protocol as well as the X Protocol used by MySQL Shell and connectors, widening the exposure beyond traditional SQL clients.

Know when Mysql Server gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 4.9 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 4.9 MEDIUM

Network-accessible Optimizer DoS requiring high-privilege credentials; no confidentiality or integrity impact; PR:H accurately reflects the mandatory DBA-level access prerequisite.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 4.9 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Optimizer). Supported versions that are affected are 8.0.0-8.0.45, 8.4.0-8.4.8 and 9.0.0-9.6.0. 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).

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Prevalence
High
widely deployed open-source RDBMS across enterprise and cloud environments
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2021-3711 CRITICAL POC
9.8 Aug 24

In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Rated cri

CVE-2021-21351 CRITICAL POC
9.1 Mar 23

XStream is a Java library to serialize objects to XML and back again. Rated critical severity (CVSS 9.1), this vulnerabi

CVE-2021-21344 CRITICAL POC
9.8 Mar 23

XStream is a Java library to serialize objects to XML and back again. Rated critical severity (CVSS 9.8), this vulnerabi

CVE-2021-22901 HIGH POC
8.1 Jun 11

curl 7.75.0 through 7.76.1 suffers from a use-after-free vulnerability resulting in already freed memory being used when

CVE-2022-1292 HIGH
7.3 May 03

The c_rehash script does not properly sanitise shell metacharacters to prevent command injection. Rated high severity (C

CVE-2021-3449 MEDIUM
5.9 Mar 25

An OpenSSL TLS server may crash if sent a maliciously crafted renegotiation ClientHello message from a client. Rated med

CVE-2019-5436 HIGH POC
7.8 May 28

A heap buffer overflow in the TFTP receiving code allows for DoS or arbitrary code execution in libcurl versions 7.19.4

CVE-2021-22945 CRITICAL POC
9.1 Sep 23

When sending data to an MQTT server, libcurl <= 7.73.0 and 7.78.0 could in some circumstances erroneously keep a pointer

CVE-2019-3822 CRITICAL POC
9.8 Feb 06

libcurl versions from 7.36.0 to before 7.64.0 are vulnerable to a stack-based buffer overflow. Rated critical severity (

CVE-2022-27778 HIGH POC
8.1 Jun 02

A use of incorrectly resolved name vulnerability fixed in 7.83.1 might remove the wrong file when `--no-clobber` is used

CVE-2021-22926 HIGH POC
7.5 Aug 05

libcurl-using applications can ask for a specific client certificate to be used in a transfer. Rated high severity (CVSS

CVE-2021-22946 HIGH POC
7.5 Sep 29

A user can tell curl >= 7.20.0 and <= 7.78.0 to require a successful upgrade to TLS when speaking to an IMAP, POP3 or FT

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Liberty Linux 9 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy