Client-Side Security Flaw in aiomysql Library for MySQL Access
CVE-2025-62611
8.2HIGH
What is CVE-2025-62611?
The aiomysql library, which facilitates access to a MySQL database through asyncio, contains a security vulnerability. Before version 0.3.0, the library does not properly validate client-side settings prior to transmitting local files to the MySQL server. This oversight creates an opportunity for malicious actors to set up a rogue MySQL server that can manipulate authorization protocols, disregarding client flags, and can exploit the LOAD_LOCAL instruction packet to request and access arbitrary files from the client system. Users are urged to upgrade to version 0.3.0 or newer to mitigate this risk.
Affected Version(s)
aiomysql < 0.3.0