Browse / AI Framework and Platform Flaws / CVE-2023-6018
Remote Code Execution due to Full Controled File Write in mlflow
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Code and command execution
- Affected
- mlflow (PyPI)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- EPSS
- 47.9% chance of exploitation in 30 days
How it works, in short
Unrestricted file writes on the MLflow web server let an attacker overwrite files such as shell startup scripts to run commands. (Our summary, written by a model. The source text is below.)
Details
The mlflow web server includes tools for tracking experiments, packaging code into reproducible runs, and sharing and deploying models. As this vulnerability allows to write / overwrite any file on the file system, it gives a lot of ways to archive code execution (like overwriting /home/<user>/.bashrc). A malicious user could use this issue to get command execution on the vulnerable machine and get access to data & models information.
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-6018
- https://github.com/mlflow/mlflow/commit/55c72d02380e8db8118595a4fdae7879cb7ac5bd
- https://github.com/mlflow/mlflow
- https://huntr.com/bounties/7cf918b5-43f4-48c0-a371-4d963ce69b30
Source: GitHub Advisory Database, used under CC BY 4.0.