Browse / AI Framework and Platform Flaws / CVE-2024-8859
MLflow has a Local File Read/Path Traversal in dbfs
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- 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
- 2.8% chance of exploitation in 30 days
How it works, in short
The dbfs URL handling checks only the path component, so traversal sequences in query or parameter parts escape the mount and read local files. (Our summary, written by a model. The source text is below.)
Details
A path traversal vulnerability exists in mlflow/mlflow version 2.15.1. When users configure and use the dbfs service, concatenating the URL directly into the file protocol results in an arbitrary file read vulnerability. This issue occurs because only the path part of the URL is checked, while parts such as query and parameters are not handled. The vulnerability is triggered if the user has configured the dbfs service, and during usage, the service is mounted to a local directory.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-8859
- https://github.com/mlflow/mlflow/commit/7791b8cdd595f21b5f179c7b17e4b5eb5cbbe654
- https://github.com/mlflow/mlflow
- https://huntr.com/bounties/2259b88b-a0c6-4c7c-b434-6aacf6056dcb
Source: GitHub Advisory Database, used under CC BY 4.0.