CVE-2024-5182

CRITICAL EPSS 97.7%
Published Jun 20, 20242y ago · Modified Jun 17, 20261w ago
9.1 CVSS 3.1
Critical
Find Similar
Published Jun 20, 2024 2y ago
Last Modified Jun 17, 2026 1w ago

Description

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. Specifically, by crafting a request with a manipulated `model` parameter, an attacker can traverse the directory structure and target files outside of the intended directory, leading to the deletion of sensitive data. This vulnerability is due to insufficient input validation and sanitization of the `model` parameter.

CVSS Details

Base Score
9.1
Exploitability
3.9
Impact
5.2
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality None
Integrity High
Availability High

Threat Intelligence

EPSS Exploit Probability
97.7% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available

Weaknesses 1

CWE-22 Path Traversal Resource Mgmt

Affected Products 1

VendorProductVersionRange
mudlerlocalai* <2.16.0

References 2

  • github.com https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0e
    Patch
  • huntr.com https://huntr.com/bounties/f7a87f29-c22a-48e8-9fce-b6d5a273e545
    ExploitIssue TrackingPatch

Remediation

  • github.com https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0e
    Patch
  • huntr.com https://huntr.com/bounties/f7a87f29-c22a-48e8-9fce-b6d5a273e545
    ExploitIssue TrackingPatch