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

Local File Inclusion in mlflow

The application failed to validate URI fragments for directory traversal sequences, allowing an attacker to read arbitrary local files. This was a bypass of a previous patch that only checked the query string.

mlflow/mlflow

Originally disclosed on huntr

A Local File Inclusion (LFI) vulnerability was identified in mlflow/mlflow, specifically in version 2.9.2, which was fixed in version 2.11.3. This vulnerability arises from the application's failure to properly validate URI fragments for directory traversal sequences such as '../'. An attacker can exploit this flaw by manipulating the fragment part of the URI to read arbitrary files on the local file system, including sensitive files like '/etc/passwd'. The vulnerability is a bypass to a previous patch that only addressed similar manipulation within the URI's query string, highlighting the need for comprehensive validation of all parts of a URI to prevent LFI attacks.

From the GitHub Advisory Database (GHSA-j46q-5pxx-8vmw, 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 input validation only covered the query string and did not apply the same directory traversal checks to the URI fragment.

What the attacker needed

Access to the vulnerable mlflow version

The fix

The vulnerability was fixed in version 2.11.3 by comprehensively validating all parts of a URI.

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.

A local file inclusion bug lets someone trick a program into opening files on the server that they should not see. Here, the program checked one part of the web address but forgot another part, so a crafted address could still reach sensitive files like the system password file.

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.