Skip to content
OpenAdvisories
High · 8.2 CVE-2025-62611 EUVD-2025-35594GHSA-r397-ff8c-wv2gPYSEC-2026-1110

aiomysql allows arbitrary access to client files through vulnerability of a malicious MySQL server

Published Oct 22, 2025 · Updated Oct 22, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
aio-libs aiomysql < 0.3.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 aiomysql 0.3.2-1 —
Debian 13 aiomysql No fix yet —
Debian 12 aiomysql No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 aiomysql No fix yet —
Ubuntu 26.04 LTS aiomysql No fix yet —
Ubuntu 25.10 aiomysql No fix yet —
Ubuntu 24.04 LTS aiomysql No fix yet —
Ubuntu 22.04 LTS aiomysql No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS aiomysql No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling airflow-3 +3 3.1.0-r3 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI aiomysql < 0.3.0 0.3.0 GHSA-r397-ff8c-wv2g

References