{"id":"CVE-2024-5182","aliases":["EUVD-2024-2025","GHSA-cpcx-r2gq-x893","GO-2024-2938"],"status":"published","title":"Path Traversal in mudler/localai","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.","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.25538,"percentile":0.97969,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2024-06-19T23:30:38Z","modified":"2026-10-28T02:30:46Z","fixes":[{"ecosystem":"Go","package":"github.com/go-skynet/LocalAI","fixed_in":["2.16.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/go-skynet/LocalAI","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/go-skynet/LocalAI","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.16.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/go-skynet/LocalAI","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}],"products":[{"vendor":"mudler","product":"localai"},{"vendor":"mudler","product":"mudler/localai"}],"references":[{"url":"https://huntr.com/bounties/f7a87f29-c22a-48e8-9fce-b6d5a273e545","tags":["x_transferred","Exploit","Issue Tracking","Patch","web"]},{"url":"https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0e","tags":["x_transferred","Patch","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5182","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-cpcx-r2gq-x893","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5182.json","tags":["advisory"]},{"url":"https://github.com/mudler/LocalAI","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-5182","title":"Path Traversal in mudler/localai","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.","status":"published","published":"2024-06-19T23:30:38.219Z","modified":"2024-08-01T21:03:10.99Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:34:01.286506Z"}],"euvd":[{"id":"EUVD-2024-2025","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.","status":"published","published":"2024-06-19T23:30:38Z","modified":"2024-08-01T21:03:10Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-03T03:50:35.230694Z"}],"ghsa":[{"id":"GHSA-cpcx-r2gq-x893","title":"LocalAI path traversal vulnerability","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.","status":"published","published":"2024-06-20T00:30:46Z","modified":"2024-08-07T05:01:38Z","cvss":[{"version":"4.0","score":8.7,"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","level":"high"},{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:37:58.427757Z"}],"nvd":[{"id":"CVE-2024-5182","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.","status":"published","published":"2024-06-20T00:15:09.487Z","modified":"2026-06-17T08:15:21.753Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical","assessor":"primary"},{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:10:07.173605Z"}],"osv":[{"id":"CVE-2024-5182","title":"Path Traversal in mudler/localai","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.","status":"published","published":"2024-06-19T23:30:38.219Z","modified":"2026-10-28T02:30:46.717233602Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:44:44.032344Z"},{"id":"GHSA-cpcx-r2gq-x893","title":"LocalAI path traversal vulnerability","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.","status":"published","published":"2024-06-20T00:30:46Z","modified":"2024-07-08T21:18:17Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"},{"version":"4.0","score":8.7,"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","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:45.28161Z"},{"id":"GO-2024-2938","title":"LocalAI path traversal vulnerability in github.com/go-skynet/LocalAI","description":"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.","status":"published","published":"2024-06-28T15:28:30Z","modified":"2024-07-09T19:33:56Z","updated_at":"2026-11-02T15:47:01.453823Z"}]}}
