CVE-2025-15031: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in mlflow 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.
AI Analysis
Technical Summary
MLflow's pyfunc extraction process improperly handles tar archive entries by using tarfile.extractall without path validation. This allows maliciously crafted tar.gz files containing directory traversal sequences ('..') or absolute paths to write files outside the intended extraction directory. The vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). It affects all versions of mlflow/mlflow. The CVSS v3.0 score is 8.1, indicating high severity with network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality and integrity impact. The vulnerability can lead to arbitrary file overwrites and potential remote code execution, particularly in multi-tenant or untrusted artifact ingestion scenarios. Red Hat has published an advisory for this CVE but no explicit patch or remediation status is provided in the advisory content.
Potential Impact
Successful exploitation allows an attacker to write arbitrary files outside the intended extraction directory by leveraging path traversal in tar archive extraction. This can lead to overwriting critical files and potentially remote code execution. The impact is high confidentiality and integrity loss. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The Red Hat advisory is available but does not explicitly state a patch or fix. Until an official fix is released, avoid extracting untrusted tar.gz artifacts with MLflow's pyfunc extraction process or implement manual path validation before extraction to prevent directory traversal.
CVE-2025-15031: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in mlflow mlflow/mlflow
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.
CVSS v3.0
Score 8.1high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
MLflow's pyfunc extraction process improperly handles tar archive entries by using tarfile.extractall without path validation. This allows maliciously crafted tar.gz files containing directory traversal sequences ('..') or absolute paths to write files outside the intended extraction directory. The vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). It affects all versions of mlflow/mlflow. The CVSS v3.0 score is 8.1, indicating high severity with network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality and integrity impact. The vulnerability can lead to arbitrary file overwrites and potential remote code execution, particularly in multi-tenant or untrusted artifact ingestion scenarios. Red Hat has published an advisory for this CVE but no explicit patch or remediation status is provided in the advisory content.
Potential Impact
Successful exploitation allows an attacker to write arbitrary files outside the intended extraction directory by leveraging path traversal in tar archive extraction. This can lead to overwriting critical files and potentially remote code execution. The impact is high confidentiality and integrity loss. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The Red Hat advisory is available but does not explicitly state a patch or fix. Until an official fix is released, avoid extracting untrusted tar.gz artifacts with MLflow's pyfunc extraction process or implement manual path validation before extraction to prevent directory traversal.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- @huntr_ai
- Date Reserved
- 2025-12-22T14:49:46.957Z
- Cvss Version
- 3.0
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2025-15031","vendor":"Red Hat"}]
Threat ID: 69bb2706771bdb1749cae217
Added to database: 03/18/2026, 22:28:22 UTC
Last enriched: 07/15/2026, 08:17:05 UTC
Last updated: 08/01/2026, 07:17:55 UTC
Views: 286
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.