Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2024-0520

CVE-2024-0520: MLflow Command Injection RCE Vulnerability

CVE-2024-0520 is a command injection vulnerability in MLflow 8.2.1 that enables remote code execution through unsanitized HTTP dataset filenames. This article covers technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2024-0520 Overview

A critical path traversal vulnerability exists in MLflow version 8.2.1 that enables remote code execution through improper neutralization of special elements in the mlflow.data.http_dataset_source.py module. When loading a dataset from a source URL with an HTTP scheme, the filename extracted from the Content-Disposition header or the URL path is used to generate the final file path without proper sanitization. This flaw allows attackers to fully control the file path using path traversal sequences (e.g., ../../tmp/poc.txt) or absolute paths (e.g., /tmp/poc.txt), leading to arbitrary file write conditions that can be exploited for command execution.

Critical Impact

Attackers can achieve arbitrary file write leading to remote code execution, potentially compromising ML model data, training datasets, and underlying server infrastructure.

Affected Products

  • MLflow versions prior to 2.9.0
  • lfprojects mlflow (all configurations using HTTP dataset sources)
  • Systems utilizing mlflow.data.http_dataset_source.py module

Discovery Timeline

  • 2024-06-06 - CVE-2024-0520 published to NVD
  • 2025-10-15 - Last updated in NVD database

Technical Details for CVE-2024-0520

Vulnerability Analysis

This vulnerability represents a classic path traversal attack combined with arbitrary file write capabilities. The root issue lies in the HTTP dataset source handler within MLflow, which processes remote dataset URLs and downloads content to local storage. The module fails to properly validate and sanitize filenames extracted from either the Content-Disposition HTTP response header or directly from the URL path.

An attacker controlling the remote HTTP server can craft malicious responses that include path traversal sequences in the filename. When MLflow processes this response, it constructs a file path using the unsanitized filename, allowing the attacker to write files to arbitrary locations on the filesystem. This arbitrary file write primitive can be escalated to remote code execution by overwriting critical application files, configuration files, or placing executable content in locations that will be subsequently executed by the system or application.

The attack requires user interaction in that a victim must load a dataset from an attacker-controlled URL, but once initiated, the exploitation is straightforward and reliable.

Root Cause

The vulnerability stems from insufficient input validation in the mlflow.data.http_dataset_source.py module. Specifically, the code extracts filenames from HTTP responses without checking for or removing path traversal sequences such as ../ or handling absolute paths. The module trusts the externally-provided filename data to construct local filesystem paths, violating the principle of never trusting user-controlled input for security-sensitive operations.

Attack Vector

The attack is network-based and requires minimal complexity. An attacker must:

  1. Set up a malicious HTTP server that responds with crafted Content-Disposition headers containing path traversal payloads
  2. Convince a user or automated process to load a dataset from this malicious URL using MLflow's HTTP dataset source functionality
  3. The malicious filename bypasses validation and allows arbitrary file write
  4. The attacker leverages the file write to achieve code execution (e.g., by overwriting startup scripts, cron jobs, or application configuration)

The vulnerability is particularly dangerous in ML pipeline environments where automated data loading from external sources is common practice. An attacker could craft payloads like ../../.bashrc to inject malicious commands that execute on user login, or target application-specific files for immediate code execution.

Detection Methods for CVE-2024-0520

Indicators of Compromise

  • Unusual file creation or modification in sensitive directories such as /tmp, /etc, or user home directories originating from MLflow processes
  • HTTP requests to MLflow instances that subsequently trigger file writes outside the expected dataset storage locations
  • Log entries showing dataset loading operations with suspicious filenames containing ../ sequences or absolute paths
  • Unexpected files appearing in system directories with timestamps correlating to MLflow dataset operations

Detection Strategies

  • Implement file integrity monitoring (FIM) on critical system and application directories to detect unauthorized file writes
  • Monitor MLflow process file system activity for writes outside designated dataset directories
  • Deploy network monitoring to identify MLflow HTTP dataset requests to external or unknown hosts
  • Configure logging to capture full dataset source URLs and extracted filenames for forensic analysis

Monitoring Recommendations

  • Enable detailed audit logging for all file creation and modification events by MLflow processes
  • Implement anomaly detection for MLflow network connections to identify requests to potentially malicious external sources
  • Set up alerts for file write attempts targeting sensitive paths such as /etc, /root, or application configuration directories
  • Monitor for execution of newly created files in non-standard locations following MLflow dataset operations

How to Mitigate CVE-2024-0520

Immediate Actions Required

  • Upgrade MLflow to version 2.9.0 or later immediately, as this version contains the security fix for CVE-2024-0520
  • Audit recent MLflow dataset loading operations for any signs of exploitation, particularly checking for unexpected files in sensitive directories
  • Restrict MLflow's filesystem permissions to limit the impact of potential exploitation
  • Implement network egress controls to restrict MLflow's ability to fetch datasets from untrusted external sources

Patch Information

The vulnerability is addressed in MLflow version 2.9.0. The fix implements proper filename sanitization to prevent path traversal attacks when processing HTTP dataset sources. The security patch is available in the GitHub commit 400c226953b4568f4361bc0a0c223511652c2b9d.

Organizations should upgrade to the patched version using standard Python package management:

bash
pip install --upgrade mlflow>=2.9.0

Additional details about the vulnerability discovery and disclosure can be found in the Huntr bounty report.

Workarounds

  • If immediate patching is not possible, restrict MLflow dataset loading to only trusted internal URLs via network controls or application configuration
  • Implement a reverse proxy or web application firewall to inspect and sanitize incoming dataset URLs before they reach MLflow
  • Run MLflow processes in containerized environments with read-only root filesystems and limited writable directories
  • Disable HTTP dataset source functionality if not required for your ML workflows
bash
# Example: Restrict MLflow container filesystem access (Docker)
docker run --read-only \
  --tmpfs /tmp:rw,noexec,nosuid \
  -v /safe/mlflow/data:/mlflow/data:rw \
  mlflow:latest

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 Score8.8

  • EPSS Probability4.78%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Vendor Resources
  • GitHub Commit Reference

  • Huntr Bounty Details
  • 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 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