CVE-2024-3099: Mlflow Undefined Behavior Vulnerability
MODERATECVE-2024-3099 is a MODERATE (CVSS 5.4) undefined behavior vulnerability (CWE-475: Undefined Behavior for Input to API) affecting Mlflow libraries in the PyPI ecosystem. The issue involves undefined behavior in mlflow. Remediation is available by upgrading affected packages to version 2.11.3.
CVE-2024-3099 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L).
How to Fix CVE-2024-3099
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.11.3
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-3099, 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.11.3), 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-475: Undefined Behavior for Input to API, where the behavior of this function is undefined unless its control parameter is set to a specific value. 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-3099 Affected Mlflow Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mlflow
|
PyPI |
< 2.11.3
|
2.11.3
|
References
Frequently Asked Questions
What is CVE-2024-3099?
Which Mlflow versions are affected?
What version fixes CVE-2024-3099?
Is mlflow affected?
What is the CVSS score of CVE-2024-3099?
What CWE is associated with CVE-2024-3099?
How can I check PyPI dependencies for CVE-2024-3099?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8f8q-q2j7-7j2m",
"modified" : "2024-10-11T16:31:58Z",
"published" : "2024-06-06T21:30:36Z",
"aliases" : [ "CVE-2024-3099" ],
"summary" : "Undefined Behavior in mlflow",
"details" : "A vulnerability in mlflow/mlflow version 2.11.1 allows attackers to create multiple models with the same name by exploiting URL encoding. This flaw can lead to Denial of Service (DoS) as an authenticated user might not be able to use the intended model, as it will open a different model each time. Additionally, an attacker can exploit this vulnerability to perform data model poisoning by creating a model with the same name, potentially causing an authenticated user to become a victim by using the poisoned model. The issue stems from inadequate validation of model names, allowing for the creation of models with URL-encoded names that are treated as distinct from their URL-decoded counterparts.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "mlflow"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.11.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-3099"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mlflow/mlflow"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/8d96374a-ce8d-480e-9cb0-0a7e5165c24a"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-475" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-06-06T22:38:43Z",
"nvd_published_at" : "2024-06-06T19:15:59Z"
}
}