The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-2025-10279

CVE-2025-10279: Lfprojects Mlflow RCE Vulnerability

CVE-2025-10279 is an RCE flaw in Lfprojects Mlflow where insecure permissions on temporary directories allow attackers to exploit race conditions and execute arbitrary code. This article covers technical details, affected versions, and mitigation.

Updated: May 14, 2026

CVE-2025-10279 Overview

CVE-2025-10279 is a local privilege escalation vulnerability in MLflow version 2.20.3. The flaw resides in the temporary directory creation logic used for Python virtual environments. MLflow assigns world-writable permissions (0o777) to the directory, allowing any local user with access to /tmp to modify its contents. An attacker can exploit a race condition to overwrite .py files staged in the virtual environment before MLflow executes them. Successful exploitation results in arbitrary code execution under the MLflow process owner. The issue is tracked under [CWE-379: Creation of Temporary File in Directory with Insecure Permissions] and was fixed in MLflow version 3.4.0.

Critical Impact

Local attackers with write access to /tmp can hijack Python virtual environment files to achieve arbitrary code execution as the MLflow user.

Affected Products

  • MLflow version 2.20.3 (lfprojects:mlflow)
  • Earlier MLflow 2.x versions sharing the same file_utils.py temporary directory logic
  • Spark UDF deployments relying on the legacy 0o777 chmod behavior

Discovery Timeline

  • 2026-02-02 - CVE-2025-10279 published to NVD
  • 2026-04-14 - Last updated in NVD database

Technical Details for CVE-2025-10279

Vulnerability Analysis

MLflow creates temporary directories using tempfile.mkdtemp() for staging Python virtual environments. By default, mkdtemp() returns a directory with 0o700 permissions, restricting access to the owner. To support Spark User Defined Functions (UDFs) that execute across processes, MLflow explicitly relaxed the permissions to 0o777. This change granted read, write, and execute access to every user on the host. Any .py files written into this directory became modifiable by unprivileged users before MLflow loaded them. The vulnerability is local in nature and requires the attacker to win a race against the MLflow runtime.

Root Cause

The root cause is an unnecessary os.chmod(tmp_dir, 0o777) call in mlflow/utils/file_utils.py. The Spark UDF requirement only needed read and execute access for other processes, not write access. The blanket world-writable permission violated the principle of least privilege and exposed the directory contents to tampering.

Attack Vector

An attacker with shell access to the host monitors /tmp for MLflow-created directories. After MLflow stages Python source files for the virtual environment, the attacker overwrites a .py file with malicious code. When MLflow imports or executes the file, the injected code runs in the MLflow process context. The race condition window is narrow but exploitable, particularly on shared compute hosts and multi-tenant ML training environments.

python
     else:
         tmp_dir = tempfile.mkdtemp()
         # mkdtemp creates a directory with permission 0o700
-        # change it to be 0o777 to ensure it can be seen in spark UDF
-        os.chmod(tmp_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
+        # This allows read/execute but not write for group and others
+        os.chmod(tmp_dir, 0o750)
         atexit.register(shutil.rmtree, tmp_dir, ignore_errors=True)
 
     return tmp_dir

Source: GitHub Commit Fix

The patch reduces permissions from 0o777 to 0o750, preserving Spark UDF read/execute access while removing write access for group and others.

Detection Methods for CVE-2025-10279

Indicators of Compromise

  • Unexpected modifications to .py files inside MLflow temporary directories under /tmp
  • Temporary directories owned by the MLflow user with mode 0o777 permissions
  • Python processes spawned by MLflow executing unexpected scripts or making outbound network connections
  • File system audit events showing non-MLflow users writing to MLflow tmp directories

Detection Strategies

  • Audit file integrity in /tmp directories created by MLflow processes during virtual environment provisioning
  • Hunt for chmod 777 operations against MLflow-managed directories using Linux auditd or eBPF telemetry
  • Correlate process ancestry to identify Python interpreters spawned by MLflow executing files modified by other users

Monitoring Recommendations

  • Enable Linux audit rules on /tmp write events involving .py files inside directories owned by service accounts
  • Log MLflow worker process creation and child process execution for anomaly review
  • Track inode permission changes on directories created by tempfile.mkdtemp() in MLflow worker contexts

How to Mitigate CVE-2025-10279

Immediate Actions Required

  • Upgrade MLflow to version 3.4.0 or later where the temporary directory permissions are restricted to 0o750
  • Restrict shell access to hosts running MLflow to trusted operators only
  • Run MLflow under a dedicated service account with isolated /tmp namespaces where possible

Patch Information

The fix is committed in GitHub Commit 1d7c8d4 and released in MLflow 3.4.0. The patch modifies mlflow/utils/file_utils.py to use os.chmod(tmp_dir, 0o750) instead of 0o777. Additional context is available in the Huntr Bounty Listing.

Workarounds

  • Mount /tmp as a per-user tmpfs to isolate temporary files between accounts using systemd PrivateTmp=yes
  • Apply a local patch to mlflow/utils/file_utils.py to override the 0o777 chmod call with 0o750
  • Run MLflow inside an unprivileged container so the temporary directory is not shared with other host users
bash
# Apply PrivateTmp isolation via systemd unit override
sudo systemctl edit mlflow.service
# Add the following lines:
# [Service]
# PrivateTmp=yes
sudo systemctl daemon-reload
sudo systemctl restart mlflow.service

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-379
  • Technical References
  • Huntr Bounty Listing
  • Vendor Resources
  • GitHub Commit Fix
  • Related CVEs
  • CVE-2026-0596: MLflow Command Injection RCE Vulnerability

  • CVE-2025-15379: MLflow Command Injection RCE Vulnerability

  • CVE-2025-14287: MLflow Command Injection RCE Vulnerability

  • CVE-2026-2033: MLflow Tracking Server 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