AgentbeamBeta
AI agent vulnerability · MLflow

CVE-2023-6976: MLflow Path Traversal Vulnerability

highCVSS 3.0 8.8GHSA-wv8q-4f85-2p8p

MLflow before 2.9.2 has a path traversal flaw in its artifact handling. An authenticated user can write files to arbitrary locations on the server's filesystem, with the rights of the server process. Upgrade to mlflow 2.9.2.

Published Dec 20, 2023 · Analysis Nov 18, 2026

What an attacker can do

MLflow's server has artifact endpoints that upload, download, list and delete files. They call validate_path_is_safe on the path the client supplies. According to the fix commit, the callers checked the raw path and then kept using the original value instead of the validated one. A path that passes through that gap can still point outside the artifact root.

The advisory text says this lets the attacker write arbitrary files into arbitrary locations on the remote filesystem, in the context of the server process. The CVSS vector needs a low-privilege account and no user interaction, so any user who can reach the tracking server's upload endpoints can try it. It is rated High (8.8) and classed as CWE-434.

What the attacker gets depends on what the server process can write to. Dropping files into startup scripts, cron directories, web roots or Python paths can turn a file write into code execution on the MLflow host, with access to experiment data, model artifacts and any cloud credentials the host holds. The sources do not publish a working exploit chain.

Who is affected

mlflow (pip) before 2.9.2, on servers that run the tracking server and expose the artifact endpoints, such as mlflow server. Check the version:

pip show mlflow

Check every host or container that runs the MLflow server, not only developer laptops.

mlflow

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

How to fix it

Upgrade to mlflow 2.9.2.

pip install --upgrade mlflow==2.9.2

The fix commit makes validate_path_is_safe return the validated path and updates the artifact handlers in mlflow/server/handlers.py, and list_artifacts in http_artifact_repo.py, to use that returned value. The sources list no workaround. Until you upgrade, keep the server off untrusted networks and limit who has accounts.

How to tell if you were hit

Look in the MLflow server's access logs for artifact upload or download requests with ../ sequences or encoded forms such as %2e%2e in the path. On the host, check for new or recently changed files outside the artifact root, especially in startup, cron or web directories, written by the user that runs MLflow. Review which accounts called the artifact upload endpoints.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

This vulnerability is capable of writing arbitrary files into arbitrary locations on the remote filesystem in the context of the server process.

Questions

Which MLflow version fixes CVE-2023-6976?

mlflow 2.9.2 fixes it. All versions before 2.9.2 are affected.

Does the attacker need to log in?

The CVSS vector requires low privileges, meaning a valid account on the server. It needs no user interaction and works over the network.

What does the fix change?

Callers used to validate the path and then keep using the unvalidated value. The commit makes validate_path_is_safe return the checked path and has the artifact handlers use it.

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