mlflow vulnerable to Path Traversal
High severity
GitHub Reviewed
Published
Apr 16, 2024
to the GitHub Advisory Database
•
Updated Apr 16, 2024
Description
Published by the National Vulnerability Database
Apr 16, 2024
Published to the GitHub Advisory Database
Apr 16, 2024
Reviewed
Apr 16, 2024
Last updated
Apr 16, 2024
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 andlocal_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 thedelete_artifacts
function oflocal_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.References