Skip to main content
Mallory
MediumVulnerability

CVE-2023-21865: Denial of Service in Oracle MySQL Server Optimizer

Published Jan 17, 2023 · Updated 4 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS4.9Medium · v3.1
EPSS1.2%69th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Oracle Corporation
IdentifiersCVE-2023-21865CWE-400

CVE-2023-21865 is a vulnerability in the Server: Optimizer component of Oracle MySQL Server affecting supported versions 8.0.30 and earlier. A highly privileged attacker with network access through multiple protocols can cause the server to hang or crash repeatedly, resulting in complete denial of service. Exploitation has low complexity and requires no user interaction. The underlying defect and triggering input are not specified. The CVSS v3.1 base score is 4.9, with vector CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can cause a MySQL Server hang or frequently repeatable crash, making the database service unavailable and disrupting dependent applications. The assessed impact is limited to availability, with no confidentiality or integrity impact identified.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, reduce exposure of MySQL Server to trusted administrative networks only, restrict high-privilege account access, minimize network reachability over exposed management and database protocols, and monitor for abnormal query activity or repeated crashes affecting the Optimizer path. These measures are compensating controls and do not replace vendor patching.

Remediation

Patch, then assume compromise.

Upgrade MySQL Server to version 8.0.31 or a later patched release. This vulnerability was included in Oracle's January 2023 Critical Patch Update and is listed as fixed in 8.0.31. For distribution-managed installations, apply the corresponding vendor security update.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Oracle CorporationMysql Serverapplication
FAQ

Frequently asked questions

Is CVE-2023-21865 exploited in the wild?
As of Nov 14, 2026, Mallory has no reports of CVE-2023-21865 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2023-21865?
As of Nov 14, 2026, Mallory has found no public exploit for CVE-2023-21865.
Is there a patch for CVE-2023-21865?
Upgrade MySQL Server to version 8.0.31 or a later patched release. This vulnerability was included in Oracle's January 2023 Critical Patch Update and is listed as fixed in 8.0.31.
What products are affected by CVE-2023-21865?
Oracle Corporation Mysql Server.
How severe is CVE-2023-21865?
CVE-2023-21865 has a CVSS v3.1 score of 4.9 (Medium) and an EPSS score of 1.2% (69th percentile) as of Nov 14, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.