Skip to content
Heist/ feed
Back to feed
Medium

mysql-connector-python — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-21548

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).

Products
mysql-connector-python
Affected versions
2.0.4-1, 2.1.6-1, 26.7.0-1, 8.0.15-1, 8.0.15-2build1, 8.0.15-3, 8.0.15-4, 9.2.0-1, 9.3.0-1, 9.5.0-1, 9.7.0-1, 9.7.0-2
Fixed versions
Not specified
CVEs
CVE-2025-21548
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:31 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-21548

core-osv · Original source

Published 21 Jan 2025, 21:15 UTC

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).

osv:UBUNTU-CVE-2025-21548

mysql-connector-python

Fixed versions: Not specified

mysql-connector-python

Fixed versions: Not specified

mysql-connector-python

Fixed versions: Not specified

mysql-connector-python

Fixed versions: Not specified

mysql-connector-python

Fixed versions: Not specified

mysql-connector-python

Fixed versions: Not specified

mysql-connector-python

Fixed versions: Not specified

mysql-connector-python

Fixed versions: Not specified

Complete source record
{
  "id": "7f52b1fd2b224517b1099d43cc5715e713f366c9491862c5cba2f67255d69e02",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-21548",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-21548",
    "summary": "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).",
    "evidence": "osv:UBUNTU-CVE-2025-21548",
    "products": [
      {
        "name": {
          "value": "mysql-connector-python",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.4-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mysql-connector-python",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.1.6-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mysql-connector-python",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "8.0.15-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "8.0.15-2build1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mysql-connector-python",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "8.0.15-2build1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mysql-connector-python",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "8.0.15-3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.0.15-4",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mysql-connector-python",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "9.2.0-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "9.3.0-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mysql-connector-python",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "9.5.0-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "9.7.0-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "9.7.0-2",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "26.7.0-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mysql-connector-python",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "9.3.0-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "9.5.0-1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2025-21548",
      "aliases": [
        "UBUNTU-CVE-2025-21548"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mysql-connector-python",
            "purl": "pkg:deb/ubuntu/mysql-connector-python?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "2.0.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-21548.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-mysql.connector",
                "binary_version": "2.0.4-1"
              },
              {
                "binary_name": "python3-mysql.connector",
                "binary_version": "2.0.4-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mysql-connector-python",
            "purl": "pkg:deb/ubuntu/mysql-connector-python?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "2.1.6-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-21548.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-mysql.connector",
                "binary_version": "2.1.6-1"
              },
              {
                "binary_name": "python3-mysql.connector",
                "binary_version": "2.1.6-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mysql-connector-python",
            "purl": "pkg:deb/ubuntu/mysql-connector-python?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "8.0.15-1",
            "8.0.15-2build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-21548.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-mysql.connector",
                "binary_version": "8.0.15-2build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mysql-connector-python",
            "purl": "pkg:deb/ubuntu/mysql-connector-python?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "8.0.15-2build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-21548.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-mysql.connector",
                "binary_version": "8.0.15-2build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mysql-connector-python",
            "purl": "pkg:deb/ubuntu/mysql-connector-python?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "8.0.15-3",
            "8.0.15-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-21548.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-mysql.connector",
                "binary_version": "8.0.15-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mysql-connector-python",
            "purl": "pkg:deb/ubuntu/mysql-connector-python?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "9.2.0-1",
            "9.3.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-21548.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-mysql.connector",
                "binary_version": "9.3.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mysql-connector-python",
            "purl": "pkg:deb/ubuntu/mysql-connector-python?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "9.5.0-1",
            "9.7.0-1",
            "9.7.0-2",
            "26.7.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-21548.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-mysql.connector",
                "binary_version": "26.7.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mysql-connector-python",
            "purl": "pkg:deb/ubuntu/mysql-connector-python?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "9.3.0-1",
            "9.5.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-21548.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-mysql.connector",
                "binary_version": "9.5.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:01.629081730Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-21548"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-21548",
        "https://www.cve.org/CVERecord?id=CVE-2025-21548",
        "https://www.oracle.com/security-alerts/cpujan2025.html"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-21548",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356654,
  "published_at": "2025-01-21T21:15:00+00:00"
}