Remote Code Execution due to Full Controlled File Write in mlflow/mlflow
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MLflow | mlflow/mlflow | before 2.9.0 | 2.9.0 | Patch available | CNA |
| — | mlflow (PyPI) | before 2.9.0 | 2.9.0 | Patch available | GHSA-5q6c-ffvg-xcm9 |
- mlflow/mlflow VendorMLflow Affected before 2.9.0 Fixed in 2.9.0 Patch available CNA
- mlflow (PyPI) Vendor— Affected before 2.9.0 Fixed in 2.9.0 Patch available GHSA-5q6c-ffvg-xcm9
Remediation
- Fix · CNA mlflow/mlflow (mlflow) Fixed in 2.9.0
- Fix · GHSA-5q6c-ffvg-xcm9 mlflow (PyPI) Fixed in 2.9.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-0520
- 2026-10-03 Alias added: GHSA-5q6c-ffvg-xcm9
References
More Mlflow vulnerabilities
- TI-2026-46366 Server-side request forgery in mlflow KEVCVSS 3.1CRITICAL 9.3
- TI-2023-03518 Absolute Path Traversal in mlflow/mlflow CVSS 3.1CRITICAL 10.0
- TI-2023-01113 Path Traversal: '\..\filename' in mlflow/mlflow CVSS 3.1CRITICAL 9.8
- TI-2025-14028 Command Injection in mlflow/mlflow CVSS 3.1CRITICAL 10.0
- TI-2023-05540 MLflow Authentication Bypass CVSS 3.1CRITICAL 9.8
- TI-2023-02603 Path Traversal: '\..\filename' in mlflow/mlflow CVSS 3.1CRITICAL 9.8
Sources
- CVE-2024-0520 · CVE Program
- CVE-2024-0520 · NVD
- FIRST EPSS
- GHSA-5q6c-ffvg-xcm9 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences