CVE-2025-10279: mlflow Creates of Temporary File in Directory with Insecure Permissions
MLflow 2.20.3 creates its temporary directory for Python virtual environments with world-writable permissions (0o777). A local attacker with write access to /tmp can win a race and overwrite .py files in the virtual environment, which leads to code execution as the MLflow user. The package data lists versions below 3.4.0rc0 as affected; the advisory says 3.4.0 fixes it.
Published Feb 2, 2026 · Analysis Nov 1, 2026
What an attacker can do
get_or_create_tmp_dir() in mlflow/utils/file_utils.py makes a directory with tempfile.mkdtemp(), which uses 0o700, and then calls os.chmod(tmp_dir, 0o777). The code comment says the open mode lets the directory be seen in Spark UDFs. The mlflow process builds Python virtual environments inside this directory. Because any local user can write there, an attacker can replace .py files in the environment between the time it is created and the time it is used.
The attacker needs a local account on the same host with write access to /tmp, and must win a race, which is why the CVSS 3.0 vector rates attack complexity high. If they win, their Python code runs with the privileges of the MLflow process, which may be a service account with access to model artifacts, tracking data and cloud credentials.
The risk is on shared machines: multi-user notebook servers, shared build agents and Spark or Databricks-style hosts where several people or jobs share one /tmp. A single-user laptop is much less exposed.
Who is affected
The advisory names mlflow 2.20.3 and says 3.4.0 resolves it. The package data lists everything below 3.4.0rc0. Check the installed version:
pip show mlflowExposure needs a multi-user host where other local users can write to the temp directory MLflow uses, and features that build virtual environments, such as model serving or Spark UDF flows.
mlflow
- Ecosystem
- PyPI
- Affected
- < 3.4.0rc0
- Fixed in
- 3.4.0rc0
- Check
pip show mlflow
How to fix it
Upgrade to mlflow 3.4.0 or later. The package data names 3.4.0rc0 as the first patched version.
pip install --upgrade "mlflow>=3.4.0"The fix commit changes get_or_create_tmp_dir() to chmod the directory to 0o750 instead of 0o777, so others get no access, and the group can read and execute but not write. The sources give no other workaround. Until you upgrade, avoid running MLflow environment builds on hosts that untrusted local users share.
How to tell if you were hit
Look for MLflow temp directories with open permissions:
find /tmp -maxdepth 1 -type d -perm -0002 -user mlflow-service-userReplace the user with the account that runs MLflow. Then check .py files inside virtual environments created by MLflow for owners other than that account or unexpected modification times. The sources give no log signature; unexpected processes spawned from those environments are the other signal.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
In mlflow version 2.20.3, the temporary directory used for creating Python virtual environments is assigned insecure world-writable permissions (0o777). This vulnerability allows an attacker with write access to the /tmp directory to exploit a race condition and overwrite .py files in the virtual environment, leading to arbitrary code execution. The issue is resolved in version 3.4.0.
Questions
- Can CVE-2025-10279 be exploited remotely?
No. The vector is local with high complexity. The attacker needs an account on the same machine with write access to /tmp and has to win a race.
- Which MLflow version fixes it?
3.4.0. The package data lists 3.4.0rc0 as the first patched release.
- What did the fix change?
The commit lowers the directory permissions in get_or_create_tmp_dir() from 0o777 to 0o750.
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 entriesCVE-2026-116690
MLflow vulnerable to arbitrary file read on unauthenticated servers via prompt model version source
high7.5Oct 27, 2026CVE-2026-116691
MLflow CrewAI autologging records LLM provider API keys in logged trace spans
medium6.5Oct 27, 2026CVE-2026-116692
MLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifact modules
critical9.8Oct 27, 2026CVE-2026-115886
MLflow: SSRF on unauthenticated MLflow servers via third-party scorer kwargs in the scorer invoke, register, and GenAI evaluate endpoints
medium6.5Oct 23, 2026CVE-2026-53995
MLflow FileStore trace IDs allow path traversal and arbitrary file writes
high8.2Oct 20, 2026GHSA-gqvg-gmmx-x4hm
MLFLOW_ALLOW_PICKLE_DESERIALIZATION=False safety control bypassed by mlflow.statsmodels flavor — RCE via crafted model artifact
high8.8Sep 1, 2026
