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.
Security readout for executives and security teams
Plain-English summary
MLflow can extract a crafted model artifact outside its intended folder and overwrite files. In environments that accept MLflow artifacts from users or tenants, this could let an attacker tamper with application files and may lead to code execution. The sources do not identify a fixed version.
Executive priority
Treat as high priority for ML platforms that accept external or multi-tenant artifacts. Prioritize containment and vendor guidance review because arbitrary file overwrite can affect confidentiality and integrity, and the fix details are not clear in the supplied sources.
Technical view
The issue is CWE-22 path traversal in MLflow pyfunc extraction. Tar archive entries using parent-directory or absolute paths may be extracted without path validation, enabling arbitrary file writes outside the intended directory. The supplied CVSS is 8.1 high.
Likely exposure
Exposure is most likely where MLflow ingests untrusted or cross-tenant pyfunc/model artifacts, especially tar.gz artifacts. Single-user, tightly controlled MLflow deployments have lower practical exposure, but version ranges are unspecified in the bundle.
Exploitation context
The bundle does not report known active exploitation and KEV is false. Exploitation requires a crafted artifact reaching MLflow's pyfunc extraction path. Sources describe possible arbitrary overwrite and potential code execution, but do not provide observed attack details.
Researcher notes
Evidence is strongest for a path traversal design flaw in tar extraction. The public bundle lacks precise affected versions, patch status, and exploit-in-the-wild confirmation. Avoid assuming every MLflow deployment is exploitable without confirming artifact trust boundaries and the relevant extraction path.
Mitigation direction
Check MLflow and vendor advisories for fixed versions or official workarounds.
Do not ingest MLflow artifacts from untrusted users or tenants.
Isolate MLflow processing with least-privilege filesystem permissions.
Restrict artifact upload sources and enforce tenant separation.
Monitor for unexpected file changes during artifact extraction.
Validation and detection
Inventory MLflow deployments and artifact ingestion workflows.
Identify systems processing pyfunc or tar.gz model artifacts.
Confirm whether artifacts can be supplied by users, tenants, or external pipelines.
Review advisory sources for affected and fixed version details.
Check logs and file integrity telemetry for unexpected writes.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-22: File access and web shell behavior lookup
File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
5Timeline events
2ADP providers
5Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-22 · source CWE mapping
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.