MLflow allows an unauthenticated remote attacker to read arbitrary files from the server's filesystem
A model version creation handler accepted a tag that skipped validation of the model source path, letting an unauthenticated attacker store any local filesystem path as the source. A later artifact handler served files from that path without checking prompt status, so the attacker could read arbitrary files from the server.
mlflow/mlflow
Originally disclosed on huntr
A vulnerability in the _create_model_version() handler of mlflow/server/handlers.py in mlflow/mlflow versions 3.9.0 and earlier allows an unauthenticated remote attacker to read arbitrary files from the server's filesystem. The issue arises when a CreateModelVersion request includes the tag mlflow.prompt.is_prompt, which bypasses source path validation. This enables an attacker to store an arbitrary local filesystem path as the model version source. The get_model_version_artifact_handler() function later uses this source to serve files without verifying the model version's prompt status, leading to a complete confidentiality compromise. This issue is fixed in version 3.10.0.
From the GitHub Advisory Database (GHSA-42h5-h8qh-vv9v, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The model version creation handler skipped source path validation when a specific tag was present, and the artifact handler later served files from that source without verifying the model version's prompt status.
Impact
An unauthenticated remote attacker could read arbitrary files from the server's filesystem, leading to a complete confidentiality compromise.
What the attacker needed
Network access to the MLflow server; no authentication required
The fix
The issue was fixed in version 3.10.0.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
MLflow is a tool for managing machine learning models. A request to create a model version could include a special tag that made the server skip a safety check on where the model's files come from. Because a later part of the server trusted that stored location without re-checking, an attacker could point it at any file on the machine and download it.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.