CVE-2026-4137: mlflow insecure temporary directory permissions enable code execution
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-4137
- Published
- Record updated
- Affected
- mlflow >= 1.26.0, < 3.11.0
- Fixed in
- 3.11.0
- released April 7, 2026, 41 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.2%
Summary
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 `_create_model_downloading_tmp_dir()` in `mlflow/pyfunc/__init__.py` creates directories with group-writable permissions (0o770). Local attackers can tamper with cloudpickle-serialized model artifacts and achieve arbitrary code execution when they are loaded via `cloudpickle.load()`. The source calls this especially critical on shared NFS mounts such as Databricks, where NFS is enabled by default, and notes it continues the class addressed in CVE-2025-10279, which was only partially fixed.
Mitigation
Fixed in 3.11.0 (all versions prior to 3.11.0 are affected).
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- mlflowPyPILLM dependency since 2024-05-30 · 17 tracked dependents
Related items
- HighCVE-2026-138118: HyperSpy insecure deserialization via crafted .hspy or .zspy filesSimilar attack · NVD/CVE Database
- HighCVE-2026-138028: Bagel (bagel-mcp) before 2.5.5 contains an argument injection vulnerability in RsyncFilesToLocalDirectory that allows…Similar attack · NVD/CVE Database
- HighCVE-2026-137463: HKUDS nanobot OpenAI Codex provider skips TLS certificate checks on retrySimilar attack · NVD/CVE Database
- Medium28 Zero-Day Findings in Less Than Two Days: What AI-Speed Discovery Means for RoboticsSimilar attack · VicOne Blog
- HighCVE-2026-137308: markdownify-mcp server-side request forgery in URL validation bypassSimilar attack · NVD/CVE Database