# CVE-2025-21548: Denial of service in MySQL Connectors

> High-privileged attackers can cause crashes and modify data in MySQL Connector/Python via network access, requiring user interaction.

- **Severity:** Medium 6.4 (`CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 21 Jan 2025
- **Updated:** 18 Mar 2025
- **Also known as:** GHSA-5cvp-4pwp-rvg8, UBUNTU-CVE-2025-21548

## What is CVE-2025-21548?

CVE-2025-21548 is a medium-severity denial of service vulnerability in Oracle Corporation MySQL Connectors, published on 21 Jan 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

### Official description

Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/Python).  Supported versions that are affected are 9.1.0 and prior. Easily exploitable vulnerability allows high privileged attacker with network access via multiple protocols to compromise MySQL Connectors.  Successful attacks require human interaction from a person other than the attacker. Successful attacks of this vulnerability can result in  unauthorized creation, deletion or modification access to critical data or all MySQL Connectors accessible data as well as  unauthorized read access to a subset of 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 6.4 (Confidentiality, Integrity and Availability impacts).  CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:H).

Weakness: CWE-400 (Uncontrolled Resource Consumption)

## Which versions are affected by CVE-2025-21548?

It affects 1 product.


Products: Oracle Mysql Connector\/Python.

## How do I fix CVE-2025-21548?

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

## Is CVE-2025-21548 being exploited?

There is no known exploitation of CVE-2025-21548 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-2024-21170](https://insights.sbomify.com/CVE-2024-21170/): Other in MySQL Connectors (medium 6.3)
- [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-2025-21548 and fix it if it is affected.

What it is: CVE-2025-21548 is a medium-severity denial of service vulnerability in Oracle Corporation MySQL Connectors, published on 21 Jan 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2025-21548 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-2025-21548/ (Markdown: https://insights.sbomify.com/CVE-2025-21548/index.md)
```

## Sources

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

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