CVE-2023-2780: Mlflow Path Traversal Vulnerability
CRITICALCVE-2023-2780 is a CRITICAL (CVSS 9.8) path traversal vulnerability (CWE-29: Path Traversal: '\..\filename') affecting Mlflow libraries in the PyPI ecosystem. The issue involves mlflow path traversal vulnerability. Remediation is available by upgrading affected packages to version 2.3.0.
CVE-2023-2780 at a Glance
Security Impact
CVSS: 9.8
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:H/A:H).
How to Fix CVE-2023-2780
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.3.0
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-2023-2780, 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.3.0), 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-2023-2780 Affected Mlflow Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mlflow
|
PyPI |
< 2.3.0
|
2.3.0
|
References
Frequently Asked Questions
What is CVE-2023-2780?
Which Mlflow versions are affected?
What version fixes CVE-2023-2780?
Is mlflow affected?
What is the CVSS score of CVE-2023-2780?
What CWE is associated with CVE-2023-2780?
How can I check PyPI dependencies for CVE-2023-2780?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wjq3-7jxx-whj9",
"modified" : "2024-09-24T21:12:16Z",
"published" : "2023-05-17T21:30:22Z",
"aliases" : [ "CVE-2023-2780" ],
"summary" : "mlflow Path Traversal vulnerability",
"details" : "mlflow prior to 2.3.0 is vulnerable to path traversal due to a bypass of the fix for CVE-2023-1177.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "mlflow"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.3.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-2780"
}, {
"type" : "WEB",
"url" : "https://github.com/mlflow/mlflow/commit/fae77a525dd908c56d6204a4cef1c1c75b4e9857"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mlflow/mlflow"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/mlflow/PYSEC-2023-69.yaml"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/b12b0073-0bb0-4bd1-8fc2-ec7f17fd7689"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-29" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-05-18T02:01:53Z",
"nvd_published_at" : "2023-05-17T21:15:09Z"
}
}