PyPI: mlflow
CVE-2025-10279
Safety vulnerability ID: SFTY-20260202-22877
Safety legacy ID: pyup.io-85679
Affected versions of the mlflow package are vulnerable to Creation of Temporary File in Directory with Insecure Permissions due to the creation of a temporary directory with world-writable permissions. The mlflow/utils/file_utils.py get_or_create_tmp_dir() helper creates a directory via tempfile.mkdtemp() and then changes its mode to 0o777, which mlflow uses as the temporary working location for creating Python virtual environments and enables a race condition where files in that environment can be replaced.
Overview
mlflow Creates of Temporary File in Directory with Insecure Permissions
Advisory
Affected versions of the mlflow package are vulnerable to Creation of Temporary File in Directory with Insecure Permissions due to the creation of a temporary directory with world-writable permissions. The mlflow/utils/file_utils.py get_or_create_tmp_dir() helper creates a directory via tempfile.mkdtemp() and then changes its mode to 0o777, which mlflow uses as the temporary working location for creating Python virtual environments and enables a race condition where files in that environment can be replaced.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20260202-22877/CVE-2025-10279
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-10279
- https://github.com/advisories/GHSA-4x5p-f36r-mxxr
- https://github.com/mlflow/mlflow/commit/1d7c8d4cf0a67d407499a8a4ffac387ea4f8194a
- https://huntr.com/bounties/01d3b81e-13d1-43aa-b91a-443aec68bdc8
- https://nvd.nist.gov/vuln/detail/CVE-2025-10279
- https://github.com/mlflow/mlflow/commit/1d7c8d4cf0a67d407499a8a4ffac387ea4f8194a
- https://huntr.com/bounties/01d3b81e-13d1-43aa-b91a-443aec68bdc8
- https://github.com/advisories/GHSA-4x5p-f36r-mxxr
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
