CVE-2025-15031: Path Traversal Vulnerability in mlflow/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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/mlflowto a version that resolves this vulnerability.Fixed in 3.9.0rc0
Event History
Frequently Asked Questions
What is the severity of CVE-2025-15031?
CVE-2025-15031 has a high severity due to the potential for arbitrary file writes.
How do I fix CVE-2025-15031?
To fix CVE-2025-15031, update MLflow to the latest version where the vulnerability is patched.
What versions of MLflow are affected by CVE-2025-15031?
CVE-2025-15031 affects specific versions of MLflow that use unvalidated tarfile extraction methods.
What type of vulnerability is CVE-2025-15031?
CVE-2025-15031 is a Path Traversal vulnerability allowing attackers to write files outside the intended directory.
How does CVE-2025-15031 impact MLflow users?
CVE-2025-15031 can lead to unauthorized file creation, which may compromise system integrity on servers running MLflow.