Skip to content
OpenAdvisories
High · 7.5 CVE-2024-5182 EUVD-2024-2025GHSA-cpcx-r2gq-x893GO-2024-2938

Path Traversal in mudler/localai

Published Jun 19, 2024 · Updated Aug 1, 2024 · Assigned by @huntr_ai

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.

Affected products

VendorProductAffectedFixed
mudler mudler/localai unspecified – < 2.16.0 2.16.0

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/go-skynet/LocalAI < 2.16.0 2.16.0 GHSA-cpcx-r2gq-x893
Go github.com/go-skynet/LocalAI all versions — GO-2024-2938

References