# CVE-2024-21170: Other in MySQL Connectors

> A low-privileged attacker can compromise MySQL Connector/Python to read, modify, or disrupt accessible data via network access.

- **Severity:** Medium 6.3 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 16 Jul 2024
- **Updated:** 19 Mar 2025
- **Also known as:** GHSA-9qqr-ccc4-rhg7, UBUNTU-CVE-2024-21170

## What is CVE-2024-21170?

CVE-2024-21170 is a medium-severity vulnerability in Oracle Corporation MySQL Connectors, published on 16 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/Python).  Supported versions that are affected are 8.4.0 and prior. Easily exploitable vulnerability allows low privileged attacker with network access via multiple protocols to compromise MySQL Connectors.  Successful attacks of this vulnerability can result in  unauthorized update, insert or delete access to some of MySQL Connectors accessible data as well as  unauthorized read access to a subset of MySQL Connectors accessible data and unauthorized ability to cause a partial denial of service (partial DOS) of MySQL Connectors. CVSS 3.1 Base Score 6.3 (Confidentiality, Integrity and Availability impacts).  CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).

## Which versions are affected by CVE-2024-21170?

It affects 1 product.


Products: Oracle Mysql Connector\/Python.

## How do I fix CVE-2024-21170?

No fix has been published for CVE-2024-21170 yet. Limit exposure of the affected software until one is available.

## Is CVE-2024-21170 being exploited?

There is no known exploitation of CVE-2024-21170 in the wild and no public exploit code.

## Other vulnerabilities in Oracle Corporation MySQL Connectors

- [CVE-2024-21090](https://insights.sbomify.com/CVE-2024-21090/): Denial of service in MySQL Connectors (high 7.5)
- [CVE-2025-21548](https://insights.sbomify.com/CVE-2025-21548/): Denial of service in MySQL Connectors (medium 6.4)
- [CVE-2016-5598](https://insights.sbomify.com/CVE-2016-5598/): Other in n/a (medium 5.6)
- [CVE-2025-30714](https://insights.sbomify.com/CVE-2025-30714/): Information disclosure in MySQL Connectors (medium 4.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-21170 and fix it if it is affected.

What it is: CVE-2024-21170 is a medium-severity vulnerability in Oracle Corporation MySQL Connectors, published on 16 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-21170 in the wild and no public exploit code.

Affected product: Oracle Corporation MySQL Connectors. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-21170/ (Markdown: https://insights.sbomify.com/CVE-2024-21170/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-21170
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-21170
- OSV: https://osv.dev/vulnerability/CVE-2024-21170

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-21170/
Summaries are generated and may contain mistakes; the official description above is the record.
