Browse / AI Framework and Platform Flaws / CVE-2024-1594
mlflow vulnerable to Path Traversal
- Class
- AI Framework and Platform Flaws (filed by a model that read the source)
- Technique
- Path traversal and file access
- Affected
- mlflow (PyPI)
- Gets past
- Path restriction
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS
- 0.7% chance of exploitation in 30 days
How it works, in short
A fragment character in the artifact location makes the server resolve paths past checks meant to stop traversal, reading arbitrary files. (Our summary, written by a model. The source text is below.)
Details
A path traversal vulnerability exists in the mlflow/mlflow repository, specifically within the handling of the artifact_location parameter when creating an experiment. Attackers can exploit this vulnerability by using a fragment component # in the artifact location URI to read arbitrary files on the server in the context of the server's process. This issue is similar to CVE-2023-6909 but utilizes a different component of the URI to achieve the same effect.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-1594
- https://github.com/mlflow/mlflow
- https://github.com/mlflow/mlflow/blob/b929a3e727dc48a1eb19b7e954b7897ac09ad3ec/mlflow/utils/uri.py#L246
- https://huntr.com/bounties/424b6f6b-e778-4a2b-b860-39730d396f3e
Source: GitHub Advisory Database, used under CC BY 4.0.