CVE-2024-3848: Mlflow Path Traversal Vulnerability
HIGHCVE-2024-3848 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 bypass. Remediation is available by upgrading affected packages to version 2.12.1.
CVE-2024-3848 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-3848
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.12.1
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-3848, 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.12.1), 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-3848 Affected Mlflow Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mlflow
|
PyPI |
≥ 2.9.2
< 2.12.1
|
2.12.1
|
References
Frequently Asked Questions
What is CVE-2024-3848?
Which Mlflow versions are affected?
What version fixes CVE-2024-3848?
Is mlflow affected?
What is the CVSS score of CVE-2024-3848?
What CWE is associated with CVE-2024-3848?
How can I check PyPI dependencies for CVE-2024-3848?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rfqq-wq6w-72jm",
"modified" : "2025-04-08T22:00:26Z",
"published" : "2024-05-16T09:33:08Z",
"aliases" : [ "CVE-2024-3848" ],
"summary" : "MLflow has a Local File Read/Path Traversal bypass",
"details" : "A path traversal vulnerability exists in mlflow/mlflow version 2.11.0, identified as a bypass for the previously addressed CVE-2023-6909. The vulnerability arises from the application's handling of artifact URLs, where a '#' character can be used to insert a path into the fragment, effectively skipping validation. This allows an attacker to construct a URL that, when processed, ignores the protocol scheme and uses the provided path for filesystem access. As a result, an attacker can read arbitrary files, including sensitive information such as SSH and cloud keys, by exploiting the way the application converts the URL into a filesystem path. The issue stems from insufficient validation of the fragment portion of the URL, leading to arbitrary file read through path traversal.",
"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" : "2.9.2"
}, {
"fixed" : "2.12.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-3848"
}, {
"type" : "WEB",
"url" : "https://github.com/mlflow/mlflow/commit/f8d51e21523238280ebcfdb378612afd7844eca8"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mlflow/mlflow"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/mlflow/PYSEC-2024-244.yaml"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/8d5aadaa-522f-4839-b41b-d7da362dd610"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-29" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-16T17:47:00Z",
"nvd_published_at" : "2024-05-16T09:15:14Z"
}
}