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

- Severity: High 8.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2025-10-22T16:47:10.000Z
- Modified: 2026-10-08T11:10:00.250Z
- Also known as: GHSA-r397-ff8c-wv2g, PYSEC-2026-1110
- Weaknesses: CWE-73
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- aio-libs aiomysql: < 0.3.0
- aiomysql (PyPI): before 0.3.0

## Every score

- GitHub_M: CVSS:4.0 8.2 High `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`
- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: CVSS:4.0 `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> (web)
- <https://github.com/aio-libs/aiomysql/pull/1044> (web)
- <https://github.com/aio-libs/aiomysql/commit/32c4520dae3711367ded74a4726dcb8bb8919538> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-62611> (advisory)
- <https://github.com/aio-libs/aiomysql> (package)
- <https://pypi.org/project/aiomysql> (package)
- <https://github.com/advisories/GHSA-r397-ff8c-wv2g> (advisory)

## Sources

- CVE List: [CVE-2025-62611](https://www.cve.org/CVERecord?id=CVE-2025-62611), CVE Terms of Use, modified 2025-10-22
- GitHub Advisory Database: [GHSA-r397-ff8c-wv2g](https://github.com/advisories/GHSA-r397-ff8c-wv2g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-62611](https://nvd.nist.gov/vuln/detail/CVE-2025-62611), Public domain, modified 2026-10-08
- PyPA Advisory Database: [PYSEC-2026-1110](https://osv.dev/vulnerability/PYSEC-2026-1110), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-62611 · Whole record: https://cve.day/CVE-2025-62611.json · Rebuilt by cve.day 2026-11-25T22:59:06.724Z
