Advisory

GHSA-cpcx-r2gq-x893

Also known as: CVE-2024-5182, GO-2024-2938

Summary

LocalAI path traversal vulnerability

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-06-20 00:30 UTC
Modified
2024-07-08 21:18 UTC

Affected packages and fixes

github.com/go-skynet/LocalAI

Go · All systems

Affected

  • introduced 0, fixed 2.16.0 (semver)

Fixed versions

2.16.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences