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

CVE-2023-43472: Information exposure in MLflow

highCVSS 3.1 7.5GHSA-wqxf-447m-6f5f

MLflow 2.8.1 and earlier let a website the victim visits send cross-origin requests to the MLflow REST API on localhost, because the API does not check the Content-Type header. Attackers can redirect a future run's model and training data to a bucket they control. MLflow 2.9.0 is the patched version.

Published Dec 5, 2023 · Updated Dec 11, 2023 · Analysis Nov 2, 2026

What an attacker can do

Contrast Security, who found the flaw, says the REST API served with the MLflow UI at localhost:5000 does not check the content type. A request with a text/plain type counts as a simple request, so the browser sends it without a CORS preflight. A web page the victim opens can therefore call the local API. The article does not name the specific route.

Its attack chain: the page renames the Default experiment to "Old". The API cannot change an experiment's artifact location or delete Default, so the script creates a new experiment named "Default" whose artifact location is an attacker-controlled S3 bucket. The victim's next run on the Default experiment then uploads its results to that bucket.

The attacker receives the serialized model and the data used to train it, which is the information exposure behind CWE-200. The write-up also describes model poisoning: a modified model.pkl with a Python pickle payload could give code execution on the machine that later loads it. The attacker needs the victim to visit a hostile page while MLflow runs locally and to run an experiment afterwards. The CVSS vector rates it network, no privileges, no interaction.

Who is affected

The pip package mlflow below 2.9.0. Contrast reports all versions from at least 2.6.0 are affected, and most likely every 2.x release. Servers or local UIs reachable from a browser carry the risk, such as the default localhost:5000 setup. Check your version:

pip show mlflow

mlflow

Ecosystem
PyPI
Affected
< 2.9.0
Fixed in
2.9.0
Check
pip show mlflow

How to fix it

Upgrade to mlflow 2.9.0 or later.

pip install -U "mlflow>=2.9.0"

I could not read the 2.9.0 release notes, so I cannot say what the code change does. The sources list no workaround. Until you upgrade, avoid browsing untrusted sites while a local MLflow server is running, and do not expose the server beyond localhost without authentication.

How to tell if you were hit

In the MLflow UI, look for an experiment named "Old" that you did not create, a Default experiment that is new, or an experiment whose artifact location points to an unknown S3 bucket. Check your cloud storage logs for uploads from your machines to buckets you do not own. Treat any model.pkl retrieved from a changed artifact location as untrusted, and review the artifact location of every experiment.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

An issue in MLFlow versions 2.8.1 and before allows a remote attacker to obtain sensitive information via a crafted request to REST API.

Questions

Which MLflow version fixes CVE-2023-43472?

MLflow 2.9.0. The advisory lists versions below it as affected, and Contrast reports versions from at least 2.6.0 and probably all 2.x as vulnerable.

Does the attacker need access to my network?

No direct access. A web page you visit sends the requests from your own browser to the local MLflow API, which skips the CORS preflight because the content type is not checked.

Can it lead to code execution?

The researcher describes a poisoned pickle model file that could run code when loaded. That is a second step: someone must load the modified model.

Is it exploited in the wild?

No source I read says so, and the entry has no CISA KEV data. Its EPSS percentile is high, but that is a prediction, not evidence of attacks.

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