INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2024-3573

mlflow vulnerable to Path Traversal

CVE-2024-3573 ยท 2024-04-16 critical

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Path traversal and file access
Also involves
Unsafe Model Loading and Supply Chain
Affected
mlflow (PyPI)
Gets past
Path restriction
CVSS
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
EPSS
0.7% chance of exploitation in 30 days

How it works, in short

Local-path detection mishandles empty or file-scheme URIs, so crafted model version sources are treated as non-local and can read arbitrary files. (Our summary, written by a model. The source text is below.)

Details

mlflow/mlflow is vulnerable to Local File Inclusion (LFI) due to improper parsing of URIs, allowing attackers to bypass checks and read arbitrary files on the system. The issue arises from the 'is_local_uri' function's failure to properly handle URIs with empty or 'file' schemes, leading to the misclassification of URIs as non-local. Attackers can exploit this by crafting malicious model versions with specially crafted 'source' parameters, enabling the reading of sensitive files within at least two directory levels from the server's root.

References

Source: GitHub Advisory Database, used under CC BY 4.0.