AgentbeamBeta
AI agent vulnerability · MLflow

CVE-2023-1177: mlflow is vulnerable to remote file access in `mlflow server` and `mlflow ui` CLIs

criticalCVSS 4.0 9.3 · 3.1 9.8GHSA-xg73-94fp-g449

MLflow before 2.2.1 lets a remote caller download arbitrary files from the host running `mlflow server` or `mlflow ui`, including files in remote storage the server can reach. It matters if the server is open to untrusted callers. Fixed in MLflow 2.2.1, released on PyPI on March 2, 2023.

Published Mar 24, 2023 · Updated Oct 1, 2024 · Analysis Nov 11, 2026

What an attacker can do

The flaw is in the MLflow Model Registry and Tracking server started with mlflow server or mlflow ui. The advisory says an actor can download arbitrary files unrelated to MLflow from the host, including any files in remote locations the host server has access to. Nothing about authentication is required by the advisory's wording; it makes exposure conditional on the server not limiting who can query it, by a cloud VPC, an IP allowlist or authentication middleware.

MLflow open source has no authentication by default, so a server reachable on a network gives the file read to anyone there. The files at risk are whatever the server process can read: SSH keys, environment files, cloud credential files and application configuration. If the artifact store is cloud blob storage, the server's cloud credentials widen the reach to that storage. Integrations that do not use these commands are unaffected, and the advisory names Databricks Managed MLflow and MLflow on Azure Machine Learning as not impacted.

Who is affected

mlflow on PyPI up to and including 2.2.0, only when run as mlflow server or mlflow ui with the Model Registry. Check:

pip show mlflow
ps aux | grep "mlflow \(server\|ui\)"

mlflow

Ecosystem
PyPI
Affected
<= 2.2.0
Fixed in
2.2.1
Check
pip show mlflow

How to fix it

Upgrade to MLflow 2.2.1:

pip install --upgrade mlflow==2.2.1

The advisory's workarounds apply if you cannot upgrade. Limit who can reach the Model Registry and Tracking servers with a cloud VPC, an IP allowlist, or authentication and authorization middleware. Limit the remote files the server can reach: if you store artifacts in cloud blob storage, scope the server's cloud credentials to MLflow's own files and directories.

How to tell if you were hit

Look in the server's access logs for artifact or model-registry requests with traversal sequences or absolute paths, from addresses outside your expected client list. Review the cloud audit logs of the server's credentials for reads of objects outside the MLflow bucket path. If a server was open to untrusted networks while on an affected version, rotate credentials stored on that host.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

Users of the MLflow Open Source Project who are hosting the MLflow Model Registry using the mlflow server or mlflow ui commands using an MLflow version older than MLflow 2.2.1 may be vulnerable to a remote file access exploit if they are not limiting who can query their server (for example, by using a cloud VPC, an IP allowlist for inbound requests, or authentication / authorization middleware).

This issue only affects users and integrations that run the mlflow server and mlflow ui commands. Integrations that do not make use of mlflow server or mlflow ui are unaffected; for example, the Databricks Managed MLflow product and MLflow on Azure Machine Learning do not make use of these commands and are not impacted by these vulnerabilities in any way.

The vulnerability detailed in https://nvd.nist.gov/vuln/detail/CVE-2023-1177 enables an actor to download arbitrary files unrelated to MLflow from the host server, including any files stored in remote locations to which the host server has access.

Patches

This vulnerability has been patched in MLflow 2.2.1, which was released to PyPI on March 2nd, 2023. If you are using mlflow server or mlflow ui with the MLflow Model Registry, we recommend upgrading to MLflow 2.2.1 as soon as possible.

Workarounds

If you are using the MLflow open source mlflow server or mlflow ui commands, we strongly recommend limiting who can access your MLflow Model Registry and MLflow Tracking servers using a cloud VPC, an IP allowlist for inbound requests, authentication / authorization middleware, or another access restriction mechanism of your choosing.

If you are using the MLflow open source mlflow server or mlflow ui commands, we also strongly recommend limiting the remote files to which your MLflow Model Registry and MLflow Tracking servers have access. For example, if your MLflow Model Registry or MLflow Tracking server uses cloud-hosted blob storage for MLflow artifacts, make sure to restrict the scope of your server's cloud credentials such that it can only access files and directories related to MLflow.

References

More information about the vulnerability is available at https://nvd.nist.gov/vuln/detail/CVE-2023-1177.

Questions

Is Databricks Managed MLflow affected by CVE-2023-1177?

No. The advisory says Databricks Managed MLflow and MLflow on Azure Machine Learning do not use these commands and are not impacted.

Am I safe if the server is behind a VPC?

Access limits reduce the risk, as the advisory says, but they are a workaround. Upgrade to 2.2.1.

Which version fixes it?

MLflow 2.2.1, released to PyPI on March 2, 2023.

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