{"id":"CVE-2024-5182","aliases":["CVE-2024-5182","GHSA-cpcx-r2gq-x893","GO-2024-2938"],"related":[],"kind":"vulnerability","state":"published","title":"Path Traversal in mudler/localai","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"LocalAI path traversal vulnerability in github.com/go-skynet/LocalAI.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/go-skynet/LocalAI before v2.16.0.","format":"markdown","source":"go"},{"lang":"es","text":"Existe una vulnerabilidad de path traversal en mudler/localai versión 2.14.0, donde un atacante puede explotar el parámetro `model` durante el proceso de eliminación del modelo para eliminar archivos arbitrarios. Específicamente, al elaborar una solicitud con un parámetro \"modelo\" manipulado, un atacante puede atravesar la estructura del directorio y apuntar a archivos fuera del directorio deseado, lo que lleva a la eliminación de datos confidenciales. Esta vulnerabilidad se debe a una validación de entrada y una sanitización insuficientes del parámetro \"modelo\".","source":"nvd"}],"published":"2024-06-19T23:30:38.219Z","modified":"2026-06-17T08:15:21.753Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"CRITICAL"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"2.16.0","status":"affected"}],"vendor":"mudler","product":"mudler/localai","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"2.16.0","status":"affected"}],"vendor":"mudler","product":"localai","cpe":"cpe:2.3:a:mudler:localai:0:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.16.0"}],"ecosystem":"Go","package":"github.com/go-skynet/LocalAI","purl":"pkg:golang/github.com/go-skynet/LocalAI","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/go-skynet/LocalAI","purl":"pkg:golang/github.com/go-skynet/LocalAI","source":"go"},{"ranges":[{"status":"affected","fixed":"2.16.0"}],"vendor":"mudler","product":"localai","cpe":"cpe:2.3:a:mudler:localai:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://huntr.com/bounties/f7a87f29-c22a-48e8-9fce-b6d5a273e545","tags":["exploit","issue-tracking","patch","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0e","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5182","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/mudler/LocalAI","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-cpcx-r2gq-x893","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-06-20T16:14:16.413Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-5182","url":"https://www.cve.org/CVERecord?id=CVE-2024-5182","licence":"CVE Terms of Use","modified":"2024-08-01T21:03:10.990Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cpcx-r2gq-x893","url":"https://github.com/advisories/GHSA-cpcx-r2gq-x893","licence":"CC-BY-4.0","modified":"2024-07-08T21:18:17.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2938","url":"https://pkg.go.dev/vuln/GO-2024-2938","licence":"CC-BY-4.0","modified":"2024-07-09T19:33:56.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-5182","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5182","licence":"Public domain","modified":"2026-06-17T08:15:21.753Z"}],"updatedAt":"2026-11-25T22:58:42.058Z","epss":{"score":0.25538,"percentile":0.97993,"date":"2026-12-01T12:00:22.000Z"}}