CVE-2026-4137
Description
In mlflow/mlflow versions prior to 3.11.0, the `get_or_create_nfs_tmp_dir()` function in `mlflow/utils/file_utils.py` creates temporary directories with world-writable permissions (0o777), and the `_create_model_downloading_tmp_dir()` function in `mlflow/pyfunc/__init__.py` creates directories with group-writable permissions (0o770). These insecure permissions allow local attackers to tamper with model artifacts, such as cloudpickle-serialized Python objects, and achieve arbitrary code execution when the tampered artifacts are deserialized via `cloudpickle.load()`. This vulnerability is particularly critical in environments with shared NFS mounts, such as Databricks, where NFS is enabled by default. The issue is a continuation of the vulnerability class addressed in CVE-2025-10279, which was only partially fixed.
Weakness
- CWE-378: Creation of Temporary File With Insecure Permissions
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-05-19 |
Timeline
- 2026-05-18Published by the CNA20:26 UTC
- 2026-05-18GitHub advisory published (GHSA-f2m9-wcf4-cwwx)same day
- 2026-05-19CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-f2m9-wcf4-cwwx, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI mlflow | from 1.26.0 before 3.11.0 | 3.11.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| lfprojects mlflow | before 3.11.0fixed in 3.11.0 | 3.11.0 |
References
- https://github.com/mlflow/mlflow/commit/1dcbb0c2fbd1f446c328830e601ca13a28219b8a
- https://huntr.com/bounties/648dc30b-76c7-4433-86b8-f43d926fd8d6
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-4137'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-4137'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-4137'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-4137'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).