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

CVE-2024-8859: MLflow has a Local File Read/Path Traversal in dbfs

highCVSS 3.0 7.5GHSA-4rqf-8pfm-p36r

MLflow before 2.17.0rc0 can be tricked into reading arbitrary local files through a `dbfs:/` model version source. The path-traversal check looks only at the URL path, so `../` segments hidden behind an encoded `?` slip through. It applies when the dbfs service is configured and mounted to a local directory. Upgrade to 2.17.0rc0 or later.

Published Mar 20, 2025 · Updated Mar 21, 2025 · Analysis Nov 1, 2026

What an attacker can do

When you create a model version, the MLflow server validates the source URL in _validate_non_local_source_contains_relative_paths (mlflow/server/handlers.py). It checked only source_path, the path part from urlparse(source).path. An attacker sends a dbfs:/ source with an encoded %3f followed by many ../ segments. After URL decoding, the ? makes urlparse treat the rest as a query string, so the .. segments never reach the checked path. The dbfs handler then joins the full string into a local file path, and the traversal reaches files outside the intended directory (CWE-22).

The result is arbitrary file read with the MLflow server's rights. That can include credentials, config and other users' artifacts. The vector shows network access, no privileges and no user interaction, with confidentiality as the only scored impact.

The flaw triggers only when the dbfs service is configured and mounted to a local directory. An MLflow tracking server reachable by untrusted users, with no authentication in front, is the clearest exposure.

Who is affected

Affected: mlflow below 2.17.0rc0. The advisory describes version 2.15.1. The attack needs the dbfs service configured and mounted to a local directory. Servers without that setup are not exposed to this path.

pip show mlflow

Check how the server is started and whether it has a dbfs mount configured.

mlflow

Ecosystem
PyPI
Affected
< 2.17.0rc0
Fixed in
2.17.0rc0
Check
pip show mlflow

How to fix it

Upgrade to mlflow 2.17.0rc0 or later:

pip install --upgrade "mlflow>=2.17.0rc0"

The fix (commit 7791b8c, pull request 13161) makes the validation also reject any source that has a path segment equal to .., checked on the unquoted string split by /. A request with the encoded %3f payload now gets a 400 with "Invalid model version source". The sources give no workaround. If you cannot upgrade, put authentication in front of the tracking server and unmount the dbfs directory.

How to tell if you were hit

Look in MLflow server and proxy logs for model version creation requests whose source contains dbfs:/, %3f or %3F, and repeated ../ segments. After the fix, such requests return 400 with "Invalid model version source".

Check registered model versions for sources that point at odd paths. Review file access on the host for reads of files such as config or key files by the MLflow process.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

A path traversal vulnerability exists in mlflow/mlflow version 2.15.1. When users configure and use the dbfs service, concatenating the URL directly into the file protocol results in an arbitrary file read vulnerability. This issue occurs because only the path part of the URL is checked, while parts such as query and parameters are not handled. The vulnerability is triggered if the user has configured the dbfs service, and during usage, the service is mounted to a local directory.

Questions

Which MLflow version fixes CVE-2024-8859?

2.17.0rc0. Earlier releases check only the URL path part of the source, and the advisory describes 2.15.1.

How does the payload bypass the check?

An encoded %3f becomes ? after decoding, so urlparse treats the following ../ segments as a query instead of path. The validator never sees them.

Am I affected if I do not use dbfs?

The advisory says the flaw is triggered when the dbfs service is configured and mounted to a local directory. Without that, this path does not apply.

Is it exploited in the wild?

No source reports exploitation, and it is not in CISA's KEV catalog.

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