A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Read More
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-4137

CVE-2026-4137: MLflow Insecure Permissions RCE Vulnerability

CVE-2026-4137 is a remote code execution vulnerability in MLflow affecting versions prior to 3.11.0. Insecure directory permissions allow attackers to tamper with model artifacts and execute arbitrary code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: May 21, 2026

CVE-2026-4137 Overview

CVE-2026-4137 is an insecure file permissions vulnerability 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). The _create_model_downloading_tmp_dir() function 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 those artifacts are deserialized via cloudpickle.load(). The issue continues the vulnerability class addressed in CVE-2025-10279, which was only partially fixed [CWE-378].

Critical Impact

Local attackers on shared NFS environments such as Databricks can replace serialized model artifacts and execute arbitrary code in the context of users loading those models.

Affected Products

  • mlflow/mlflow versions prior to 3.11.0
  • Databricks deployments where NFS is enabled by default
  • Spark UDF workloads relying on MLflow temporary directories

Discovery Timeline

  • 2026-05-18 - CVE-2026-4137 published to NVD
  • 2026-05-19 - Last updated in NVD database

Technical Details for CVE-2026-4137

Vulnerability Analysis

MLflow creates working directories used to stage model artifacts before they are loaded into Python processes. To support Spark User-Defined Function (UDF) access across processes, the project chose overly permissive modes. get_or_create_nfs_tmp_dir() applied chmod 0o777 to NFS-backed temporary directories, allowing any local user to write to them. _create_model_downloading_tmp_dir() applied chmod 0o770, granting any group member the same write capability.

MLflow uses cloudpickle to serialize and deserialize Python model objects. When a writable staging directory holds a cloudpickle artifact, an attacker can overwrite it with a malicious payload. Loading the model invokes cloudpickle.load(), which executes attacker-controlled code in the victim process.

Root Cause

The root cause is improper permission assignment on temporary directories [CWE-378]. The developers widened permissions beyond what Spark UDF cross-process access required. The fix in CVE-2025-10279 reduced exposure but did not address both vulnerable code paths.

Attack Vector

A local user on the shared host or NFS mount enumerates MLflow staging directories. The attacker replaces a cloudpickle artifact with a crafted object whose __reduce__ method executes arbitrary commands. When another user or service loads the model, code executes under that account.

python
# Patch in mlflow/utils/file_utils.py
    else:
        tmp_nfs_dir = tempfile.mkdtemp(dir=nfs_root_dir)
        # mkdtemp creates a directory with permission 0o700
-        # change it to be 0o777 to ensure it can be seen in spark UDF
-        os.chmod(tmp_nfs_dir, 0o777)
+        # For Spark UDFs, we need to make it accessible to other processes
+        # Use 0o750 (owner: rwx, group: r-x, others: None) instead of 0o777
+        os.chmod(tmp_nfs_dir, 0o750)
        atexit.register(shutil.rmtree, tmp_nfs_dir, ignore_errors=True)

    return tmp_nfs_dir

Source: GitHub Commit 1dcbb0c

python
# Patch in mlflow/pyfunc/__init__.py
    tmp_model_dir = tempfile.mkdtemp(dir=root_model_cache_dir)
    # mkdtemp creates a directory with permission 0o700
-    # change it to be 0o770 to ensure it can be seen in spark UDF
-    os.chmod(tmp_model_dir, 0o770)
+    # For Spark UDFs, we need to make it accessible to other processes
+    # Use 0o750 (owner: rwx, group: r-x, others: None) instead of 0o770
+    os.chmod(tmp_model_dir, 0o750)
    return tmp_model_dir

Source: GitHub Commit 1dcbb0c

Detection Methods for CVE-2026-4137

Indicators of Compromise

  • Temporary directories under MLflow NFS roots with mode 0o777 or 0o770
  • Unexpected modifications to cloudpickle .pkl artifacts inside MLflow staging directories
  • Python processes spawning shells or network connections immediately after cloudpickle.load() calls
  • MLflow model load events originating from users other than the artifact owner

Detection Strategies

  • Audit file modes on MLflow temporary directories using find <nfs_root> -type d -perm /o+w
  • Monitor inotify or audit events for writes to MLflow cache directories by users who are not the directory owner
  • Compare cloudpickle artifact hashes against expected values from the MLflow tracking server
  • Inspect process trees for child processes of Python workers loading MLflow models

Monitoring Recommendations

  • Log all directory creation events from MLflow processes and alert when permissions exceed 0o750
  • Track Spark UDF invocations that load remote artifacts and correlate with file modification timestamps
  • Enable Linux audit rules on NFS mount points used by MLflow and Databricks

How to Mitigate CVE-2026-4137

Immediate Actions Required

  • Upgrade mlflow to version 3.11.0 or later on all hosts and Databricks clusters
  • Inventory existing MLflow temporary directories and tighten permissions to 0o750
  • Restrict NFS mount access to trusted users and groups only
  • Validate cloudpickle artifacts against trusted hashes before loading

Patch Information

The fix in commit 1dcbb0c2fbd1f446c328830e601ca13a28219b8a replaces 0o777 and 0o770chmod calls with 0o750 in both mlflow/utils/file_utils.py and mlflow/pyfunc/__init__.py. Owners retain full access, groups gain read and execute, and other users have no access. See the GitHub Commit Update and the Huntr Bounty Report for details.

Workarounds

  • Manually apply chmod 0o750 to MLflow NFS and model cache directories after creation
  • Run MLflow workloads under dedicated service accounts with isolated group memberships
  • Disable NFS-backed temporary directories where Spark UDF support is not required
  • Use signed model registries and verify artifact integrity before deserialization
bash
# Configuration example: tighten MLflow temp directory permissions
MLFLOW_NFS_ROOT=/mnt/mlflow-nfs
find "$MLFLOW_NFS_ROOT" -type d -perm /o+w -exec chmod 0750 {} \;
find "$MLFLOW_NFS_ROOT" -type d -perm /g+w -exec chmod 0750 {} \;
pip install --upgrade 'mlflow>=3.11.0'

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMlflow

  • SeverityHIGH

  • CVSS Score7.0

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-378
  • Technical References
  • GitHub Commit Update

  • Huntr Bounty Report
  • Related CVEs
  • CVE-2026-2611: MLflow Assistant RCE Vulnerability

  • CVE-2025-10279: Lfprojects Mlflow RCE Vulnerability

  • CVE-2026-0596: MLflow Command Injection RCE Vulnerability

  • CVE-2025-15379: MLflow Command Injection RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English