CVE-2021-2471: Incorrect Authorization in MySQL Connector Java

mysql:mysql-connector-java Updated 02 Oct 2025

Summary

24/05/2022
Yes i
Moderate
5.9

CVE-2021-2471: Incorrect Authorization in MySQL Connector Java. Affects mysql:mysql-connector-java versions >= 8.0.0, < 8.0.27. Fixed in 8.0.27. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

MySQL Connector Java is a library that enables Java applications to connect to and interact with MySQL databases. It provides a set of classes and methods for establishing connections, executing queries, and managing data. The vulnerability identified as CVE-2021-2471 affects versions 8.0.26 and prior of the MySQL Connector Java. This vulnerability allows a high privileged attacker with network access to compromise MySQL Connectors. Exploiting this vulnerability can lead to unauthorized access to critical data, complete access to all accessible data, and the ability to cause a denial-of-service (DoS) attack by crashing the MySQL Connectors. The Common Vulnerability Scoring System (CVSS) 3.1 Base Score for this vulnerability is 5.9, indicating moderate severity in terms of confidentiality and availability impacts.

Vulnerability Detail

The vulnerability in MySQL Connector Java arises from an incorrect authorization issue. It can be exploited by a high privileged attacker with network access via multiple protocols. The vulnerability allows unauthorized access to critical data or complete access to all MySQL Connectors accessible data. Additionally, the attacker can cause a hang or frequently repeatable crash, resulting in a denial-of-service (DoS) attack. The vulnerability has a CVSS Vector of CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:H.

How To Fix

Latest published version: 8.0.33 as of 23 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

8.0.27

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended course of action is to upgrade to the latest version of the MySQL Connector Java.

Conclusion

The vulnerability identified as CVE-2021-2471 in MySQL Connector Java can lead to unauthorized access to critical data, complete access to all accessible data, and the ability to cause a denial-of-service (DoS) attack. It is crucial to upgrade to version 8.0.27 or later of the MySQL Connector Java to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for mysql:mysql-connector-java →

Share this vulnerability

FAQ

MySQL Connector Java is a library that enables Java applications to connect to and interact with MySQL databases. It provides a set of classes and methods for establishing connections, executing queries, and managing data.

Versions 8.0.26 and prior of the MySQL Connector Java are affected by this vulnerability.

Exploiting this vulnerability can result in unauthorized access to critical data, complete access to all MySQL Connectors accessible data, and the ability to cause a hang or frequently repeatable crash (DoS) of MySQL Connectors.

The CVSS 3.1 Base Score for this vulnerability is 5.9, indicating moderate severity in terms of confidentiality and availability impacts.

To fix this vulnerability, it is recommended to upgrade to version 8.0.27 or later of the MySQL Connector Java.

Related vulnerabilities

Recent vulnerabilities recorded for mysql:mysql-connector-java.

How To Fix

Latest published version: 8.0.33 as of 23 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

8.0.27

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback