CVE-2024-8859: Mlflow Path Traversal Vulnerability
HIGHCVE-2024-8859 is a HIGH (CVSS 7.5) path traversal vulnerability (CWE-29: Path Traversal: '\..\filename') affecting Mlflow libraries in the PyPI ecosystem. The issue involves mlflow has a local file read/path traversal in dbfs. Remediation is available by upgrading affected packages to version 2.17.0rc0.
CVE-2024-8859 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2024-8859
To remediate this vulnerability, upgrade all affected Mlflow dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install mlflow>=2.17.0rc0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show mlflow
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-8859, inspect your installed packages using pip:
pip show mlflow
Analyze the terminal output to locate any version of Mlflow in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.17.0rc0), your application is affected.
Note: The pip show mlflow command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-29: Path Traversal: '\..\filename', where the product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '\..\filename' (leading backslash dot dot) sequences that can resolve to a location that is outside of that directory. In Mlflow, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-8859 Affected Mlflow Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mlflow
|
PyPI |
< 2.17.0rc0
|
2.17.0rc0
|
References
Frequently Asked Questions
What is CVE-2024-8859?
Which Mlflow versions are affected?
What version fixes CVE-2024-8859?
Is mlflow affected?
What is the CVSS score of CVE-2024-8859?
What CWE is associated with CVE-2024-8859?
How can I check PyPI dependencies for CVE-2024-8859?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4rqf-8pfm-p36r",
"modified" : "2025-03-21T03:21:56Z",
"published" : "2025-03-20T12:32:49Z",
"aliases" : [ "CVE-2024-8859" ],
"summary" : "MLflow has a Local File Read/Path Traversal in dbfs",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "mlflow"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.17.0rc0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-8859"
}, {
"type" : "WEB",
"url" : "https://github.com/mlflow/mlflow/commit/7791b8cdd595f21b5f179c7b17e4b5eb5cbbe654"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mlflow/mlflow"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/2259b88b-a0c6-4c7c-b434-6aacf6056dcb"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-29" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-21T03:21:56Z",
"nvd_published_at" : "2025-03-20T10:15:44Z"
}
}