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 package | Versions | Reported by |
|---|---|---|
| mlflow mlflow/mlflow | from unspecified up to latest | CVE List |
| mlflow mlflow | before 2.9.2 | CVE List |
| mlflow (PyPI) | up to 2.9.2 | GitHub Advisory Database, PyPA Advisory Database |
| lfprojects mlflow | up to 2.9.2 | NVD |
| mlflow (Bitnami) | before 2.12.2 | Bitnami Vulnerability Database |
All scores
| @huntr_ai | 8.1high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| GitHub | 8.1high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| PyPA Advisory Database | 8.1high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
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
| https://huntr.com/bounties/4a34259c-3c8f-4872-b178-f27fbc876b98 | advisory, exploit, issue-tracking, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-1560 | advisory, web | |
| https://github.com/mlflow/mlflow | package | |
| https://pypi.org/project/mlflow | package | |
| https://github.com/advisories/GHSA-5mvj-wmgj-7q8c | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-1560 changed 2024-08-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5mvj-wmgj-7q8c changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2024-1560 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1641 changed 2026-07-07 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-MLFLOW-2024-1560 changed 2026-09-08 | Apache-2.0 |