Skip to content
RCE Disclosed report Intermediate CVE-2023-6018

Remote Code Execution due to Full Controled File Write in mlflow

The mlflow web server allows an attacker to write or overwrite any file on the filesystem, which can lead to remote code execution by overwriting files like .bashrc. A malicious user could use this to execute commands and access data and models.

mlflow/mlflow

Originally disclosed on huntr

Critical View original

The mlflow web server includes tools for tracking experiments, packaging code into reproducible runs, and sharing and deploying models. As this vulnerability allows to write / overwrite any file on the file system, it gives a lot of ways to archive code execution (like overwriting /home/<user>/.bashrc). A malicious user could use this issue to get command execution on the vulnerable machine and get access to data & models information.

From the GitHub Advisory Database (GHSA-5p3h-7fwh-92rc, 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 file write functionality does not restrict the destination path, allowing arbitrary file overwrite.

Impact

An attacker could execute arbitrary commands on the vulnerable machine and access data and models.

What the attacker needed

Access to the mlflow web 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.

The mlflow web server lets users save files, but it does not check where those files are saved. An attacker can make the server save a file in a sensitive location, like a startup script, so that the next time the server or user logs in, the attacker's code runs. This gives the attacker control of the machine.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from mlflow/mlflow

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.