AgentbeamBeta
AI agent vulnerability · MLflow

CVE-2024-3573: mlflow vulnerable to Path Traversal

criticalCVSS 3.0 9.3GHSA-hq88-wg7q-gp4g

MLflow before 2.10.0 has a local file inclusion flaw. The is_local_uri function misjudges URIs with an empty or file scheme as non-local, so an attacker who registers a model version with a crafted source can read files on the server. Upgrade to mlflow 2.10.0.

Published Apr 16, 2024 · Updated Apr 8, 2025 · Analysis Nov 18, 2026

What an attacker can do

MLflow checks whether a model version's source is a local path. is_local_uri does not handle URIs with an empty or file scheme properly and classifies some of them as non-local, so the check meant to block local file access does not fire. An attacker who can create a model version with a crafted source parameter can then make the tracking server read local files. The advisory says this reaches at least two directory levels from the server's root.

The CVSS 3.0 vector (AV:N/AC:L/PR:N/UI:N/S:C) says no authentication is needed, which fits MLflow tracking servers that run without auth, as many do. The result is reading of sensitive files such as configuration, credentials and cloud keys. Integrity impact is rated low and there is no availability impact.

Who is affected

The pip package mlflow is affected before 2.10.0, on servers where untrusted users can reach the model registry API.

Check the version:

pip show mlflow

Check the one on the tracking server host, not only on your laptop.

mlflow

Ecosystem
PyPI
Affected
< 2.10.0
Fixed in
2.10.0
Check
pip show mlflow

How to fix it

Upgrade to mlflow 2.10.0:

pip install --upgrade mlflow==2.10.0

The fix commit 438a4507 changes is_local_uri in mlflow/utils/uri.py so a file:// URI with a remote hostname raises an MlflowException saying it is not a valid remote URI. The sources describe no workaround. Until you upgrade, do not expose the tracking server to untrusted networks, and put authentication in front of it.

How to tell if you were hit

Review the model registry for model versions whose source starts with file: or is a path with an empty scheme, especially with // or traversal segments. Check tracking server logs for requests to the model version creation API with odd source values, followed by artifact or download requests for system files.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

mlflow/mlflow is vulnerable to Local File Inclusion (LFI) due to improper parsing of URIs, allowing attackers to bypass checks and read arbitrary files on the system. The issue arises from the 'is_local_uri' function's failure to properly handle URIs with empty or 'file' schemes, leading to the misclassification of URIs as non-local. Attackers can exploit this by crafting malicious model versions with specially crafted 'source' parameters, enabling the reading of sensitive files within at least two directory levels from the server's root.

Questions

Which MLflow version fixes CVE-2024-3573?

2.10.0. All earlier versions are affected.

Does it need authentication?

The CVSS vector lists no privileges required. Where you run MLflow with authentication in front, the attacker needs an account that can create model versions.

What can be read?

Files on the server, reaching at least two directory levels from the root according to the advisory. Think configuration files, credentials and keys.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More MLflow vulnerabilities

All MLflow entries