CVE-2025-52967: Mlflow MLFlow SSRF Vulnerability
MODERATECVE-2025-52967 is a MODERATE (CVSS 5.8) mlflow ssrf vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Mlflow libraries in the PyPI ecosystem. The issue involves mlflow ssrf via gateway_proxy_handler. Remediation is available by upgrading affected packages to version 3.1.0, 2.22.2.
CVE-2025-52967 at a Glance
Security Impact
CVSS: 5.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N).
How to Fix CVE-2025-52967
To remediate this vulnerability, upgrade all affected Mlflow dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install mlflow>=3.1.0
pip install mlflow>=2.22.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show mlflow
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-52967, inspect your installed packages using pip:
pip show mlflow
Analyze the terminal output to locate any version of Mlflow in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.0), your application is affected.
Note: The pip show mlflow command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Mlflow, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-52967 Affected Mlflow Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mlflow
|
PyPI |
≥ 3.0.0rc0
< 3.1.0
|
3.1.0
|
|
mlflow
|
PyPI |
< 2.22.2
|
2.22.2
|
References
Frequently Asked Questions
What is CVE-2025-52967?
Which Mlflow versions are affected?
What version fixes CVE-2025-52967?
Is mlflow affected?
What is the CVSS score of CVE-2025-52967?
What CWE is associated with CVE-2025-52967?
How can I check PyPI dependencies for CVE-2025-52967?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wxj7-3fx5-pp9m",
"modified" : "2025-09-12T14:23:38Z",
"published" : "2025-06-23T15:31:43Z",
"aliases" : [ "CVE-2025-52967" ],
"summary" : "MLFlow SSRF via gateway_proxy_handler",
"details" : "gateway_proxy_handler in MLflow before 3.1.0 lacks gateway_path validation.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "mlflow"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0rc0"
}, {
"fixed" : "3.1.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "mlflow"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.22.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-52967"
}, {
"type" : "WEB",
"url" : "https://github.com/mlflow/mlflow/issues/15944"
}, {
"type" : "WEB",
"url" : "https://github.com/mlflow/mlflow/pull/15970"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mlflow/mlflow"
}, {
"type" : "WEB",
"url" : "https://github.com/mlflow/mlflow/releases/tag/v2.22.2"
}, {
"type" : "WEB",
"url" : "https://github.com/mlflow/mlflow/releases/tag/v3.1.0"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/mlflow/PYSEC-2025-52.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-23T21:22:08Z",
"nvd_published_at" : "2025-06-23T15:15:29Z"
}
}