Browse / Unsafe Model Loading and Supply Chain / CVE-2025-15031
Arbitrary file write via tar traversal in mlflow
- Class
- Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
- Technique
- Path traversal and file access
- Also involves
- AI Framework and Platform Flaws
- Affected
- mlflow (PyPI)
- CVSS
- CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- EPSS
- 1.0% chance of exploitation in 30 days
How it works, in short
Extracting a crafted pyfunc model archive with unvalidated tar entry paths writes files outside the target directory. (Our summary, written by a model. The source text is below.)
Details
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.
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
Source: GitHub Advisory Database, used under CC BY 4.0.