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

CVE-2023-6975: MLFlow Path Traversal Vulnerability

criticalCVSS 3.1 9.8GHSA-hh8p-p8mp-gqhm

MLflow before 2.9.2 has a path traversal in its FTP artifact repository. A remote user can get command execution on the MLflow machine and read data and model information. The fix is mlflow 2.9.2.

Published Dec 20, 2023 · Updated Nov 16, 2026 · Analysis Nov 2, 2026

What an attacker can do

The fix commit changes FTPArtifactRepository.list_artifacts in mlflow/store/artifact/ftp_artifact_repo.py. The method asked the FTP server for a listing with ftp.nlst(), then dropped entries equal to . or .. before reducing names to their base name. An FTP server can return entries such as /. or /.. as absolute paths, and those slipped past the filter. The fix applies os.path.basename first, then filters. A new test feeds the method ".", "/.", "/.." and "//.." and expects an empty list.

This implies that a malicious or compromised FTP artifact store, or an attacker who controls a listing, can steer MLflow outside the artifact directory on the MLflow machine. The advisory says this leads to command execution and access to data and models. It does not describe the exact chain, so how file access becomes command execution is not confirmed here.

The CVSS vector is network, no privileges, no interaction, high impact on confidentiality, integrity and availability. The exposure is MLflow servers or clients that use an ftp:// artifact location.

Who is affected

mlflow on PyPI below 2.9.2. The vulnerable code is in the FTP artifact repository, so setups with an ftp:// artifact root are the clear exposure. The advisory does not say whether others are affected.

Check the installed version:

pip show mlflow

Also check experiment artifact locations for the ftp:// scheme.

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 is commit b9ab9ed (pull request 10657), which applies os.path.basename before the . or .. check in FTPArtifactRepository. The sources name no workaround. If you cannot upgrade, move artifacts off FTP to a store you control and do not point MLflow at FTP servers you do not trust.

How to tell if you were hit

Review which artifact locations your experiments use and whether any ftp:// server is not under your control. Look on the MLflow host for files written or changed outside the artifact directories, and for unexpected processes started by the MLflow service account. Check MLflow server logs for artifact listing calls to FTP locations followed by errors or odd paths.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

A malicious user could use this issue to get command execution on the vulnerable machine and get access to data & models information.

Questions

Am I affected if I do not use FTP artifacts?

The fixed code is in the FTP artifact repository. The advisory does not describe other routes, so FTP users are the clear exposure. Upgrading to 2.9.2 is still the safe course.

Which version fixes CVE-2023-6975?

mlflow 2.9.2. Versions below it are in the vulnerable range.

Is it exploited in the wild?

The sources I read do not say so, and it is not in CISA's KEV catalog.

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