{"id":"CVE-2024-5182","published":"2024-06-19T23:30:38Z","modified":"2024-08-01T21:03:10Z","title":"Path Traversal in mudler/localai","vendor":"mudler","product":"mudler/localai","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.25538,"percentile":0.98001,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://huntr.com/bounties/f7a87f29-c22a-48e8-9fce-b6d5a273e545","tags":[]},{"url":"https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0e","tags":[]}],"priority":{"score":24.9,"factors":[{"name":"EPSS percentile","points":19.6},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"mudler","affectedVersions":[{"vendor":"mudler","product":"mudler/localai","versions":[">= unspecified, < 2.16.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-06-20T16:14:16.413630Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/go-skynet/LocalAI","vulnerableRanges":["<2.16.0","all versions"],"patched":["2.16.0"],"from":["GHSA-cpcx-r2gq-x893","GO-2024-2938"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in the model deletion process of mudler/localai, where the model parameter is not properly validated or sanitized, allows crafted input to escape the intended directory. An attacker with network access can exploit it without authentication or user interaction by sending a manipulated request to delete arbitrary files outside the intended directory, including sensitive data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:25:13Z"},"euvd":{"id":"EUVD-2024-2025","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-2029","published":"2024-04-10","fixed":"2.10.0","kev":false,"link":{"from":"CVE-2024-2029","to":"CVE-2024-5182","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/go-skynet/LocalAI","fromFixed":"2.10.0","toFixed":"2.16.0","daysApart":70}]}},{"cve":"CVE-2024-5182","published":"2024-06-19","fixed":"2.16.0","kev":false}],"package":"Go:github.com/go-skynet/LocalAI"}}