CVE-2024-37054: MLFlow unsafe deserialization
MLflow's PyFunc model flavor can execute attacker code when a user loads a malicious uploaded model. It is a deserialization of untrusted data flaw in MLflow 0.9.0 through 2.14.1. The advisory lists no patched version.
Published Jun 4, 2024 · Updated Jun 21, 2024 · Analysis Nov 2, 2026
What an attacker can do
PyFunc is MLflow's generic model format. Many other flavors, and custom Python models, end up packaged as PyFunc, so it is the most common way a model is shared. The advisory says a maliciously uploaded PyFunc model runs arbitrary code on an end user's system when the user interacts with it.
The HiddenLayer write-up covers the scikit-learn flavor only, so the exact PyFunc code path is not described by the sources I read. The advisory data gives the mechanism as CWE-502 deserialization of untrusted data.
An attacker needs a way to place a model where the victim will use it. That can be an upload to a shared tracking server or registry. The victim must then load or serve the model (CVSS UI:R). Code runs with the victim's privileges, which for a serving container or a notebook server can include cloud keys and data access.
The affected range begins at 0.9.0, so very old installations are exposed too.
Who is affected
pip package mlflow from 0.9.0 to 2.14.1 inclusive. Any workflow that loads PyFunc models from a registry or artifact store shared with other people is in scope.
pip show mlflowmlflow
- Ecosystem
- PyPI
- Affected
- >= 0.9.0, <= 2.14.1
- Fixed in
- No patched version yet
- Check
pip show mlflow
How to fix it
The advisory lists no patched version. Plan for mitigation instead.
- Load PyFunc models only from registries where you control who can upload.
- Require review before a model version moves to a stage that production or CI loads.
- Run
mlflow.pyfunc.load_modeland model serving in sandboxed containers with minimal credentials and restricted egress.
Check the MLflow release notes for a later change before assuming a version is safe.
How to tell if you were hit
Review who registered each PyFunc model version and when. Inspect artifacts, including python_model.pkl and any code directory, for unexpected imports or calls to os, subprocess and network libraries. Watch serving hosts for new child processes or outbound connections right after a model load.
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 0.9.0 or newer, enabling a maliciously uploaded PyFunc model to run arbitrary code on an end user’s system when interacted with.
Credited to litios.
Questions
- What is the PyFunc flavor?
It is MLflow's generic Python model format. The advisory says a malicious PyFunc model uploaded to the platform can run code when a user interacts with it.
- Is there an upgrade that fixes CVE-2024-37054?
No patched version is listed. The vulnerable range runs from 0.9.0 to 2.14.1 with no fixed release recorded.
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
