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

MLflow has a Local File Read/Path Traversal in dbfs

A path traversal vulnerability in MLflow's dbfs service allows an attacker to read arbitrary local files when the service is configured and mounted to a local directory. The issue arises because only the path portion of the URL is validated, while query and parameters are not handled.

mlflow/mlflow

Originally disclosed on huntr

A path traversal vulnerability exists in mlflow/mlflow version 2.15.1. When users configure and use the dbfs service, concatenating the URL directly into the file protocol results in an arbitrary file read vulnerability. This issue occurs because only the path part of the URL is checked, while parts such as query and parameters are not handled. The vulnerability is triggered if the user has configured the dbfs service, and during usage, the service is mounted to a local directory.

From the GitHub Advisory Database (GHSA-4rqf-8pfm-p36r, 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 the dbfs service concatenates a user-supplied URL directly into a file protocol without properly validating the entire URL, including query and parameters, allowing path traversal.

Impact

An attacker could read arbitrary local files on the system where the dbfs service is mounted, potentially exposing sensitive information.

What the attacker needed

Dbfs service configured; service mounted to a local directory

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 bug lets someone trick a program into reading files on the computer that it should not access. It happens because the program checks only part of the address you give it, ignoring extra parts that can be used to sneak in a different file path.

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.