Vulnerability · Published Jun 19, 2024 · Assigned by @huntr_ai

CVE-2024-5182Path Traversal in mudler/localai

High 7.5

In plain English

A high-severity path traversal in mudler/localai from mudler. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 25.5% (higher than 98% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)7.5High
Exploit odds (30 days)25.5%top 2.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/go-skynet/LocalAI2.16.0GHSA-cpcx-r2gq-x893
Gogithub.com/go-skynet/LocalAIno fix listedGO-2024-2938

Affected products (as reported)

VendorProductVersions
mudler mudler/localai unspecified – before 2.16.0

Weakness: CWE-22 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References