CVE-2026-21949
MySQL vulnerability analysis and mitigation

Overview

CVE-2026-21949 is a Denial of Service vulnerability in the MySQL Server Optimizer component, affecting MySQL Server versions 9.0.0 through 9.5.0. It was disclosed on January 20, 2026, as part of Oracle's Critical Patch Update (CPU) for January 2026. The vulnerability allows a low-privileged attacker with network access to cause the MySQL Server to hang or repeatedly crash, resulting in complete service unavailability. It carries a CVSS v3.1 base score of 6.5 (Medium) (Oracle CPU Jan 2026).

Technical details

The vulnerability is classified as CWE-400 (Uncontrolled Resource Consumption), rooted in the MySQL Server's query Optimizer component failing to properly limit resource usage when processing specially crafted queries. An attacker with low privileges and network access can send malicious queries via multiple protocols (e.g., MySQL protocol, X Protocol) that trigger excessive resource consumption, causing the server to hang or crash. No user interaction is required, and attack complexity is low, making it straightforward to exploit with valid credentials. The vulnerability was reported by Jingzhou Fu and Zhiyong Wu of WingTecher Lab at Tsinghua University (Oracle CPU Jan 2026).

Impact

Successful exploitation results in a complete Denial of Service (DoS) of the MySQL Server — the server may hang indefinitely or crash repeatedly, making the database entirely unavailable to legitimate users and applications. There is no impact on confidentiality or integrity; the sole impact is on availability. Any application or service dependent on the affected MySQL Server instance would experience outages, potentially causing cascading failures in multi-tier architectures (Oracle CPU Jan 2026).

Exploitation steps

  1. Reconnaissance: Identify MySQL Server instances running versions 9.0.0–9.5.0 exposed on the network using port scanning tools (e.g., Nmap targeting port 3306 or 33060 for X Protocol).
  2. Credential Acquisition: Obtain low-privileged MySQL credentials through phishing, credential stuffing, or reuse of compromised accounts — no administrative privileges are required.
  3. Connect to MySQL Server: Establish a connection to the target MySQL Server using a standard MySQL client or scripting library (e.g., mysql -u lowprivuser -p -h target).
  4. Craft Malicious Query: Construct a specially crafted SQL query targeting the Optimizer component that triggers uncontrolled resource consumption (specific query patterns are not publicly disclosed).
  5. Execute DoS: Submit the crafted query repeatedly or in a loop to cause the server to hang or crash, resulting in complete service unavailability for all connected users and applications (Oracle CPU Jan 2026).

Indicators of compromise

  • Network: Repeated connection attempts or sustained sessions from a low-privileged account to MySQL ports (3306, 33060) with unusually long query execution times.
  • Logs: MySQL error log (mysqld.err) showing repeated crashes, Got signal 11 or similar fatal error entries, or Query execution was interrupted messages correlated with specific user sessions.
  • Process: MySQL server process (mysqld) consuming abnormally high CPU or memory, or the process terminating and restarting repeatedly (visible via system monitoring or systemctl status mysql).
  • Application: Downstream applications reporting database connection timeouts or failures coinciding with the suspicious query activity.

Mitigation and workarounds

Oracle has released patches for this vulnerability as part of the January 2026 Critical Patch Update; users should upgrade MySQL Server to a version beyond 9.5.0 that includes the fix. As interim mitigations, restrict network access to MySQL Server ports (3306, 33060) to only authorized hosts and applications using firewall rules. Additionally, implement query timeouts (max_execution_time) and resource limits for low-privileged accounts, and monitor for repeated server crashes or hangs with automated alerting. Oracle strongly recommends applying the CPU patches without delay rather than relying on workarounds (Oracle CPU Jan 2026).

Community reactions

Red Hat has acknowledged the vulnerability and published a CVE tracking page for affected downstream products (Red Hat CVE). Tenable has released a Nessus detection plugin (ID 296582) and Qualys has added detection (ID 20530), enabling automated scanning for affected systems. No significant public researcher commentary or social media discussion has been observed beyond standard vulnerability tracking and scanner updates.

Additional resources


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-61109MEDIUM6.5
  • MySQL logoMySQL
  • mysql8.4-errmsg
NoYesJul 21, 2026
CVE-2026-61108MEDIUM6.5
  • MySQL logoMySQL
  • mariadb
NoNoJul 21, 2026
CVE-2026-61144MEDIUM4.9
  • MySQL logoMySQL
  • mariadb1011
NoNoJul 21, 2026
CVE-2026-61128MEDIUM4.9
  • MySQL logoMySQL
  • cpe:2.3:a:oracle:mysql_server
NoNoJul 21, 2026
CVE-2026-61096LOW2.9
  • MySQL logoMySQL
  • mysql:8.4::mysql-common
NoYesJul 21, 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