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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/go-skynet/LocalAI | 2.16.0 | GHSA-cpcx-r2gq-x893 |
| Go | github.com/go-skynet/LocalAI | no fix listed | GO-2024-2938 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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