CVE-2024-5182CWE-22

Path Traversal in mudler/localai

High · published June 19, 2024

CVSS v3.0
7.5
EPSS
26%
Percentile
98.0
In the wild
Unconfirmed
What it is

⚡ Path traversal is pulling a fast one! With mudler/localai version 2.14.0, a crafty request can cause real chaos, allowing attackers to delete files they shouldn't even touch! 🔥 Think of it like a waiter who mistakenly tosses a random customer’s order in the trash instead of just the one that was clearly marked for removal—if they don’t check the details, precious data could end up lost forever! An attacker exploiting this vulnerability could wipe out sensitive files, leading to devastating data loss or even service disruptions. Imagine coming into work one day only to find your most important documents vanished! 🚨

Put simply

Think of it like a waiter who mistakenly tosses a random customer’s order in the trash instead of just the one that was clearly marked for removal—if they don’t check the details, precious data could end up lost forever! The path traversal vulnerability allows attackers to manipulate the `model` parameter during model deletion, enabling them to traverse outside the intended directory and delete arbitrary files due to inadequate input validation and sanitization.

What to do

An attacker exploiting this vulnerability could wipe out sensitive files, leading to devastating data loss or even service disruptions. Imagine coming into work one day only to find your most important documents vanished! 🚨 Patch to version 2.14.1 immediately to close this hole! Additionally, implement strict input validation and sanitization measures on the `model` parameter to prevent unauthorized access. Regular audits will help catch any similar vulnerabilities before they cause a stir! You've got this! Follow these steps, and your application will be safe and sound in no time! 🛡️

The record
Technical detail
CVSS v3.0
7.5 · HIGH
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.25538 · 98.0th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2024-06-19T23:30Z
EPSS history
Timeline
  • 19 JUN 23:30Z
    Path Traversal in mudler/localai
    cvelistv5