NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · MLflow

CVE-2024-37057: MLFlow unsafe deserialization

highCVSS 3.1 8.8GHSA-j8mg-pqc5-x9gj

MLflow's TensorFlow flavor deserializes untrusted model data, so a maliciously uploaded TensorFlow model can run arbitrary code on the machine of the user who loads it. MLflow 2.0.0rc0 through 2.14.1 are affected. The advisory lists no patched version.

Published Jun 4, 2024 · Updated Jun 21, 2024 · Analysis Nov 2, 2026

What an attacker can do

The advisory states that a malicious TensorFlow model uploaded to an MLflow platform executes code on an end user's system when that user interacts with it. The weakness is CWE-502. The affected range begins at 2.0.0rc0, so releases before the 2.0 line are not listed.

The sources I read do not give the loader function or payload format for TensorFlow. The HiddenLayer write-up covers only the scikit-learn flavor, so I do not describe a TensorFlow-specific exploit.

The attacker must be able to upload a model to a server or registry that the victim loads from, or trick the victim into pulling a model from an outside location. The victim must load the model. The CVSS 3.1 vector reflects that with a network attack, no privileges and required user interaction, and high confidentiality, integrity and availability impact.

Expect the attacker to inherit what the loading process holds: training data, cloud roles, tokens and GPU hosts. Shared GPU training clusters make this worse because one poisoned model can reach many jobs.

Who is affected

pip package mlflow from 2.0.0rc0 through 2.14.1. The exposure is limited to workflows that load TensorFlow-flavor models (mlflow.tensorflow) from sources you do not fully control.

pip show mlflow

mlflow

Ecosystem
PyPI
Affected
>= 2.0.0rc0, <= 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. Reduce the risk by restricting who can upload and register TensorFlow models, by loading only reviewed model versions and by running loads in containers with no standing cloud credentials.

Check the MLflow release notes for later changes before treating any release as fixed.

How to tell if you were hit

Find registered models whose MLmodel file declares the tensorflow flavor and review who uploaded them. Inspect saved-model directories and any pickled helper files for unexpected Python. On training or serving hosts, look for new child processes or outbound connections just 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 2.0.0rc0 or newer, enabling a maliciously uploaded Tensorflow model to run arbitrary code on an end user’s system when interacted with.

Questions

Which MLflow versions have the TensorFlow flaw?

2.0.0rc0 through 2.14.1 according to the advisory. No fixed version is recorded.

Is the exploit documented?

The sources I read give no TensorFlow-specific exploit. HiddenLayer's published write-up covers the scikit-learn flavor only.

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 entries