CVE-2024-1560
JSON

8.1high

Path Traversal Vulnerability in mlflow/mlflow

Severity
8.1high CVSS:3.0 by @huntr_ai
Exploit likelihood
1.25% (higher than 69% of CVEs)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-5mvj-wmgj-7q8cBIT-MLFLOW-2024-1560PYSEC-2026-1641

Description

A path traversal vulnerability exists in the mlflow/mlflow repository, specifically within the artifact deletion functionality. Attackers can bypass path validation by exploiting the double decoding process in the `_delete_artifact_mlflow_artifacts` handler and `local_file_uri_to_path` function, allowing for the deletion of arbitrary directories on the server's filesystem. This vulnerability is due to an extra unquote operation in the `delete_artifacts` function of `local_artifact_repo.py`, which fails to properly sanitize user-supplied paths. The issue is present up to version 2.9.2, despite attempts to fix a similar issue in CVE-2023-6831.

Affected

Product or packageVersionsReported by
mlflow mlflow/mlflowfrom unspecified up to latestCVE List
mlflow mlflowbefore 2.9.2CVE List
mlflow (PyPI)up to 2.9.2GitHub Advisory Database, PyPA Advisory Database
lfprojects mlflowup to 2.9.2NVD
mlflow (Bitnami)before 2.12.2Bitnami Vulnerability Database

All scores

@huntr_ai8.1high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
GitHub8.1high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
PyPA Advisory Database8.1high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-22

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

A path traversal vulnerability exists in the mlflow/mlflow repository, specifically within the artifact deletion functionality. Attackers can bypass path validation by exploiting the double decoding process in the `_delete_artifact_mlflow_artifacts` handler and `local_file_uri_to_path` function, allowing for the deletion of arbitrary directories on the server's filesystem. This vulnerability is due to an extra unquote operation in the `delete_artifacts` function of `local_artifact_repo.py`, which fails to properly sanitize user-supplied paths. The issue is present up to version 2.9.2, despite attempts to fix a similar issue in CVE-2023-6831.

NVD (es)

Existe una vulnerabilidad de path traversal en el repositorio mlflow/mlflow, específicamente dentro de la funcionalidad de eliminación de artefactos. Los atacantes pueden eludir la validación de rutas explotando el proceso de doble decodificación en el controlador `_delete_artifact_mlflow_artifacts` y la función `local_file_uri_to_path`, lo que permite la eliminación de directorios arbitrarios en el sistema de archivos del servidor. Esta vulnerabilidad se debe a una operación adicional entre comillas en la función `delete_artifacts` de `local_artifact_repo.py`, que no sanitiza adecuadamente las rutas proporcionadas por el usuario. El problema está presente hasta la versión 2.9.2, a pesar de los intentos de solucionar un problema similar en CVE-2023-6831.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-1560 changed 2024-08-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-5mvj-wmgj-7q8c changed 2026-07-07CC-BY-4.0
NVDCVE-2024-1560 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1641 changed 2026-07-07CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-MLFLOW-2024-1560 changed 2026-09-08Apache-2.0