CVE-2023-6831: Path traversal in MLflow
MLflow before 2.9.2 has a path traversal in its artifact path handling, using a `\..\filename` style path that escapes the artifact directory. Network attackers need no login. The fix, in 2.9.2, hardens `validate_path_is_safe` in mlflow/utils/uri.py.
Published Dec 15, 2023 · Updated Feb 14, 2024 · Analysis Nov 2, 2026
What an attacker can do
The advisory gives only one line: path traversal using \..\filename in mlflow/mlflow before 2.9.2. It lists the weaknesses CWE-22 and CWE-29. The fix commit changes validate_path_is_safe in mlflow/utils/uri.py, the check applied to artifact paths that clients send to the MLflow server. The commit now URL-decodes the path before checking it, so encoded inputs like %2E%2E%2F are tested in decoded form, and it returns the fixed message Invalid path instead of echoing the input. The new tests cover /etc/passwd, path/../to/file and %2E%2E%2Fpath, and expect HTTP 400.
The CVSS 3.0 vector is network, no privileges, no user interaction, scope changed, with high integrity and availability impact and no confidentiality impact. An attacker who can reach an MLflow tracking server that serves artifacts can send crafted paths to write or delete files outside the artifact root. The sources do not give an exploit walkthrough, so the exact reach depends on your deployment: the server's file permissions, and whether artifact serving is enabled.
Who is affected
The pip package mlflow below 2.9.2. Servers reachable by untrusted clients, especially with artifact serving enabled, carry the most risk. Check the version:
pip show mlflowIf you run a hosted tracking server, check the version shown in its environment or container image.
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 -U "mlflow>=2.9.2"The sources list no workaround. Until you upgrade, do not expose the tracking server to untrusted networks. Put it behind authentication or a VPN, and run it as a user with minimal file system rights.
How to tell if you were hit
Search access logs of the tracking server for artifact requests whose path contains .., \..\, %2E%2E or a leading /, and for HTTP 400 responses with the message Invalid path after you patch. Check the artifact root and nearby directories for files that were created, changed or removed without a matching run. Review server logs for unexpected delete or upload artifact calls from unfamiliar addresses.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Path Traversal: '\..\filename' in GitHub repository mlflow/mlflow prior to 2.9.2.
Questions
- Is MLflow 2.9.2 affected by CVE-2023-6831?
No. 2.9.2 is the patched release. Everything before it is affected.
- Does the attacker need authentication?
No. The vector scores no privileges and no user interaction, so network access to the server is enough. MLflow has no authentication by default.
- What does the fix change?
It makes validate_path_is_safe in mlflow/utils/uri.py URL-decode paths before checking them, and return a generic
Invalid patherror. New tests expect HTTP 400 for traversal paths.- Is it exploited in the wild?
No source I read says so, and the entry has no CISA KEV data.
References
Read for this analysis:
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 entriesCVE-2026-116690
MLflow vulnerable to arbitrary file read on unauthenticated servers via prompt model version source
high7.5Oct 27, 2026CVE-2026-116691
MLflow CrewAI autologging records LLM provider API keys in logged trace spans
medium6.5Oct 27, 2026CVE-2026-116692
MLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifact modules
critical9.8Oct 27, 2026CVE-2026-115886
MLflow: SSRF on unauthenticated MLflow servers via third-party scorer kwargs in the scorer invoke, register, and GenAI evaluate endpoints
medium6.5Oct 23, 2026CVE-2026-53995
MLflow FileStore trace IDs allow path traversal and arbitrary file writes
high8.2Oct 20, 2026GHSA-gqvg-gmmx-x4hm
MLFLOW_ALLOW_PICKLE_DESERIALIZATION=False safety control bypassed by mlflow.statsmodels flavor — RCE via crafted model artifact
high8.8Sep 1, 2026
