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

CVE-2024-37058: MLFlow unsafe deserialization

highCVSS 3.1 8.8GHSA-cwgg-w6mp-w9hg

MLflow's LangChain flavor can execute attacker code when a user loads a maliciously uploaded LangChain AgentExecutor model. It is unsafe deserialization in MLflow 2.5.0 through 2.14.1. The advisory lists no patched version, so treat shared agent models as untrusted code.

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

What an attacker can do

MLflow can log and reload LangChain objects. The advisory names the AgentExecutor model: an agent chain that holds a model, tools and a prompt. If someone uploads a crafted one, loading it runs arbitrary code on the user's system. The weakness is CWE-502, deserialization of untrusted data. The affected range begins with 2.5.0.

The sources I read do not describe the loader or payload for this flavor. HiddenLayer's write-up covers scikit-learn only.

An attacker needs to place a model in a registry or artifact store the victim uses, and the victim has to load it. Agent models are a worse fit for casual sharing than most, because teams pass chains around as ready-made applications. They often run in environments that hold LLM provider API keys, database credentials and tool access, all of which the attacker would get.

The CVSS 3.1 vector: network, no privileges, user interaction required, high impact on confidentiality, integrity and availability.

Who is affected

pip package mlflow from 2.5.0 through 2.14.1, in setups that load LangChain-flavor models (mlflow.langchain) logged by other people.

pip show mlflow

Check registered models for a langchain flavor in the MLmodel file.

mlflow

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

How to fix it

The advisory lists no patched version. Load LangChain agent models only from registries you control. Require review before an agent model is promoted, run the load in an isolated environment, and keep provider keys and database credentials out of that environment until the model has been reviewed.

Look at MLflow's later release notes to see whether loading changed before you assume safety.

How to tell if you were hit

List LangChain-flavor registered models and who logged each version. Review the model's saved chain definition and any pickled objects for imports of os, subprocess or network clients. On the host that loads it, look for unexpected processes or outbound traffic when load_model runs.

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

Questions

Does this affect only AgentExecutor models?

The advisory names the LangChain AgentExecutor model. It does not say whether other LangChain model types in MLflow share the issue.

Is there a patch?

None is listed. The range 2.5.0 through 2.14.1 has 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 entries