aiomysql allows arbitrary access to client files through vulnerability of a malicious MySQL server
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-73 and the CVSS impact.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| aio-libs | aiomysql | before 0.3.0 | 0.3.0 | Patch available | CNA |
| — | aiomysql (PyPI) | before 0.3.0 | 0.3.0 | Patch available | GHSA-r397-ff8c-wv2g |
- aiomysql Vendoraio-libs Affected before 0.3.0 Fixed in 0.3.0 Patch available CNA
- aiomysql (PyPI) Vendor— Affected before 0.3.0 Fixed in 0.3.0 Patch available GHSA-r397-ff8c-wv2g
Remediation
- Fix · CNA aiomysql (aio-libs) Fixed in 0.3.0
- Fix · GHSA-r397-ff8c-wv2g aiomysql (PyPI) Fixed in 0.3.0 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2025-62611
- 2026-10-03 Alias added: GHSA-r397-ff8c-wv2g
References
More aio-libs vulnerabilities
- TI-2024-15436 aiohttp.web.static(follow_symlinks=True) is vulnerable to directory traversal CVSS 3.1HIGH 7.5
- TI-2023-25769 Request smuggling in aiohttp CVSS 3.1HIGH 7.5
- TI-2023-18906 aiohttp vulnerable to HTTP request smuggling CVSS 3.1HIGH 7.5
- TI-2023-26746 aiohttp's ClientSession is vulnerable to CRLF injection via version CVSS 3.1HIGH 7.2
- TI-2026-66145 Multidict: Reference leak in CIMultiDict/MultiDict items-view union and subtraction CVSS 3.1MEDIUM 5.3
- TI-2023-26747 aiohttp's ClientSession is vulnerable to CRLF injection via method CVSS 3.1MEDIUM 5.3
Sources
- CVE-2025-62611 · CVE Program
- CVE-2025-62611 · NVD
- FIRST EPSS
- GHSA-r397-ff8c-wv2g · GitHub Advisory Database · CC BY 4.0
- CVE-2025-62611 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences