CVE-2025-15031 Details
Description
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.
A vulnerability in MLflow's pyfunc extraction process allows for arbitrary file writes due to improper handling of tar archive entries. The issue arises because `tarfile.extractall` is used without path validation, enabling crafted tar.gz files to escape the intended extraction directory. This vulnerability affects the latest version of MLflow and poses a high to critical risk, particularly in multi-tenant environments or when ingesting untrusted artifacts, as it can lead to arbitrary file overwrites and potential remote code execution.
It is recommended to validate each `TarInfo` member before extraction by rejecting absolute paths and any paths that escape the intended extraction directory. Alternatively, paths can be sanitized before writing or an error can be raised on suspicious entries. Adding a regression test to ensure that such malicious entries are blocked during extraction would also be beneficial.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 19, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2025-15031 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2448912 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-15031.json | redhat-SADP | |
| https://huntr.com/bounties/09856f77-f968-446f-a930-657d126efe4e | CISA-ADP | ExploitMitigationThird Party Advisory |
| https://huntr.com/bounties/09856f77-f968-446f-a930-657d126efe4e | [email protected] | ExploitMitigationThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | redhat-SADP |
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| lfprojects mlflow | <= 3.10.1 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 23, 2026 | Initial Analysis | [email protected] |
| Mar 19, 2026 | CVE Modified | CISA-ADP |
| Mar 18, 2026 | New CVE Received | [email protected] |