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
    • 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-15031

CVE-2025-15031: MLflow Path Traversal Vulnerability

CVE-2025-15031 is a path traversal flaw in MLflow's pyfunc extraction that allows arbitrary file writes through malicious tar archives. This article covers the technical details, affected versions, impact, and mitigation.

Published: March 20, 2026

CVE-2025-15031 Overview

A path traversal vulnerability exists in MLflow's pyfunc extraction process that allows for arbitrary file writes due to improper handling of tar archive entries. The vulnerability stems from the use of tarfile.extractall without proper path validation, enabling attackers to craft malicious tar.gz files containing .. (dot-dot-slash) sequences or absolute paths to escape the intended extraction directory. This vulnerability poses significant risk in multi-tenant environments or any deployment where untrusted artifacts may be ingested.

Critical Impact

Successful exploitation can lead to arbitrary file overwrites on the target system, potentially enabling remote code execution through strategic file placement such as overwriting configuration files, cron jobs, or application binaries.

Affected Products

  • MLflow (latest version and potentially earlier versions)
  • MLflow pyfunc model extraction component
  • Environments ingesting untrusted MLflow artifacts

Discovery Timeline

  • 2026-03-18 - CVE CVE-2025-15031 published to NVD
  • 2026-03-19 - Last updated in NVD database

Technical Details for CVE-2025-15031

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Path Traversal) and affects the artifact extraction functionality within MLflow's pyfunc module. The core issue lies in the unsafe use of Python's tarfile.extractall() method without implementing proper validation of archive member paths before extraction.

When MLflow processes tar.gz archives containing pyfunc models, it fails to sanitize file paths within the archive. An attacker can craft a malicious archive with entries containing path traversal sequences (../) or absolute paths, allowing files to be written outside the intended extraction directory.

The vulnerability requires adjacent network access for exploitation, meaning an attacker must have some level of network proximity to the target system or the ability to submit artifacts to a shared MLflow instance. In multi-tenant MLflow deployments where users can upload model artifacts, this vulnerability becomes particularly dangerous as a malicious user could compromise the underlying infrastructure.

Root Cause

The root cause is the direct use of tarfile.extractall() without implementing path validation checks on archive members. Python's tarfile module does not inherently prevent extraction of files with malicious paths, leaving this responsibility to the application developer. The MLflow pyfunc extraction code fails to validate that extracted file paths remain within the intended destination directory, violating the principle of secure archive handling.

Attack Vector

The attack requires adjacent network access, meaning the attacker needs to be able to submit malicious tar.gz archives to an MLflow instance. The attack flow involves:

  1. The attacker crafts a malicious tar.gz archive containing entries with path traversal sequences (e.g., ../../../../etc/cron.d/malicious) or absolute paths
  2. The malicious archive is uploaded to MLflow as a pyfunc model artifact
  3. When the model is loaded or the archive is extracted, the tarfile.extractall() function processes the malicious entries
  4. Files are written outside the intended extraction directory, potentially overwriting critical system files or placing executable content in sensitive locations

The vulnerability does not require authentication in default configurations, though deployment-specific access controls may apply. Exploitation does not require user interaction once the malicious artifact is submitted.

Detection Methods for CVE-2025-15031

Indicators of Compromise

  • Unexpected file modifications in system directories such as /etc, /var, or application configuration paths
  • Tar archive extractions writing to paths outside designated MLflow artifact directories
  • Presence of files with path traversal patterns in uploaded MLflow model archives
  • Unusual cron jobs, startup scripts, or configuration file modifications coinciding with MLflow model operations

Detection Strategies

  • Monitor file system activity during MLflow model extraction operations for writes outside expected directories
  • Implement file integrity monitoring (FIM) on critical system directories
  • Analyze uploaded tar.gz archives for path traversal patterns before processing
  • Review MLflow server logs for model artifact upload and extraction events from untrusted sources

Monitoring Recommendations

  • Deploy endpoint detection and response (EDR) solutions to monitor for suspicious file write patterns
  • Configure audit logging for file operations in directories where MLflow extracts artifacts
  • Implement network segmentation to limit adjacent network access to MLflow deployments
  • Establish baselines for normal MLflow artifact extraction behavior to detect anomalies

How to Mitigate CVE-2025-15031

Immediate Actions Required

  • Restrict artifact upload capabilities to trusted users only
  • Implement input validation on all uploaded archives before extraction
  • Isolate MLflow instances processing untrusted artifacts in sandboxed environments
  • Review recently uploaded model artifacts for signs of malicious path traversal sequences

Patch Information

Refer to the Huntr Security Bounty for the latest information on patches and remediation guidance from the security researchers who discovered this vulnerability. Monitor MLflow's official repository for security updates addressing this path traversal issue.

Workarounds

  • Implement a wrapper around tar extraction that validates all member paths stay within the destination directory
  • Use containerization to limit the impact of arbitrary file writes
  • Deploy MLflow in read-only file systems where feasible, with only specific directories writable
  • Enable strict access controls on directories accessible from MLflow extraction paths

The recommended approach for safe tar extraction involves checking each archive member before extraction:

python
# Safe tar extraction pattern - validate paths before extractall
import os
import tarfile

def safe_extract(tar_path, destination):
    with tarfile.open(tar_path, 'r:gz') as tar:
        for member in tar.getmembers():
            member_path = os.path.join(destination, member.name)
            abs_destination = os.path.abspath(destination)
            abs_member_path = os.path.abspath(member_path)
            
            # Ensure extracted path is within destination
            if not abs_member_path.startswith(abs_destination + os.sep):
                raise Exception(f"Attempted path traversal: {member.name}")
        
        tar.extractall(destination)

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechMlflow

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • Huntr Security Bounty
  • Related CVEs
  • CVE-2025-15036: MLflow Path Traversal Vulnerability

  • CVE-2023-1177: Mlflow Path Traversal Vulnerability

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

  • CVE-2025-15381: MLflow Information Disclosure Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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