Skip to content
Heist/ feed
Back to feed
High

aiomysql — security advisory

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

aiomysql is a library for accessing a MySQL database from the asyncio. Prior to version 0.3.0, the client-side settings are not checked before sending local files to MySQL server, which allows obtaining arbitrary files from the client using a rogue server. It is possible to create a rogue MySQL server that emulates authorization, ignores client flags and requests arbitrary files from the client by sending a LOAD_LOCAL instruction packet. This issue has been patched in version 0.3.0.

Products
aiomysql
Affected versions
0.0.20-1, 0.0.20-2, 0.0.20-3, 0.1.1-2, 0.3.2-1, 0.3.2-2
Fixed versions
Not specified
CVEs
CVE-2025-62611
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:30 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-62611

core-osv · Original source

Published 22 Oct 2025, 20:15 UTC

aiomysql is a library for accessing a MySQL database from the asyncio. Prior to version 0.3.0, the client-side settings are not checked before sending local files to MySQL server, which allows obtaining arbitrary files from the client using a rogue server. It is possible to create a rogue MySQL server that emulates authorization, ignores client flags and requests arbitrary files from the client by sending a LOAD_LOCAL instruction packet. This issue has been patched in version 0.3.0.

osv:UBUNTU-CVE-2025-62611

aiomysql

Fixed versions: Not specified

aiomysql

Fixed versions: Not specified

aiomysql

Fixed versions: Not specified

aiomysql

Fixed versions: Not specified

aiomysql

Fixed versions: Not specified

aiomysql

Fixed versions: Not specified

Complete source record
{
  "id": "c5e6bfe50e919ce9b6ac84eb49a0ae866e72f0e4b97ce4d5a60cd5a5fa2883d1",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-62611",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-62611",
    "summary": "aiomysql is a library for accessing a MySQL database from the asyncio. Prior to version 0.3.0, the client-side settings are not checked before sending local files to MySQL server, which allows obtaining arbitrary files from the client using a rogue server. It is possible to create a rogue MySQL server that emulates authorization, ignores client flags and requests arbitrary files from the client by sending a LOAD_LOCAL instruction packet. This issue has been patched in version 0.3.0.",
    "evidence": "osv:UBUNTU-CVE-2025-62611",
    "products": [
      {
        "name": {
          "value": "aiomysql",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0.20-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.0.20-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "aiomysql",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0.20-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.0.20-3",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "aiomysql",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.1.1-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "aiomysql",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.1.1-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "aiomysql",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.3.2-2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "aiomysql",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.1.1-2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "0.3.2-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "0.3.2-2",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2025-62611",
      "aliases": [
        "UBUNTU-CVE-2025-62611"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "aiomysql",
            "purl": "pkg:deb/ubuntu/aiomysql?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.0.20-1",
            "0.0.20-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-62611.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-aiomysql",
                "binary_version": "0.0.20-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "aiomysql",
            "purl": "pkg:deb/ubuntu/aiomysql?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.0.20-2",
            "0.0.20-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-62611.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-aiomysql",
                "binary_version": "0.0.20-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "aiomysql",
            "purl": "pkg:deb/ubuntu/aiomysql?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.1.1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-62611.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-aiomysql",
                "binary_version": "0.1.1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "aiomysql",
            "purl": "pkg:deb/ubuntu/aiomysql?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.1.1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-62611.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-aiomysql",
                "binary_version": "0.1.1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "aiomysql",
            "purl": "pkg:deb/ubuntu/aiomysql?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.3.2-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-62611.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-aiomysql",
                "binary_version": "0.3.2-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "aiomysql",
            "purl": "pkg:deb/ubuntu/aiomysql?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.1.1-2",
            "0.3.2-1",
            "0.3.2-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-62611.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-aiomysql",
                "binary_version": "0.3.2-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:58:38.136279260Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-62611"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-62611",
        "https://www.cve.org/CVERecord?id=CVE-2025-62611",
        "https://github.com/aio-libs/aiomysql/security/advisories/GHSA-r397-ff8c-wv2g",
        "https://github.com/aio-libs/aiomysql/pull/1044",
        "https://github.com/aio-libs/aiomysql/commit/32c4520dae3711367ded74a4726dcb8bb8919538"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-62611",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 358908,
  "published_at": "2025-10-22T20:15:00+00:00"
}