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

CVE-2023-6977: MLflow Local File Disclosure Vulnerability

highCVSS 3.1 7.5GHSA-qg8p-32gr-gh6x

MLflow before 2.9.2 lets a remote user read sensitive files on the server. The is_local_uri check in mlflow/utils/uri.py misjudged some paths, such as /proc/self/root. The fix is mlflow 2.9.2.

Published Dec 20, 2023 · Updated Jan 2, 2024 · Analysis Nov 2, 2026

What an attacker can do

MLflow uses is_local_uri in mlflow/utils/uri.py to decide whether a URI points at the local filesystem, which controls what the server may read or refuse. The function looked at the hostname before the scheme. A URI with no scheme, including paths like /proc/self/root and //proc/self/root, was not classed as local. The fix checks the scheme first and returns True immediately when there is none, and the commit adds those two paths as test cases.

/proc/self/root is a Linux link to the root of the running process's filesystem. A path through it can point at any file the server can read, so a check that missed it let local file paths through where they should have been blocked. The advisory gives no further detail on the exact request that reads the file.

The CVSS vector is network, no privileges, no interaction, with only confidentiality affected. An attacker who reaches the tracking server can read files the server user can read. On an ML host that includes configuration, credentials and model files.

Who is affected

mlflow on PyPI below 2.9.2. MLflow servers that untrusted users can reach are the exposure, and Linux hosts with /proc are the case the fix tests.

Check the installed version:

pip show mlflow

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"

Restart the server. The fix commit makes is_local_uri return True for any URI with no scheme. The sources give no workaround. Until you upgrade, restrict access to the tracking server and run it as a user with a minimal set of readable files.

How to tell if you were hit

Search tracking-server logs for requests that carry paths such as /proc/self/root, //proc/self/root, or other absolute filesystem paths in URI or source parameters. Requests like those from clients you do not know point to probing. If you see them against an unpatched server, treat files readable by the server user as exposed and rotate the secrets they contain.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

This vulnerability enables malicious users to read sensitive files on the server.

Questions

Which version fixes CVE-2023-6977?

mlflow 2.9.2. Versions below it are vulnerable.

Can the attacker change files with this?

No. The CVSS vector scores only confidentiality as high, with no integrity or availability impact. Other issues fixed in 2.9.2, such as CVE-2023-6976, cover writes.

Is a login required?

The vector sets privileges to none. MLflow servers have no login by default, so network access is the main condition.

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