MLflow Has a Server-Side Request Forgery (SSRF) Vulnerability
The webhook creation function in MLflow accepted a user-supplied URL without validation, and the delivery function then sent HTTP POST requests to that URL. An authenticated attacker could make the MLflow backend send requests to internal services, cloud metadata endpoints, or arbitrary external servers.
mlflow/mlflow
Originally disclosed on huntr
A Server-Side Request Forgery (SSRF) vulnerability exists in MLflow versions prior to 3.9.0. The _create_webhook() function in mlflow/server/handlers.py accepts a user-controlled url parameter without validation, and the _send_webhook_request() function in mlflow/webhooks/delivery.py sends HTTP POST requests to this attacker-controlled URL. This allows an authenticated attacker to force the MLflow backend to send HTTP requests to internal services, cloud metadata endpoints, or arbitrary external servers. The lack of input sanitization, URL scheme filtering, or allowlist validation on the webhook URL enables exploitation, potentially leading to cloud credential theft, internal network access, and data exfiltration.
From the GitHub Advisory Database (GHSA-65h7-c7c4-mghx, 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
Likely the webhook URL was accepted and used without any validation, scheme filtering, or allowlist, so the server could be directed to internal or metadata addresses.
Impact
An authenticated attacker could cause the backend to reach internal services or cloud metadata endpoints, potentially leading to cloud credential theft, internal network access, and data exfiltration.
What the attacker needed
Authenticated MLflow user; ability to create a webhook
The fix
The vulnerability was fixed in MLflow 3.9.0; the text does not describe the exact fix, but validation such as URL scheme filtering and an allowlist would address it.
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 webhook is a feature where a server automatically sends a request to a URL you provide when something happens. Here, MLflow did not check where that URL pointed, so a logged-in user could give it an address inside the company network or a cloud provider's special metadata address. The server would then make the request on the attacker's behalf, which can leak internal information or credentials.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.