Arbitrary Code Execution via Malicious PyFunc Model Deserialization in MLflow
CVE-2024-37054 is a deserialization-of-untrusted-data vulnerability in MLflow versions 0.9.0 and later. A maliciously uploaded PyFunc model can cause arbitrary code to run on an end user’s system when the user interacts with the model.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows arbitrary code execution on the end user’s system.
If you can’t patch tonight, do this now.
Do not load or interact with PyFunc models from untrusted or unauthenticated sources. Restrict who can upload models to MLflow, enforce provenance and integrity validation for model artifacts, and isolate model loading and execution in sandboxed or low-privilege environments such as containers or dedicated hosts. Where possible, separate model registry access from general user access, monitor for suspicious model uploads, and treat serialized model artifacts as executable content rather than passive data.
Patch, then assume compromise.
Upgrade MLflow to a vendor-fixed version if one is available. In the absence of version-specific fix information in the provided content, organizations should apply the official security update or patched release addressing CVE-2024-37054 as published by the MLflow project. Additionally, review and remove untrusted or previously uploaded PyFunc models from MLflow environments, and revalidate model provenance before further use.
8 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
2 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.