{"cve":"CVE-2024-5182","nvd":{"published":"2024-06-20T00:15:09.487","modified":"2026-06-17T08:15:21.753","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1},"cwes":["CWE-22"],"references":["https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0e","https://huntr.com/bounties/f7a87f29-c22a-48e8-9fce-b6d5a273e545","https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0e","https://huntr.com/bounties/f7a87f29-c22a-48e8-9fce-b6d5a273e545"],"products":["mudler:localai"],"source":"nvd","synced_at":"2026-10-19T21:52:00.836172422+00:00"},"epss":{"cve":"CVE-2024-5182","score":0.25538,"percentile":0.97957,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-cpcx-r2gq-x893","url":"https://osv.dev/vulnerability/GHSA-cpcx-r2gq-x893","summary":"LocalAI path traversal vulnerability","modified":"2024-07-08T21:18:17Z","packages":[{"ecosystem":"Go","name":"github.com/go-skynet/LocalAI","purl":"pkg:golang/github.com/go-skynet/LocalAI","ranges":["<2.16.0"],"fixed":["2.16.0"]}]},{"id":"GO-2024-2938","url":"https://osv.dev/vulnerability/GO-2024-2938","summary":"LocalAI path traversal vulnerability in github.com/go-skynet/LocalAI","modified":"2024-07-09T19:33:56Z","packages":[{"ecosystem":"Go","name":"github.com/go-skynet/LocalAI","purl":"pkg:golang/github.com/go-skynet/LocalAI","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}