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

CVE-2023-30172: mflow vulnerable to directory traversal

highCVSS 3.1 7.5GHSA-wc6j-5g83-xfm6

The /get-artifact API method of MLflow before 2.0.0 has a directory traversal: the path parameter lets a remote, unauthenticated attacker read arbitrary files on the server. Upgrade to mlflow 2.0.0rc0 or later. The reporter says 2.0.1 fixes it.

Published May 11, 2023 · Updated Nov 12, 2023 · Analysis Nov 2, 2026

What an attacker can do

The artifact download handler behind /get-artifact took a path parameter and did not keep it inside the artifact store. A request with traversal sequences could therefore return files from anywhere the MLflow process can read. A maintainer reproduced the report in issue 7166. The sources do not give a sample payload, and I have not listed one.

Stock MLflow tracking servers have no authentication, so anyone who can reach the port can try this. The CVSS vector rates confidentiality high and nothing else. What an attacker takes depends on the host: SSH keys, cloud credentials, database passwords in environment files, other users' experiment data and model files.

Because MLflow servers sit next to training data and model registries, a file read often leads to wider access to the ML platform.

Who is affected

pip package mlflow before 2.0.0 (the data lists the patched build as 2.0.0rc0). Check the server:

pip show mlflow

The affected piece is the /get-artifact endpoint, which a running tracking server exposes. Version note: a user in the issue asked whether 2.0.0 is fixed too, with no answer on the page, while the reporter wrote that 2.0.1 fixes it. Upgrading to the latest release avoids the question.

mlflow

Ecosystem
PyPI
Affected
< 2.0.0rc0
Fixed in
2.0.0rc0
Check
pip show mlflow

How to fix it

Upgrade to mlflow 2.0.0rc0 or later, preferably a current release:

pip install --upgrade mlflow

The maintainers closed issue 7166 with pull request 7170. The sources do not describe the code change in detail. If you cannot upgrade, keep the tracking server off untrusted networks, put an authenticating reverse proxy in front of it and block /get-artifact for unauthenticated callers.

How to tell if you were hit

Search tracking-server and reverse-proxy logs for requests to /get-artifact where the path parameter holds .., encoded dots such as %2e%2e, or an absolute path. Look for access to files outside the artifact root by the mlflow process. If you find hits, rotate credentials that were readable by that process.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

A directory traversal vulnerability in the /get-artifact API method of the mlflow platform prior to v2.0.0 allows attackers to read arbitrary files on the server via the path parameter.

Questions

Which mlflow version fixes CVE-2023-30172?

The data lists 2.0.0rc0 as the patched build. The reporter in issue 7166 wrote that 2.0.1 fixes it. Use a current release to be safe.

Does it need a login?

No. The vector requires no privileges, and a default MLflow server has no authentication.

What can an attacker read?

Any file the MLflow server process can read, per the advisory. That can include credentials, keys and other users' artifacts.

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