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

CVE-2024-37056: MLFlow unsafe deserialization

highCVSS 3.1 8.8GHSA-7p8j-qv6x-f4g4

MLflow's LightGBM flavor loads models through unsafe deserialization, so a maliciously uploaded LightGBM scikit-learn model runs arbitrary code when someone loads it. Affected versions are MLflow 1.23.0 through 2.14.1, and the advisory lists no patched version.

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

What an attacker can do

MLflow added LightGBM support in 1.23.0, which is where the affected range begins. The advisory describes a LightGBM model built with the scikit-learn API, and says it can execute code on an end user's system when the user interacts with it. The weakness is CWE-502, deserialization of untrusted data.

The sources I read do not name the loader function. The only technical write-up, from HiddenLayer, covers the plain scikit-learn flavor, where pickle.load() and cloudpickle.load() are the sinks. The LightGBM scikit-learn wrapper is a Python object, so a pickle-based load is plausible, but I cannot confirm it from the sources.

The attacker must get a crafted model into a registry or artifact store the victim trusts. The victim then loads it. With network access, no privileges, and user interaction, the CVSS 3.1 score gives high impact on all three properties. Expect the attacker to gain the loading user's file access, tokens and cloud roles.

Who is affected

pip package mlflow 1.23.0 to 2.14.1 inclusive, where you load LightGBM models (mlflow.lightgbm) created by others, for example from a shared registry. Check the installed version with:

pip show mlflow

mlflow

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

How to fix it

No patched version is listed. Mitigate instead: load LightGBM models only from sources you control, restrict who can register models, and run model loading in a sandbox with no standing credentials. Pin production to reviewed model versions.

Check MLflow's release notes before trusting any later release, since the advisory records no fixed one.

How to tell if you were hit

Identify registered models whose MLmodel file lists the lightgbm flavor, and review uploader and timing. Scan pickled artifacts for imports of os, subprocess or socket. Look for processes spawned by Python at model load time.

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

Questions

Which models count as affected?

LightGBM models built with the scikit-learn API and uploaded to MLflow, per the advisory. The range starts at MLflow 1.23.0.

Is there a fixed MLflow release?

Not in this advisory. The patched field is empty and the range goes through 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 entries