GHSA-cpcx-r2gq-x893

Suggest an improvement
Source
https://github.com/advisories/GHSA-cpcx-r2gq-x893
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-cpcx-r2gq-x893/GHSA-cpcx-r2gq-x893.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-cpcx-r2gq-x893
Aliases
Published
2024-06-20T00:30:46Z
Modified
2024-07-08T21:18:17Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2024-06-20T00:15:09Z",
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2024-06-20T16:12:32Z"
}
References

Affected packages

Go / github.com/go-skynet/LocalAI

Package

Name
github.com/go-skynet/LocalAI
View open source insights on deps.dev
Purl
pkg:golang/github.com/go-skynet/LocalAI

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.16.0