---
title: "CVE-2024-0520: Remote code execution in mlflow"
url: https://erroneo.us/security/cve/CVE-2024-0520/
description: "CVE-2024-0520 (mlflow (PyPI)): A vulnerability in mlflow/mlflow version 8.2.1 allows for remote code execution due to improper neutralization of special…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-06-06
date_modified: 2025-10-15
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-0520"
kev: false
cvss: 10.0
epss: 0.02401
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-0520: Remote code execution in mlflow

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 2.4% , percentile 84: FIRST’s model estimates a 2.4% chance of exploitation activity in the next 30 days, higher than 84% of all scored CVEs (elevated). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes mlflow (PyPI) < 2.9.0, fixed in 2.9.0 . Check your lockfile, including transitive dependencies.

## What it is

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.httpdatasetsource.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.

## Affected packages

- PyPI `mlflow` < 2.9.0 → fixed: 2.9.0

## Affected products (CVE record)

- mlflow mlflow/mlflow: unspecified < 2.9.0

## Severity

- @huntr_ai CVSS 3.0: 10 `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub CVSS 3.1: 10.0 `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact partial .
- FIRST EPSS (model of 2026-10-21): 2.40% probability of exploitation activity in the next 30 days; percentile 84.

## Sources

- [GitHub Advisory GHSA-5q6c-ffvg-xcm9](https://github.com/advisories/GHSA-5q6c-ffvg-xcm9)
- [CVE.org record CVE-2024-0520](https://www.cve.org/CVERecord?id=CVE-2024-0520)
- [NVD entry CVE-2024-0520](https://nvd.nist.gov/vuln/detail/CVE-2024-0520)
- [huntr.com](https://huntr.com/bounties/93e470d7-b6f0-409b-af63-49d3e2a26dbc)
- [github.com](https://github.com/mlflow/mlflow/commit/400c226953b4568f4361bc0a0c223511652c2b9d)
- [github.com](https://github.com/pypa/advisory-database/tree/main/vulns/mlflow/PYSEC-2024-239.yaml)

---
Source page: https://erroneo.us/security/cve/CVE-2024-0520/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
