MySQLDatabase / datastore · Oracle

CVE-2023-21980

HIGH · 7.1 CVSS v3.1 Published 2023-04-18
Fix available
A fix is available. Upgrade to after 8.0.32 or later.
See remediation →
75/100
Remediation priority · High
Remotely reachable

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
Vulnerability in the MySQL Server product of Oracle MySQL (component: Client programs). Supported versions that are affected are 5.7.41 and prior and 8.0.32 and prior. Difficult to exploit vulnerability allows low privileged attacker with network access via multiple protocols to compromise MySQL Server. Successful attacks require human interaction from a person other than the attacker. Successful attacks of this vulnerability can result in takeover of MySQL Server. CVSS 3.1 Base Score 7.1 (Confidentiality, Integrity and Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H).

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Vulnerability in MySQL Server's client programs component affecting versions 5.7.41 and prior and 8.0.32 and prior. Allows a low-privileged attacker with network access via multiple protocols to compromise MySQL Server, but requires human interaction from a person other than the attacker. Successful exploitation can result in complete takeover of MySQL Server.

MitigationApply Oracle's security updates for MySQL Server to obtain versions beyond 5.7.41 and 8.0.32, or apply the relevant quarterly security patch. Test thoroughly in non-production before deploying to production due to the critical impact.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
MySQLDatabase / datastore
Affected:>= 5.0.0, <= 5.7.41>= 8.0.0, <= 8.0.32

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
High
Privileges
Low
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify installed MySQL Server version
    Run `mysql --version` or `mysqld --version` from command line, or query the server with `SELECT VERSION();` if you have access
    Affected if The reported version is 5.7.41 or lower, OR 8.0.32 or lower
  2. Check if MySQL client programs are installed
    Locate MySQL client binaries such as mysql, mysqldump, mysqlpump, or mysqlimport using `which mysql mysqldump mysqlpump` or by listing files in the MySQL bin directory
    Affected if These client programs exist and their version matches the affected ranges above
  3. Verify network accessibility of MySQL services
    Check if MySQL Server is listening on network interfaces (not just localhost) by reviewing mysqld configuration files for `bind-address` settings or running `netstat -tlnp | grep 3306`
    Affected if MySQL is bound to a non-localhost interface and is network-accessible
  4. Identify human interaction dependencies
    Review whether MySQL client programs are used in automated scripts or can be triggered by external users, since exploitation requires human interaction from a person other than the attacker
    Affected if Client programs are accessible to low-privileged users or external parties who could be tricked into interacting with malicious MySQL connections

You are affected if your MySQL Server version is 5.7.41 or lower, or 8.0.32 or lower, and the client programs component is network-accessible to low-privileged users who could be socially engineered into triggering the attack.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to a release after 8.0.32
Interim mitigation

Apply Oracle's security updates for MySQL Server to obtain versions beyond 5.7.41 and 8.0.32, or apply the relevant quarterly security patch. Test thoroughly in non-production before deploying to production due to the critical impact.

Recommended fix High confidence

MySQL 5.7.42+ or 8.0.33+ (Oracle Critical Patch Update April 2023)

  1. Backup all MySQL databases before upgrading
  2. Stop the MySQL Server service
  3. Upgrade MySQL Server to version 5.7.42 or later (if using 5.x), or to version 8.0.33 or later (if using 8.x)
  4. Start the MySQL Server service
  5. Verify the MySQL Server version matches the expected fixed release
  6. Test application connectivity to ensure normal operation
Caveat Review Oracle's MySQL 5.7.42 and 8.0.33 release notes for any compatibility changes; minor version upgrades typically have low risk but always test in staging first

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in MySQL Scoped from the published advisory
  • Consultation6.0 h
  • Implementation12.0 h
  • Testing10.0 h
  • Review / QA6.0 h
34.0 hours of engineering $5,940
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $9,504.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2023-21980 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2023-21980 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data