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

CVE-2024-37059: MLFlow unsafe deserialization

highCVSS 3.1 8.8GHSA-wf7f-8fxf-xfxc

MLflow's PyTorch flavor deserializes untrusted data, so a maliciously uploaded PyTorch model can run arbitrary code on a user's machine when they load it. The affected range is wide, from MLflow 0.5.0 through 3.4.0, and the advisory lists no patched version.

Published Jun 4, 2024 · Updated Sep 29, 2025 · Analysis Nov 2, 2026

What an attacker can do

This is the one entry in the series whose range reaches MLflow 3.4.0, not 2.14.1. It begins at 0.5.0, which covers almost every release of the project. The advisory says a PyTorch model uploaded by an attacker executes code on the end user's system when the user interacts with it. The weakness is CWE-502.

PyTorch models are commonly saved with Python pickle, which can run code on load. The advisory does not spell out the loader function for this flavor, and the HiddenLayer write-up covers scikit-learn only, so the exact path is not confirmed by the sources I read.

The attacker needs to get the model in front of the victim: an upload to a shared tracking server, a poisoned registry entry, or a download link. The victim must load it (CVSS UI:R). Code then runs with that user's rights on a workstation, notebook host or GPU node, with access to datasets, source and cloud credentials.

Because the range is so long, recent installs are exposed as well as old ones.

Who is affected

pip package mlflow from 0.5.0 up to and including 3.4.0. You are exposed when you load PyTorch-flavor models (mlflow.pytorch) that someone outside your trust boundary produced.

pip show mlflow

mlflow

Ecosystem
PyPI
Affected
>= 0.5.0, <= 3.4.0
Fixed in
No patched version yet
Check
pip show mlflow

How to fix it

The advisory lists no patched version, including for 3.4.0. Mitigate: load PyTorch models only from sources you control, restrict upload and registration rights, promote models only after review, and load them in a sandbox with no standing credentials and limited egress.

Recheck MLflow releases after 3.4.0 for notes on safer loading.

How to tell if you were hit

Find registered models whose MLmodel file lists the pytorch flavor and review uploader and timing. Scan .pth or pickled model files with a pickle scanner for imports such as os.system, subprocess or builtins.exec. Watch loading hosts for child processes and unexpected connections after mlflow.pytorch.load_model.

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.5.0 or newer, enabling a maliciously uploaded PyTorch model to run arbitrary code on an end user’s system when interacted with.

Questions

Is MLflow 3.x affected by CVE-2024-37059?

Versions up to and including 3.4.0 are listed as vulnerable, with no fixed version. That makes this wider than the sibling advisories, which stop at 2.14.1.

Where does the attack start?

With a malicious PyTorch model that reaches a user, usually via a shared registry. The user must load it.

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