CVE-2024-8859: MLflow has a Local File Read/Path Traversal in dbfs
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 mlflowCheck 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
%3fbecomes?after decoding, sourlparsetreats 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 entriesCVE-2026-116690
MLflow vulnerable to arbitrary file read on unauthenticated servers via prompt model version source
high7.5Oct 27, 2026CVE-2026-116691
MLflow CrewAI autologging records LLM provider API keys in logged trace spans
medium6.5Oct 27, 2026CVE-2026-116692
MLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifact modules
critical9.8Oct 27, 2026CVE-2026-115886
MLflow: SSRF on unauthenticated MLflow servers via third-party scorer kwargs in the scorer invoke, register, and GenAI evaluate endpoints
medium6.5Oct 23, 2026CVE-2026-53995
MLflow FileStore trace IDs allow path traversal and arbitrary file writes
high8.2Oct 20, 2026GHSA-gqvg-gmmx-x4hm
MLFLOW_ALLOW_PICKLE_DESERIALIZATION=False safety control bypassed by mlflow.statsmodels flavor — RCE via crafted model artifact
high8.8Sep 1, 2026
