CVE-2024-37060: MLFlow unsafe deserialization
MLflow Recipes can run attacker code when someone runs a maliciously crafted Recipe. The flaw is unsafe deserialization in MLflow 1.27.0 through 2.14.1. The advisory lists no patched version, so only run Recipes from sources you trust.
Published Jun 4, 2024 · Updated Jun 21, 2024 · Analysis Nov 2, 2026
What an attacker can do
A Recipe is MLflow's templated, step-by-step ML pipeline project, introduced in the 1.27 line, which is where the affected range starts. Unlike the model-flavor advisories, this one is about a project, not a model artifact. The advisory says a crafted Recipe executes arbitrary code on the end user's system when it is run. The weakness is CWE-502.
The sources I read do not explain which file or step is deserialized. HiddenLayer's published write-up covers the scikit-learn flavor, not Recipes.
The attack needs the victim to obtain a Recipe from the attacker, for example by cloning a repository or downloading a template, and to run it. That is the user-interaction step in the CVSS 3.1 vector. After that, code runs with the user's privileges, with access to the project directory, credentials in the environment and the tracking server.
This resembles running a stranger's build script. Teams that copy Recipes from public examples are the main audience.
Who is affected
pip package mlflow 1.27.0 to 2.14.1 inclusive, for users who run MLflow Recipes (mlflow.recipes) obtained from outside their team.
pip show mlflowmlflow
- Ecosystem
- PyPI
- Affected
- >= 1.27.0, <= 2.14.1
- Fixed in
- No patched version yet
- Check
pip show mlflow
How to fix it
No patched version is listed in the advisory. Treat third-party Recipes like untrusted code. Read the Recipe files before you run them, run them in a container or VM with no production credentials, and fetch Recipes only from repositories you own.
Recheck MLflow's release notes for any change to how Recipes load their steps.
How to tell if you were hit
Review the Recipe directory for files you did not write, including pickled step outputs, and for modified step code. Check shell history and process logs for recipe runs of unfamiliar repositories. Look for unexpected child processes or outbound connections after a recipe.run() call.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Deserialization of untrusted data can occur in versions of the MLflow platform running version 1.27.0 or newer, enabling a maliciously crafted Recipe to execute arbitrary code on an end user’s system when run.
Questions
- How is this different from the model-flavor MLflow CVEs?
It targets a Recipe, an MLflow pipeline project, not an uploaded model. The victim runs the Recipe, instead of loading a model.
- Is a fix available?
No. The advisory lists none, and the vulnerable range runs from 1.27.0 to 2.14.1.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More MLflow vulnerabilities
All MLflow entriesCVE-2026-116690
MLflow vulnerable to arbitrary file read on unauthenticated servers via prompt model version source
high7.5Oct 27, 2026CVE-2026-116691
MLflow CrewAI autologging records LLM provider API keys in logged trace spans
medium6.5Oct 27, 2026CVE-2026-116692
MLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifact modules
critical9.8Oct 27, 2026CVE-2026-115886
MLflow: SSRF on unauthenticated MLflow servers via third-party scorer kwargs in the scorer invoke, register, and GenAI evaluate endpoints
medium6.5Oct 23, 2026CVE-2026-53995
MLflow FileStore trace IDs allow path traversal and arbitrary file writes
high8.2Oct 20, 2026GHSA-gqvg-gmmx-x4hm
MLFLOW_ALLOW_PICKLE_DESERIALIZATION=False safety control bypassed by mlflow.statsmodels flavor — RCE via crafted model artifact
high8.8Sep 1, 2026
