{"id":"CVE-2024-0520","published":"2024-06-06T18:19:36Z","modified":"2025-10-15T12:50:06Z","title":"Remote Code Execution due to Full Controlled File Write in mlflow/mlflow","vendor":"mlflow","product":"mlflow/mlflow","tier":"tail","description":{"text":"A vulnerability in mlflow/mlflow version 8.2.1 allows for remote code execution due to improper neutralization of special elements used in an OS command ('Command Injection') within the `mlflow.data.http_dataset_source.py` module. Specifically, when loading a dataset from a source URL with an HTTP scheme, the filename extracted from the `Content-Disposition` header or the URL path is used to generate the final file path without proper sanitization. This flaw enables an attacker to control the file path fully by utilizing path traversal or absolute path techniques, such as '../../tmp/poc.txt' or '/tmp/poc.txt', leading to arbitrary file write. Exploiting this vulnerability could allow a malicious user to execute commands on the vulnerable machine, potentially gaining access to data and model information. The issue is fixed in version 2.9.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02382,"percentile":0.84305,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://huntr.com/bounties/93e470d7-b6f0-409b-af63-49d3e2a26dbc","tags":[]},{"url":"https://github.com/mlflow/mlflow/commit/400c226953b4568f4361bc0a0c223511652c2b9d","tags":[]}],"priority":{"score":23.9,"factors":[{"name":"EPSS percentile","points":16.86},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"mlflow","affectedVersions":[{"vendor":"mlflow","product":"mlflow/mlflow","versions":[">= unspecified, < 2.9.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-06T20:17:45.368019Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mlflow","vulnerableRanges":["<2.9.0"],"patched":["2.9.0"],"from":["GHSA-5q6c-ffvg-xcm9","PYSEC-2024-239"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal and arbitrary file write issue in the mlflow/mlflow product, within the mlflow.data.http_dataset_source module, where filenames taken from the Content-Disposition header or URL path are used to build the destination path without sanitization.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:36:46Z"},"euvd":{"id":"EUVD-2024-1934","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mlflow-mlflow-cve-2023-6753","parents":[{"from":"CVE-2023-6753","to":"CVE-2024-0520","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["mlflow/data/http_dataset_source.py"],"commits":["https://github.com/mlflow/mlflow/commit/1c6309f884798fbf56017a3cc808016869ee8de4","https://github.com/mlflow/mlflow/commit/400c226953b4568f4361bc0a0c223511652c2b9d"],"basis":"shared function","functions":["load"]}]}],"packageHistory":[{"cve":"CVE-2023-6014","published":"2023-11-16","fixed":"2.8.0","kev":false},{"cve":"CVE-2023-6015","published":"2023-11-16","fixed":"2.8.1","kev":false,"link":{"from":"CVE-2023-6015","to":"CVE-2024-0520","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mlflow","fromFixed":"2.8.1","toFixed":"2.9.0","daysApart":203}]}},{"cve":"CVE-2023-43472","published":"2023-12-05","fixed":"2.9.0","kev":false},{"cve":"CVE-2024-0520","published":"2024-06-06","fixed":"2.9.0","kev":false},{"cve":"CVE-2023-6568","published":"2023-12-07","fixed":"2.9.1","kev":false},{"cve":"CVE-2023-6018","published":"2023-11-16","fixed":"2.9.2","kev":false},{"cve":"CVE-2023-6709","published":"2023-12-12","fixed":"2.9.2","kev":false}],"package":"PyPI:mlflow"}}