CVE-2024-1558
JSON

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 packageVersionsReported by
mlflow mlflow/mlflowfrom unspecified up to latestCVE List
lfprojects mlflow2.9.2, before 2.12.1CVE List, NVD
mlflow (PyPI)before 2.12.1GitHub Advisory Database, PyPA Advisory Database
mlflow (Bitnami)before 2.12.1Bitnami Vulnerability Database

All scores

@huntr_ai7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
PyPA Advisory Database7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-22

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

Sources

SourceRecordLicence
CVE ListCVE-2024-1558 changed 2024-08-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-j62r-wxqq-f3gf changed 2026-07-07CC-BY-4.0
NVDCVE-2024-1558 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1653 changed 2026-07-07CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-MLFLOW-2024-1558 changed 2026-09-08Apache-2.0