CVE-2024-3573 Local File Inclusion (LFI) via Scheme Confusion in mlflow/mlflow

Critical 9.3 Published Updated

Attackers can read arbitrary files on the server by exploiting improper URI parsing in MLflow, leading to sensitive data disclosure.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-3573?

CVE-2024-3573 is a critical path traversal vulnerability in Lfprojects Mlflow, published on 16 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-22, CWE-29

Which versions are affected by CVE-2024-3573?

4 open source packages ship an affected version, including mlflow. It affects 1 product.

PackageAffectedFixed in
mlflow BitnamiAll versions2.10.0
mlflow PyPIAll versions2.10.0
mlflow PyPIAll versions2.10.0
mlflow PyPIAll versions2.10.0

Products include Lfprojects Mlflow.

How do I fix CVE-2024-3573?

Upgrade mlflow to 2.10.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-3573 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-3573 exists.

All Lfprojects Mlflow vulnerabilities

Sources

Also known as BIT-mlflow-2024-3573, GHSA-hq88-wg7q-gp4g, PYSEC-2024-243.

Is CVE-2024-3573 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free