~ / search / GHSA-cpcx-r2gq-x893

GHSA-cpcx-r2gq-x893

LocalAI path traversal vulnerability

Source: GitHub Advisory Database (reviewed) High CVE-2024-5182

Packages

EcosystemPackageAffectedFixed in
Go github.com/go-skynet/LocalAI < 2.16.0 2.16.0

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.