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

Source: https://junglewise.ai/threats/cve-2021-2471-incorrect-authorization-in-mysql-connector-java  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-05-24  
License: CC BY 4.0 with a link back

CVE-2021-2471 · Severity: low · CVSS 3.1 · Published 2022-05-24

Incorrect Authorization in MySQL Connector Java

Technologies: [mysql:mysql-connector-java (Maven)](https://junglewise.ai/threats/technologies/mysql-mysql-connector-java). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2021-2471 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-2471 being exploited in the wild.

**How severe is CVE-2021-2471?** Low severity, with a CVSS score of 3.1, published 24 May 2022.

**Which products and versions are affected?** mysql:mysql-connector-java (Maven) ECOSYSTEM:introduced=8.0.0,fixed=8.0.27.

**Is there a fix for CVE-2021-2471?** Yes. mysql:mysql-connector-java (Maven): upgrade to 8.0.27 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-2471?** Check whether you run mysql:mysql-connector-java (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- mysql:mysql-connector-java (Maven): upgrade to 8.0.27 or later

  ```sh
  # set mysql:mysql-connector-java to 8.0.27 in your pom.xml or build.gradle
  ```


## Affected products

- mysql:mysql-connector-java (Maven) ECOSYSTEM:introduced=8.0.0,fixed=8.0.27

## Identifiers

- CVE-2021-2471
- GHSA-w6f2-8wx4-47r5

## Related threats

- [MySQL Connectors takeover vulnerability](https://junglewise.ai/threats/cve-2023-22102-mysql-connectors-takeover-vulnerability)
- [Improper Access Control in MySQL Connectors Java](https://junglewise.ai/threats/cve-2015-2575-improper-access-control-in-mysql-connectors-java)
- [Improper Privilege Management in MySQL Connectors Java](https://junglewise.ai/threats/cve-2018-3258-improper-privilege-management-in-mysql-connectors-java)
- [Exposure of Sensitive Information to an Unauthorized Actor in Oracle MySQL Connectors Java](https://junglewise.ai/threats/cve-2017-3589-exposure-of-sensitive-information-to-an-unauthorized-actor-in)
- [Exposure of Sensitive Information to an Unauthorized Actor in Oracle MySQL Connectors Java](https://junglewise.ai/threats/cve-2017-3586-exposure-of-sensitive-information-to-an-unauthorized-actor-in)
