Vulnerability · Published Oct 22, 2025 · Assigned by GitHub_M

CVE-2025-62611aiomysql allows arbitrary access to client files through vulnerability of a malicious MySQL server

High 8.2

In plain English

A high-severity security flaw in aiomysql from aio-libs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.2High
Exploit odds (30 days)0.4%top 66.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12aiomysqlno fix listedDEBIAN-CVE-2025-62611
Debian:13aiomysqlno fix listedDEBIAN-CVE-2025-62611
Debian:14aiomysql0.3.2-1DEBIAN-CVE-2025-62611
PyPIaiomysql0.3.0GHSA-r397-ff8c-wv2g
PyPIaiomysql0.3.0PYSEC-2026-1110
Ubuntu:22.04:LTSaiomysqlno fix listedUBUNTU-CVE-2025-62611
Ubuntu:24.04:LTSaiomysqlno fix listedUBUNTU-CVE-2025-62611
Ubuntu:25.10aiomysqlno fix listedUBUNTU-CVE-2025-62611
Ubuntu:26.04:LTSaiomysqlno fix listedUBUNTU-CVE-2025-62611
Ubuntu:26.10aiomysqlno fix listedUBUNTU-CVE-2025-62611

Affected products (as reported)

VendorProductVersions
aio-libs aiomysql < 0.3.0

Weakness: CWE-73 · Vector: 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

References