CVE-2024-21272 MySQL Connector/Python connector takeover vulnerability

High 7.5 Published Updated

A difficult-to-exploit vulnerability in MySQL Connector/Python allows low-privileged attackers to compromise the connector, leading to full takeover.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-21272?

CVE-2024-21272 is a high-severity authentication bypass vulnerability in Oracle Mysql, published on 15 Oct 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 9.0.0 and prior. Difficult to exploit vulnerability allows low privileged attacker with network access via multiple protocols to compromise MySQL Connectors. Successful attacks of this vulnerability can result in takeover of MySQL Connectors. CVSS 3.1 Base Score 7.5 (Confidentiality, Integrity and Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H).

Weakness: CWE-306

Which versions are affected by CVE-2024-21272?

3 open source packages ship an affected version, including mysql-connector-python. It affects 1 product.

PackageAffectedFixed in
mysql-connector-python PyPIAll versions9.1.0
mysql-connector-python PyPIAll versions9.1.0
mysql-connector-python PyPIAll versions9.1.0
Linux distribution packages (3)
python-mysql-connector-python SUSE:Package Hub 15 SP5All versions9.1.0-bp155.3.3.1
python-mysql-connector-python openSUSE:Leap 15.5All versions9.1.0-bp155.3.3.1
python-mysql-connector-python openSUSE:TumbleweedAll versions9.1.0-1.1

Products include Oracle Mysql.

How do I fix CVE-2024-21272?

Upgrade mysql-connector-python to 9.1.0 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2024-21272 being exploited?

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

All Oracle Mysql vulnerabilities

Sources

Also known as CLSA-2025-1765930332, ECHO-a60d-61cf-4d04, GHSA-hgjp-83m4-h4fj, PYSEC-2026-1685, UBUNTU-CVE-2024-21272, openSUSE-SU-2024:0351-1 and 1 more.

Is CVE-2024-21272 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free