CVE-2024-3099: Mlflow Undefined Behavior Vulnerability

MODERATE
Advisory Identifier: GHSA-8f8q-q2j7-7j2m
CVSS 5.4
CWE-475
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-3099
GHSA Identifier GHSA-8f8q-q2j7-7j2m
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-475: Undefined Behavior for Input to API
Affected Product Mlflow
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (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.

mlflow fixed: 2.11.3
pip install mlflow>=2.11.3
Verify Direct and Transitive Dependencies

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

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.

CVE-2024-3099 Affected Mlflow Versions

1 component(s)
Fixed Versions:
2.11.3
Product / Package Ecosystem Affected Versions Fixed Version
mlflow
PyPI
< 2.11.3
2.11.3

References

Frequently Asked Questions

What is CVE-2024-3099?
CVE-2024-3099 is a security vulnerability in Mlflow involving Undefined Behavior in mlflow under CWE-475: Undefined Behavior for Input to API.
Which Mlflow versions are affected?
Affected versions include releases prior to 2.11.3 across affected packages: mlflow.
What version fixes CVE-2024-3099?
Upgrading to 2.11.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mlflow affected?
Yes, mlflow is affected in releases prior to 2.11.3. Upgrade your dependency to 2.11.3 or later.
What is the CVSS score of CVE-2024-3099?
CVE-2024-3099 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2024-3099?
CVE-2024-3099 is classified under CWE-475: Undefined Behavior for Input to API (The behavior of this function is undefined unless its control parameter is set to a specific value.).
How can I check PyPI dependencies for CVE-2024-3099?
Run the dependency tree command: 'pip show mlflow'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}