External Control of File Name or Path in aiomysql - CVE-2025-62611

 

External Control of File Name or Path in aiomysql - CVE-2025-62611

Published: November 17, 2025


Vulnerability identifier: #VU118559
CSH Severity: Medium
CVSS v4: 6 [CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-62611
CWE-ID: CWE-73
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to sensitive information.

The vulnerability exists due to the client-side settings are not checked before sending local files to a  remote MySQL server. A remote attacker can 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 and read arbitrary files on the system.


Affected software

aiomysql
openEuler
python-aiomysql
python-aiomysql-help
python3-aiomysql

How to mitigate CVE-2025-62611

Install updates from vendor's website.

aiomysql - update to 0.3.2
python-aiomysql - addressed in versions 0.0.21-2, 0.2.0-2
python-aiomysql-help - addressed in versions 0.0.21-2, 0.2.0-2
python3-aiomysql - addressed in versions 0.0.21-2, 0.2.0-2

External References

Related Security Bulletins