GitHub Advisoryadvisory · Go

GHSA-cpcx-r2gq-x893 LocalAI path traversal vulnerability

HIGH Published 2024-06-20 Modified 2024-07-08 Official page ↗
Aliases
CVE-2024-5182
Ecosystem
Go
Packages
github.com/go-skynet/LocalAI
Severity
High
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-22
Reviewed
2024-06-20

Affected packages

• Go github.com/go-skynet/LocalAI: < 2.16.0 → fixed in 2.16.0

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.

Related

Alias · CVE (1)

  • CVE-2024-5182 A path traversal vulnerability exists in mudler/localai version 2.14.0, where an attacker can exploit the `model` parameter during the… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References