7.5high
Path Traversal Vulnerability in mlflow/mlflow
- Severity
- 7.5high CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 1.15% (higher than 67% of CVEs)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-j62r-wxqq-f3gfBIT-MLFLOW-2024-1558PYSEC-2026-1653
Description
A path traversal vulnerability exists in the `_create_model_version()` function within `server/handlers.py` of the mlflow/mlflow repository, due to improper validation of the `source` parameter. Attackers can exploit this vulnerability by crafting a `source` parameter that bypasses the `_validate_non_local_source_contains_relative_paths(source)` function's checks, allowing for arbitrary file read access on the server. The issue arises from the handling of unquoted URL characters and the subsequent misuse of the original `source` value for model version creation, leading to the exposure of sensitive files when interacting with the `/model-versions/get-artifact` handler.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mlflow mlflow/mlflow | from unspecified up to latest | CVE List |
| lfprojects mlflow | 2.9.2, before 2.12.1 | CVE List, NVD |
| mlflow (PyPI) | before 2.12.1 | GitHub Advisory Database, PyPA Advisory Database |
| mlflow (Bitnami) | before 2.12.1 | Bitnami Vulnerability Database |
All scores
| @huntr_ai | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| PyPA Advisory Database | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
A path traversal vulnerability exists in the `_create_model_version()` function within `server/handlers.py` of the mlflow/mlflow repository, due to improper validation of the `source` parameter. Attackers can exploit this vulnerability by crafting a `source` parameter that bypasses the `_validate_non_local_source_contains_relative_paths(source)` function's checks, allowing for arbitrary file read access on the server. The issue arises from the handling of unquoted URL characters and the subsequent misuse of the original `source` value for model version creation, leading to the exposure of sensitive files when interacting with the `/model-versions/get-artifact` handler.
NVD (es)
Existe una vulnerabilidad de path traversal en la función `_create_model_version()` dentro de `server/handlers.py` del repositorio mlflow/mlflow, debido a una validación incorrecta del parámetro `source`. Los atacantes pueden explotar esta vulnerabilidad creando un parámetro `source` que pasa por alto las comprobaciones de la función `_validate_non_local_source_contains_relative_paths(source)`, permitiendo acceso de lectura arbitrario a archivos en el servidor. El problema surge del manejo de caracteres URL sin comillas y el posterior uso indebido del valor "fuente" original para la creación de la versión del modelo, lo que lleva a la exposición de archivos confidenciales al interactuar con el controlador "/model-versions/get-artifact".
References
| https://huntr.com/bounties/7f4dbcc5-b6b3-43dd-b310-e2d0556a8081 | advisory, exploit, issue-tracking, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-1558 | advisory, web | |
| https://github.com/mlflow/mlflow | package | |
| https://pypi.org/project/mlflow | package | |
| https://github.com/advisories/GHSA-j62r-wxqq-f3gf | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-1558 changed 2024-08-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-j62r-wxqq-f3gf changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2024-1558 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1653 changed 2026-07-07 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-MLFLOW-2024-1558 changed 2026-09-08 | Apache-2.0 |