CVE-2021-2307
MySQL vulnerability analysis and mitigation

Overview

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

Technical details

The vulnerability is characterized as easily exploitable and allows an unauthenticated attacker with logon access to the infrastructure where MySQL Server executes to compromise MySQL Server. The vulnerability requires human interaction from a person other than the attacker for successful exploitation. According to the CVSS 3.1 scoring, it has a base score of 6.1, with the vector string: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N (Oracle CPU).

Impact

Successful exploitation of this vulnerability can result in unauthorized access to critical data or complete access to all MySQL Server accessible data. Additionally, it can lead to unauthorized update, insert or delete access to some of MySQL Server accessible data (CERT Advisory).

Mitigation and workarounds

The vulnerability has been patched in MySQL Windows installer version 8.0.24 and 5.7.34. For cases where an update cannot be installed, the vulnerability can be mitigated by creating a C:\build_area directory and restricting ACLs to prevent unprivileged users from being able to write to this location (CERT Advisory).

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-2025-53032MEDIUM4.9
  • MySQLMySQL
  • cpe:2.3:a:oracle:mysql_server
NoNoJul 15, 2025
CVE-2025-53023MEDIUM4.9
  • MySQLMySQL
  • mysql:8.0::mecab
NoYesJul 15, 2025
CVE-2025-50102MEDIUM4.9
  • MySQLMySQL
  • mysql8.4-server
NoYesJul 15, 2025
CVE-2025-50103MEDIUM4.4
  • MySQLMySQL
  • cpe:2.3:a:oracle:mysql_server
NoNoJul 15, 2025
CVE-2025-50104LOW2.7
  • MySQLMySQL
  • mysql:8.0::mysql-server
NoYesJul 15, 2025

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