NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · MLflow

CVE-2024-2928: Local File Inclusion in mlflow

highCVSS 3.1 7.5GHSA-j46q-5pxx-8vmw

MLflow before 2.11.3 lets an unauthenticated remote attacker read arbitrary local files, such as `/etc/passwd`, by putting `../` sequences in the fragment part of a URI. It bypasses an earlier patch that checked only the query string. Upgrade to mlflow 2.11.3.

Published Jun 6, 2024 · Updated Apr 8, 2025 · Analysis Nov 1, 2026

What an attacker can do

MLflow tracking servers accept URIs such as an experiment's artifact_location. A previous fix rejected traversal sequences in the query string of those URIs, but the fragment (the part after #) was left unchecked. A URI such as file:///...#../../.. could therefore steer the server's path handling out of the artifact directory, and the attacker could then fetch files through the artifact download path.

The attacker needs network access to the tracking server, with no login, as the vector says. MLflow servers are often deployed without authentication on internal networks. What they read is whatever the server process can read: system files, cloud credentials in the home directory, configuration files with database passwords, and other teams' artifacts and model files. The flaw does not write files or run commands. Its EPSS percentile is high (0.975), so scanners are likely to probe for it.

Who is affected

Affected: mlflow < 2.11.3. The advisory reported version 2.9.2. Any tracking server that accepts requests from clients you do not fully trust is exposed. Check the version on the server host or image:

pip show mlflow

mlflow

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

How to fix it

Upgrade to mlflow 2.11.3.

pip install --upgrade "mlflow>=2.11.3"

The fix commit changes mlflow/server/handlers.py. _create_experiment() now raises an MlflowException with the text 'artifact_location' URL can't include fragment part. And _validate_source() only converts a run's artifact URI to a local path when is_local_uri is true. The sources give no workaround. Until you upgrade, put the server behind authentication and keep it off untrusted networks.

How to tell if you were hit

In tracking server logs, look for requests that create experiments or runs with artifact_location or source values containing # followed by ../, or encoded %23 and %2e%2e. After upgrading, the error text 'artifact_location' URL can't include fragment part marks refused attempts. Check existing experiments for artifact locations that include a fragment, and review who has fetched artifact files such as /etc/passwd or credentials.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

A Local File Inclusion (LFI) vulnerability was identified in mlflow/mlflow, specifically in version 2.9.2, which was fixed in version 2.11.3. This vulnerability arises from the application's failure to properly validate URI fragments for directory traversal sequences such as '../'. An attacker can exploit this flaw by manipulating the fragment part of the URI to read arbitrary files on the local file system, including sensitive files like '/etc/passwd'. The vulnerability is a bypass to a previous patch that only addressed similar manipulation within the URI's query string, highlighting the need for comprehensive validation of all parts of a URI to prevent LFI attacks.

Questions

How is CVE-2024-2928 different from earlier MLflow path traversal bugs?

It is a bypass. The earlier patch checked the query string of the URI. This one puts the traversal into the fragment, which was not validated.

Does it need credentials?

No. The CVSS vector has no privileges and no user interaction. MLflow's default setup has no authentication on the tracking server.

Can it write files?

No. The advisory describes arbitrary file read only, which fits the confidentiality-only score.

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