{"answers":{"affected":"3 open source packages ship an affected version, including mysql-connector-python. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-21272 in the wild and no public exploit code.","fix":"Upgrade mysql-connector-python to 9.1.0 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2024-21272 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2024-21272 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mysql-connector-python (PyPI): affected all versions; fixed in 9.1.0\n- mysql-connector-python (PyPI): affected all versions; fixed in 9.1.0\n- mysql-connector-python (PyPI): affected all versions; fixed in 9.1.0\n\nTask:\n1. 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.\n2. 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.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-21272/ (Markdown: https://insights.sbomify.com/CVE-2024-21272/index.md)","id":"CVE-2024-21272","markdown":"https://insights.sbomify.com/CVE-2024-21272/index.md","name":"CVE-2024-21272","record":{"aliases":["CLSA-2025-1765930332","ECHO-a60d-61cf-4d04","GHSA-hgjp-83m4-h4fj","PYSEC-2026-1685","UBUNTU-CVE-2024-21272","openSUSE-SU-2024:0351-1","openSUSE-SU-2024:14421-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"MySQL Connector/Python","requires_auth":"low_privilege","summary":"A difficult-to-exploit vulnerability in MySQL Connector/Python allows low-privileged attackers to compromise the connector, leading to full takeover.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"oracle","cpe":[{"product":"mysql","vendor":"oracle"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"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).","ecosystems":["PyPI","SUSE:Package Hub 15 SP5","openSUSE:Leap 15.5","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"MySQL Connector/Python connector takeover vulnerability","id":"CVE-2024-21272","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"oracle:mysql","products":["oracle:mysql"],"type":"auth_bypass","year":"2024"},"n_packages":6,"n_references":1,"next":{"headline":"Information disclosure in Oracle VM VirtualBox","id":"CVE-2024-21273"},"packages":[{"ecosystem":"PyPI","fixed":["9.1.0"],"introduced":["0"],"last_affected":[],"package":"mysql-connector-python","purl":null,"source":"GHSA-hgjp-83m4-h4fj"},{"ecosystem":"PyPI","fixed":["9.1.0"],"introduced":["0"],"last_affected":[],"package":"mysql-connector-python","purl":"pkg:pypi/mysql-connector-python","source":"GHSA-hgjp-83m4-h4fj"},{"ecosystem":"PyPI","fixed":["9.1.0"],"introduced":["0"],"last_affected":[],"package":"mysql-connector-python","purl":"pkg:pypi/mysql-connector-python","source":"PYSEC-2026-1685"},{"ecosystem":"SUSE:Package Hub 15 SP5","fixed":["9.1.0-bp155.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-mysql-connector-python","purl":"pkg:rpm/suse/python-mysql-connector-python\u0026distro=SUSE%20Package%20Hub%2015%20SP5","source":"openSUSE-SU-2024:0351-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["9.1.0-bp155.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-mysql-connector-python","purl":"pkg:rpm/opensuse/python-mysql-connector-python\u0026distro=openSUSE%20Leap%2015.5","source":"openSUSE-SU-2024:0351-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["9.1.0-1.1"],"introduced":["0"],"last_affected":[],"package":"python-mysql-connector-python","purl":"pkg:rpm/opensuse/python-mysql-connector-python\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14421-1"}],"prev":{"headline":"Missing authorization in Oracle Field Service","id":"CVE-2024-21271"},"products":["MySQL Connectors"],"published":"2024-10-15","related":[{"cvss_score":9.8,"headline":"Auth bypass in n/a","id":"CVE-2016-0639","kev_date_added":null,"published":"2016-04-21"},{"cvss_score":9,"headline":"Privilege escalation in n/a","id":"CVE-2003-0150","kev_date_added":null,"published":"2003-03-21"},{"cvss_score":8.5,"headline":"Denial of service in n/a","id":"CVE-2005-2572","kev_date_added":null,"published":"2005-08-16"},{"cvss_score":8,"headline":"Auth bypass in MySQL Server","id":"CVE-2020-14878","kev_date_added":null,"published":"2020-10-21"},{"cvss_score":7.8,"headline":"Memory corruption in n/a","id":"CVE-2002-0969","kev_date_added":null,"published":"2004-09-01"},{"cvss_score":7.7,"headline":"Denial of service in n/a","id":"CVE-2016-3440","kev_date_added":null,"published":"2016-07-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-10-16","vendors":["Oracle Corporation"]},"summary":"A difficult-to-exploit vulnerability in MySQL Connector/Python allows low-privileged attackers to compromise the connector, leading to full takeover.","url":"https://insights.sbomify.com/CVE-2024-21272/"}