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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | aiomysql | no fix listed | DEBIAN-CVE-2025-62611 |
| Debian:13 | aiomysql | no fix listed | DEBIAN-CVE-2025-62611 |
| Debian:14 | aiomysql | 0.3.2-1 | DEBIAN-CVE-2025-62611 |
| PyPI | aiomysql | 0.3.0 | GHSA-r397-ff8c-wv2g |
| PyPI | aiomysql | 0.3.0 | PYSEC-2026-1110 |
| Ubuntu:22.04:LTS | aiomysql | no fix listed | UBUNTU-CVE-2025-62611 |
| Ubuntu:24.04:LTS | aiomysql | no fix listed | UBUNTU-CVE-2025-62611 |
| Ubuntu:25.10 | aiomysql | no fix listed | UBUNTU-CVE-2025-62611 |
| Ubuntu:26.04:LTS | aiomysql | no fix listed | UBUNTU-CVE-2025-62611 |
| Ubuntu:26.10 | aiomysql | no fix listed | UBUNTU-CVE-2025-62611 |
Affected products (as reported)
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
- https://github.com/aio-libs/aiomysql/security/advisories/GHSA-r397-ff8c-wv2g x_refsource_CONFIRM
- https://github.com/aio-libs/aiomysql/pull/1044 x_refsource_MISC
- https://github.com/aio-libs/aiomysql/commit/32c4520dae3711367ded74a4726dcb8bb8919538 x_refsource_MISC