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

CVE-2024-5182: Mudler LocalAI Path Traversal Vulnerability

CVE-2024-5182 is a path traversal flaw in Mudler LocalAI version 2.14.0 that enables attackers to delete arbitrary files through model parameter manipulation. This article covers technical details, affected versions, and mitigation strategies.

Published: April 8, 2026

CVE-2024-5182 Overview

A path traversal vulnerability exists in mudler/LocalAI version 2.14.0, where an attacker can exploit the model parameter during the model deletion process to delete arbitrary files on the system. By crafting a malicious request with a manipulated model parameter containing directory traversal sequences, an attacker can navigate outside the intended directory structure and target critical system files or application data for deletion. This vulnerability stems from insufficient input validation and sanitization of the model parameter in the file deletion functionality.

Critical Impact

Remote attackers can delete arbitrary files on the server without authentication, potentially causing complete system compromise, data loss, or denial of service by removing critical application or system files.

Affected Products

  • mudler LocalAI version 2.14.0
  • mudler LocalAI versions prior to the security patch

Discovery Timeline

  • 2024-06-20 - CVE-2024-5182 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-5182

Vulnerability Analysis

This path traversal vulnerability (CWE-22) allows attackers to manipulate the model parameter in the model deletion API endpoint to escape the designated model directory and access arbitrary file paths on the server. The vulnerability is exploitable remotely over the network without requiring authentication or user interaction, making it particularly dangerous for exposed LocalAI instances.

The attack mechanism involves injecting path traversal sequences such as ../ into the model parameter. When the application processes a delete request, it fails to properly validate or sanitize this input, allowing the traversal sequences to navigate up the directory tree and target files in unintended locations.

Root Cause

The root cause is insufficient input validation and sanitization of user-supplied input in the model parameter. The application does not implement proper path canonicalization or boundary checks to ensure that file operations remain within the intended model storage directory. This allows specially crafted input containing directory traversal sequences to escape the sandboxed directory and affect arbitrary files on the filesystem.

Attack Vector

The attack is network-based and can be executed by sending crafted HTTP requests to the LocalAI model deletion endpoint. An attacker would:

  1. Identify an exposed LocalAI instance running version 2.14.0 or earlier
  2. Craft a DELETE request with a model parameter containing traversal sequences (e.g., ../../etc/passwd or similar paths)
  3. The server processes the request and deletes the targeted file outside the model directory

The referenced commit shows dependency updates that were part of the broader security fix:

text
 accelerate
 auto-gptq==0.7.1
-grpcio==1.63.0
+grpcio==1.64.0
 protobuf
 torch
 certifi

Source: GitHub Commit Update

Detection Methods for CVE-2024-5182

Indicators of Compromise

  • HTTP requests to model deletion endpoints containing path traversal sequences (../, ..%2f, %2e%2e/)
  • Unexpected file deletions in system directories or outside the LocalAI model storage path
  • Audit logs showing DELETE operations with suspicious file paths in the request parameters
  • Missing critical system or application files without legitimate administrative action

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block path traversal patterns in request parameters
  • Monitor LocalAI API logs for DELETE requests containing directory traversal sequences
  • Deploy file integrity monitoring (FIM) on critical system files to detect unauthorized deletions
  • Review HTTP access logs for anomalous patterns targeting the model deletion endpoint

Monitoring Recommendations

  • Enable verbose logging for all LocalAI API endpoints, particularly DELETE operations
  • Configure alerts for any file system operations outside the designated model directory
  • Monitor for sudden changes in disk space or missing files that could indicate exploitation
  • Implement network-level monitoring for suspicious traffic patterns to LocalAI services

How to Mitigate CVE-2024-5182

Immediate Actions Required

  • Upgrade LocalAI to the latest patched version immediately
  • Restrict network access to LocalAI instances using firewall rules or network segmentation
  • Review system logs for any signs of prior exploitation
  • Implement input validation at the network perimeter using a WAF with path traversal detection rules

Patch Information

The vulnerability has been addressed in a security update from mudler. The fix implements proper input validation and path sanitization for the model parameter. Organizations should apply the patch available at the GitHub Commit. Additional details about the vulnerability and the fix can be found in the Huntr Vulnerability Bounty report.

Workarounds

  • Place LocalAI behind a reverse proxy that validates and sanitizes input parameters before forwarding requests
  • Restrict the LocalAI service to run with minimal file system permissions, limiting the scope of potential damage
  • Implement network-level access controls to limit which hosts can access the LocalAI API
  • Use container isolation to restrict file system access to only necessary directories
bash
# Example: Restrict LocalAI network access using iptables
# Allow only trusted internal networks to access LocalAI (default port 8080)
iptables -A INPUT -p tcp --dport 8080 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 8080 -j DROP

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechMudler Localai

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability2.49%

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

  • Huntr Vulnerability Bounty
  • Related CVEs
  • CVE-2024-2029: Mudler LocalAI 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