External Control of File Name or Path Affecting aiomysql package, versions [,0.3.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-AIOMYSQL-13671310
  • published23 Oct 2025
  • disclosed22 Oct 2025
  • creditKonstantAnxiety

Introduced: 22 Oct 2025

NewCVE-2025-62611  (opens in a new tab)
CWE-73  (opens in a new tab)

How to fix?

Upgrade aiomysql to version 0.3.0 or higher.

Overview

aiomysql is a MySQL driver for asyncio.

Affected versions of this package are vulnerable to External Control of File Name or Path via the LOAD_LOCAL instruction packet. An attacker can obtain arbitrary files from the client system by setting up a malicious MySQL server that sends crafted instructions to the client, even when client-side restrictions are in place.

CVSS Base Scores

version 4.0
version 3.1