CVE-2024-5182
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.
How to fix
- mudler localai2.16.0 or later
- github.com/go-skynet/LocalAI2.16.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| mudler localai | v < 2.16.0 | 2.16.0 |
| github.com/go-skynet/LocalAIGo | v < 2.16.0, No range specified | 2.16.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.