Skip to content
Path traversal Disclosed report Intermediate CVE-2024-1594

mlflow vulnerable to Path Traversal

A path traversal flaw in MLflow's handling of the artifact_location parameter when creating an experiment allows an attacker to read arbitrary files on the server. By including a fragment component in the URI, an attacker can bypass restrictions and access files with the server process's permissions.

mlflow/mlflow

Originally disclosed on huntr

A path traversal vulnerability exists in the mlflow/mlflow repository, specifically within the handling of the artifact_location parameter when creating an experiment. Attackers can exploit this vulnerability by using a fragment component # in the artifact location URI to read arbitrary files on the server in the context of the server's process. This issue is similar to CVE-2023-6909 but utilizes a different component of the URI to achieve the same effect.

From the GitHub Advisory Database (GHSA-m49c-5c52-6696, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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

Likely insufficient validation of the artifact_location URI, allowing a fragment component to alter the resolved path and escape the intended directory.

Impact

An attacker could read arbitrary files on the server with the permissions of the MLflow process, potentially exposing sensitive information.

What the attacker needed

Ability to create an experiment; access to MLflow server

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.

This is a path traversal bug. When you create an experiment in MLflow, you can set where its files are stored using a location string. The software fails to properly check that string, so an attacker can craft it to point to sensitive files on the server, like configuration or password files, and then read them. It is like tricking a librarian into fetching a private diary by giving a fake shelf number.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from mlflow/mlflow

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.