Arbitrary file write via tar traversal in mlflow
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | mlflow | < 3.9.0rc0 | 3.9.0rc0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-15031
- https://github.com/mlflow/mlflow/commit/3bf6d81ac4d38654c8ff012dbd0c3e9f17e7e346
- https://github.com/mlflow/mlflow
- https://github.com/mlflow/mlflow/blob/fe4d9be330426904283401f1d2ed914238b6fc37/mlflow/pyfunc/dbconnect_artifact_cache.py#L140
- https://huntr.com/bounties/09856f77-f968-446f-a930-657d126efe4e
- https://pypi.org/project/mlflow
- https://github.com/advisories/GHSA-fhff-qmm8-h2fp
- CVSS vector
CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N- Weakness (CWE)
CWE-22- Platform
- Python (PyPI)
- Package
mlflow- Disclosed
- 19.03.2026
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-2656 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-fhff-qmm8-h2fp - CC BY 4.0
Vulnerability history: mlflow
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 82
- First → latest
- 02.2022 09.2026
- Without a fix
- 18
- Exploited in attacks
- 1
Severity breakdown
- Critical 20
- High 48
- Medium 13
- Low 1
Disclosures per year
- 2022: 1
- 2023: 22
- 2024: 24
- 2025: 8
- 2026: 27
-
Arbitrary file write via tar traversal in mlflow this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.