NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · MLflow

CVE-2023-6974: MLflow Server-Side Request Forgery (SSRF)

criticalCVSS 3.1 9.8GHSA-59v3-898r-qwhj

MLflow before 2.9.2 has a server-side request forgery flaw. A remote user can make the MLflow server send HTTP(S) requests to internal servers. On a cloud instance such as AWS, the advisory says this can be abused to get remote code execution. Upgrade to mlflow 2.9.2.

Published Dec 20, 2023 · Updated Jan 2, 2024 · Analysis Nov 2, 2026

What an attacker can do

The advisory is brief. It says a malicious user can use the flaw to reach internal HTTP(S) servers, and that on an AWS instance this could lead to code execution on the victim machine. That points to the usual cloud path: the server is tricked into requesting the instance metadata service, which hands out temporary credentials for the instance role. The advisory does not spell out the chain, so treat that as the likely route, not a confirmed one.

The linked fix commit adds an MLFLOW_ALLOW_HTTP_REDIRECTS environment variable and an allow_redirects parameter to _get_http_response_with_retries in mlflow/utils/request_utils.py. That suggests redirects followed by the server are part of the problem. The commit defaults the variable to true, so redirects stay on unless you turn them off.

The CVSS vector is network, no privileges, no interaction, with high impact on all three areas. Anyone who can reach an MLflow server may be able to use it as a proxy into your private network and cloud metadata.

Who is affected

mlflow on PyPI below 2.9.2. The risk is highest for MLflow servers exposed beyond a trusted network, and on cloud hosts where the metadata service is reachable from the server.

Check the installed version:

pip show mlflow

mlflow

Ecosystem
PyPI
Affected
< 2.9.2
Fixed in
2.9.2
Check
pip show mlflow

How to fix it

Upgrade to mlflow 2.9.2:

pip install --upgrade "mlflow>=2.9.2"

The fix commit adds MLFLOW_ALLOW_HTTP_REDIRECTS, which defaults to true. Setting it to false (or 0) makes the server stop following HTTP redirects. The commit does not say this alone closes the flaw, so upgrade rather than rely on it. On AWS, enforcing IMDSv2 and limiting the instance role reduce the damage from any SSRF. Keep the MLflow server off untrusted networks.

How to tell if you were hit

Look in MLflow server and network logs for outbound requests from the server to internal addresses, to link-local 169.254.169.254, or to hosts you do not recognise. On AWS, review CloudTrail for use of the instance role from unexpected source addresses or at unexpected times. Check which mlflow version each server runs.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

A malicious user could use this issue to access internal HTTP(s) servers and in the worst case (ie: aws instance) it could be abused to get a remote code execution on the victim machine.

Questions

Is mlflow 2.9.2 affected by CVE-2023-6974?

No. 2.9.2 is the patched version. Anything below it is vulnerable.

Can this really lead to code execution?

The advisory says so in the worst case, for example on an AWS instance. Code execution is not direct. It depends on what the server can reach from its network position.

Does the attacker need an account?

No. The CVSS vector sets privileges required to none. Network access to the MLflow server is enough.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More MLflow vulnerabilities

All MLflow entries