CVE-2024-27133: Mlflow Remote Code Execution Vulnerability
CRITICALCVE-2024-27133 is a CRITICAL (CVSS 9.6) remote code execution vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Mlflow libraries in the PyPI ecosystem. The issue involves mlflow cross-site scripting vulnerability leads to client-side remote code execution. Remediation is available by upgrading affected packages to version 2.10.0.
CVE-2024-27133 at a Glance
Security Impact
CVSS: 9.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H).
How to Fix CVE-2024-27133
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.10.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-2024-27133, 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.10.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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. 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-27133 Affected Mlflow Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mlflow
|
PyPI |
< 2.10.0
|
2.10.0
|
References
Frequently Asked Questions
What is CVE-2024-27133?
Which Mlflow versions are affected?
What version fixes CVE-2024-27133?
Is mlflow affected?
What is the CVSS score of CVE-2024-27133?
What CWE is associated with CVE-2024-27133?
How can I check PyPI dependencies for CVE-2024-27133?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3v79-q7ph-j75h",
"modified" : "2025-04-08T21:59:06Z",
"published" : "2024-02-24T00:30:20Z",
"aliases" : [ "CVE-2024-27133" ],
"summary" : "MLFlow Cross-site Scripting vulnerability leads to client-side Remote Code Execution",
"details" : "Insufficient sanitization in MLflow leads to XSS when running a recipe that uses an untrusted dataset. This issue leads to a client-side RCE when running the recipe in Jupyter Notebook. The vulnerability stems from lack of sanitization over dataset table fields.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "mlflow"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.10.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-27133"
}, {
"type" : "WEB",
"url" : "https://github.com/mlflow/mlflow/pull/10893"
}, {
"type" : "WEB",
"url" : "https://github.com/mlflow/mlflow/commit/c43823750bffa5b6abcc086683b15a068513b67b"
}, {
"type" : "WEB",
"url" : "https://github.com/mlflow/mlflow/commit/cfa71879a884cc3520e23ccab998c9aa78fdf2b1"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mlflow/mlflow"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/mlflow/PYSEC-2024-241.yaml"
}, {
"type" : "WEB",
"url" : "https://research.jfrog.com/vulnerabilities/mlflow-untrusted-dataset-xss-jfsa-2024-000631932"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-27T21:57:34Z",
"nvd_published_at" : "2024-02-23T22:15:55Z"
}
}