CVE-2025-15031: Arbitrary file write via tar traversal in mlflow
MLflow before 3.9.0rc0 extracts tar archives in its pyfunc code with `tarfile.extractall` and no path validation. A crafted tar.gz with `..` or absolute paths in its entries can write files outside the extraction directory, which can overwrite files and may lead to code execution. Upgrade to 3.9.0rc0 or later.
Published Mar 19, 2026 · Analysis Oct 31, 2026
What an attacker can do
The vulnerable code is in mlflow/pyfunc/dbconnect_artifact_cache.py, in extract_archive_to_dir. It unpacked archives with tarfile.extractall and did not check entry names. A tar entry named ../../something or an absolute path escapes the destination folder and lands anywhere the MLflow process can write (CWE-22).
The attacker must get a malicious archive in front of MLflow, as an untrusted artifact or in a multi-tenant environment where another tenant can supply artifacts. The CVSS vector is adjacent network, no privileges and no user interaction, with high confidentiality and integrity impact. The advisory calls it high to critical risk in multi-tenant setups and when untrusted artifacts are ingested.
Arbitrary file overwrite can become code execution if the attacker replaces a Python module, a startup script or an SSH key file. Shared tracking servers and model-serving hosts that pull artifacts from outside parties deserve the first look.
Who is affected
The pip package mlflow below 3.9.0rc0. Check with:
pip show mlflowThe code path is the pyfunc artifact cache used with Databricks Connect, so installs that never process such archives have less exposure.
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 mlflowThe fix commit 3bf6d81ac4d38654c8ff012dbd0c3e9f17e7e346 calls check_tarfile_security(archive_path) at the start of extract_archive_to_dir, before the destination directory is made and the archive is extracted. The advisory names no workaround. Until you upgrade, do not load artifacts or models from sources you do not trust.
How to tell if you were hit
The advisory lists no indicators. Look for files written outside the MLflow artifact cache directories around the time an archive was loaded, in particular changed Python files, shell profiles or authorized_keys. Inspect suspect archives without extracting them, for example with tar -tzf, and look for entries that start with / or contain ...
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
A vulnerability in MLflow's pyfunc extraction process allows for arbitrary file writes due to improper handling of tar archive entries. Specifically, the use of tarfile.extractall without path validation enables crafted tar.gz files containing .. or absolute paths to escape the intended extraction directory. This issue affects the latest version of MLflow and poses a high/critical risk in scenarios involving multi-tenant environments or ingestion of untrusted artifacts, as it can lead to arbitrary file overwrites and potential remote code execution.
Questions
- Which MLflow version fixes CVE-2025-15031?
3.9.0rc0 is the first patched version in the advisory data. Earlier releases are vulnerable.
- Does exploitation need a login?
The CVSS 3.0 vector sets privileges required to none and user interaction to none, with an adjacent network attack vector. The attacker must still get a crafted archive processed.
- Can it lead to remote code execution?
The advisory says arbitrary file overwrites can lead to potential remote code execution, for example by overwriting code or scripts the host later runs.
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 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
