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

CVE-2025-15036: MLFlow path traversal vulnerability

criticalCVSS 3.0 9.6GHSA-vhcx-3pq2-4fvc

MLflow's extract_archive_to_dir function extracted tar.gz archives without checking member paths. An attacker who controls the archive can overwrite arbitrary files and may escape the sandbox directory on shared clusters. The package data lists MLflow before 3.9.0rc0 as vulnerable; the advisory text says versions before 3.7.0. Upgrade to 3.9.0rc0 or later.

Published Mar 30, 2026 · Updated Apr 1, 2026 · Analysis Oct 31, 2026

What an attacker can do

extract_archive_to_dir, in mlflow/pyfunc/dbconnect_artifact_cache.py, unpacks archives with tarfile.extractall and no validation of member names (CWE-29). A tar entry named with ../ components, an absolute path, or a path that runs through a symlink writes outside the target directory.

The attacker must get a crafted tar.gz into the artifact cache path, and the CVSS vector notes user interaction is required. The function belongs to the Databricks Connect artifact cache for pyfunc models, so the risk is on shared or multi-tenant clusters where one tenant's artifact is unpacked by a process with more access. The advisory says exploitation can overwrite arbitrary files or reach elevated privileges and break out of the sandbox directory. Overwriting a startup script, a Python module or a credentials file on the worker can turn into code execution for whoever runs it next. The score is 9.6 with changed scope for that reason.

Who is affected

The mlflow package on PyPI. The package data marks versions before 3.9.0rc0 as vulnerable. The advisory text says the bug is present before v3.7.0, so treat the two as differing sources and use 3.9.0rc0 or later to be safe. The code path matters when pyfunc models are used with Databricks Connect artifact caching. Check the installed version:

pip show mlflow

mlflow

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

How to fix it

Upgrade to mlflow 3.9.0rc0 or later:

pip install --upgrade "mlflow>=3.9.0rc0"

The fix commit 3bf6d81ac4 makes extract_archive_to_dir call a new check_tarfile_security in mlflow/utils/file_utils.py before extracting. It rejects absolute paths, paths starting with .., and entries written through a symlink member. The commit's tests do not cover hard links, so also avoid unpacking archives from untrusted sources. The sources give no other workaround.

How to tell if you were hit

Inspect tar.gz artifacts used by your pyfunc models for entries with ../ prefixes, absolute paths or symlinks, for example with tar -tvzf artifact.tar.gz. On shared clusters, check for files modified outside the artifact cache directory around the time a model artifact was loaded, and for new or changed startup scripts and Python files owned by the MLflow process user. Look for MLflow artifacts uploaded by users who should not publish them.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

A path traversal vulnerability exists in the extract_archive_to_dir function within the mlflow/pyfunc/dbconnect_artifact_cache.py file of the mlflow/mlflow repository. This vulnerability, present in versions before v3.7.0, arises due to the lack of validation of tar member paths during extraction. An attacker with control over the tar.gz file can exploit this issue to overwrite arbitrary files or gain elevated privileges, potentially escaping the sandbox directory in multi-tenant or shared cluster environments.

Questions

Which MLflow version fixes CVE-2025-15036?

The package data lists 3.9.0rc0 as patched. The advisory text says the flaw is present before v3.7.0. Upgrading to 3.9.0rc0 or newer covers both.

Does exploitation need a network attacker?

The vector is network-based with user interaction. The attacker must supply the crafted tar.gz, and it must then be extracted by extract_archive_to_dir.

Is it exploited in the wild?

No source we read says so, and it is not in CISA's KEV data. A huntr bounty report exists.

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