NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · MLflow

CVE-2025-11201: MLflow Tracking Server Model Creation Directory Traversal Remote Code Execution Vulnerability

highCVSS 3.0 8.1GHSA-5cvj-7rg6-jggj

The MLflow Tracking Server does not validate the user-supplied path used when creating a model version, which allows directory traversal and remote code execution as the service account. No login is needed, according to the ZDI advisory. Fixed in mlflow 2.22.4 and 3.0.0. The fix commits add an opt-in source check.

Published Oct 29, 2025 · Updated Dec 5, 2025 · Analysis Nov 1, 2026

What an attacker can do

The flaw sits in the handling of model file paths. When a model version is created, the server accepts a source that it later uses in file operations without validating it. A crafted path can climb out of the intended directory (CWE-22), and the ZDI advisory says this leads to code execution in the context of the service account.

The attacker needs network access to the Tracking Server. No authentication is required, and a default MLflow server has none. The CVSS 3.0 vector rates complexity high but confidentiality, integrity and availability all high. On a successful attack, the attacker runs code on the MLflow host. That exposes experiment data, model artifacts and any cloud or database credentials the service holds, and lets them tamper with registered models used downstream.

The EPSS score is high (about 0.26, 98th percentile), so exploitation is more likely than for most entries here. No source in the entry says it is exploited in the wild.

Who is affected

mlflow on PyPI before 2.22.4, and the 3.0.0 release candidates from 3.0.0rc0 up to but not including 3.0.0. The Tracking Server is the exposed component, especially when reachable from untrusted networks or without authentication.

pip show mlflow

mlflow

Ecosystem
PyPI
Affected
>= 3.0.0rc0, < 3.0.0
Fixed in
3.0.0
Check
pip show mlflow

mlflow

Ecosystem
PyPI
Affected
< 2.22.4
Fixed in
2.22.4
Check
pip show mlflow

How to fix it

Upgrade to mlflow 2.22.4 or 3.0.0 (or later):

pip install --upgrade mlflow

The fix commits add a new environment variable, MLFLOW_CREATE_MODEL_VERSION_SOURCE_VALIDATION_REGEX. It defaults to None, meaning no validation. When set, _create_model_version() in mlflow/server/handlers.py runs re.search() on the source and rejects non-matching values with INVALID_PARAMETER_VALUE. The docs section "Model Version Source Validation" gives examples that restrict sources to mlflow-artifacts or to specific S3 buckets. Set the variable on your server after upgrading to get that check.

In all cases, do not expose the Tracking Server to untrusted networks without authentication.

How to tell if you were hit

Review Tracking Server and reverse-proxy logs for model version creation requests (model-versions/create) where source contains ../, encoded variants such as %2e%2e, absolute paths, or unexpected schemes. Check the host for files written outside the artifact root, new files in unusual directories, and child processes started by the MLflow service. Unexpected registered model versions with odd sources are a sign of probing.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

MLflow Tracking Server Model Creation Directory Traversal Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of MLflow Tracking Server. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the handling of model file paths. The issue results from the lack of proper validation of a user-supplied path prior to using it in file operations. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-26921.

Credited to mueslo.

Questions

Does CVE-2025-11201 require authentication?

According to the ZDI description, no. A default MLflow Tracking Server has no authentication, so any client that can reach it can send the request.

Which versions fix it?

mlflow 2.22.4 on the 2.x line and 3.0.0 on the 3.x line. The 3.0.0 release candidates before 3.0.0 are listed as vulnerable.

Is the source validation on by default after upgrading?

According to the fix commits, the regex check defaults to off (None). Set MLFLOW_CREATE_MODEL_VERSION_SOURCE_VALIDATION_REGEX to enable it.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More MLflow vulnerabilities

All MLflow entries