CVE-2024-5182

Critical

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.

SeverityCritical
CVSS9.1
Exploit probability—
ProductMudler Localai
PublishedJun 20, 2024
First seenJun 20, 2024

How to fix

Update
  • mudler localai2.16.0 or later
  • github.com/go-skynet/LocalAI2.16.0 or later

Affected products

ProductAffected versionsFixed in
mudler localaiv < 2.16.02.16.0
github.com/go-skynet/LocalAIGov < 2.16.0, No range specified2.16.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.