MLflow Path Traversal Vulnerability in Tarfile Extraction

Vulnerability

A path traversal vulnerability has been identified in the MLflow project, specifically within the 'extract_archive_to_dir' function of the 'mlflow/pyfunc/dbconnect_artifact_cache.py' file. This vulnerability affects versions prior to 3.7.0 and stems from inadequate validation of tar member paths during extraction. An attacker controlling the tar.gz file can exploit this flaw to overwrite arbitrary files or gain elevated privileges, potentially escaping the sandbox directory in multi-tenant or shared cluster environments.

Impact

Exploitation allows for path traversal, overwriting of files, and potentially escaping sandbox restrictions in shared environments.

Reproduction

The vulnerability can be reproduced by creating a tar.gz file that includes paths designed to traverse directories, such as relative paths that go up the directory structure. This crafted tar file can then be extracted using the vulnerable 'extract_archive_to_dir' function, which lacks proper path validation. Additionally, tar files containing symlinks that point outside the extraction directory can also exploit this vulnerability.

Remediation

Users should update to MLflow version 3.7.0 or later, where this vulnerability has been fixed.

Added: Mar 30, 2026, 2:19 AM
Updated: Mar 30, 2026, 2:19 AM

Vulnerability Rating

Custom Algorithm
spread
5.7
impact
3.3
exploitability
8.5
remediation
7.7
relevance
5.0
threat
6.4
urgency
2.9
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.