CVE-2025-30224 MyDumper arbitrary file read issue
An attacker controlling a MySQL server can read arbitrary files from the client system when MyDumper connects, due to enabled local infile capability.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-30224?
CVE-2025-30224 is a medium-severity vulnerability in mydumper, published on 1 Apr 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
MyDumper is a MySQL Logical Backup Tool. The MySQL C client library (libmysqlclient) allows authenticated remote actors to read arbitrary files from client systems via a crafted server response to LOAD LOCAL INFILE query, leading to sensitive information disclosure when clients connect to untrusted MySQL servers without explicitly disabling the local infile capability. Mydumper has the local infile option enabled by default and does not have an option to disable it. This can lead to an unexpected arbitrary file read if the Mydumper tool connects to an untrusted server. This vulnerability is fixed in 0.18.2-8.
Weakness: CWE-200
Which versions are affected by CVE-2025-30224?
How do I fix CVE-2025-30224?
Upgrade to a fixed version.
Is CVE-2025-30224 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-30224 exists.
Sources
Also known as DEBIAN-CVE-2025-30224, DLA-4190-1, GHSA-r8qc-xp3g-c458, UBUNTU-CVE-2025-30224.