CVE-2024-5182
CRITICAL 9.1CVSS 3.1LocalAI path traversal vulnerability
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.
- Published
- 20 Jun 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-cpcx-r2gq-x893GO-2024-2938
- Sources
- NVDJSONOSV GHSA-cpcx-r2gq-x893JSONOSV GO-2024-2938JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mudler | localaicpe:2.3:a:mudler:localai:*:*:*:*:*:*:*:* |
< 2.16.0 | 2.16.0 |
| OSV | Go | github.com/go-skynet/LocalAI | < 2.16.0 | 2.16.0 |
| OSV | Go | github.com/go-skynet/LocalAI | all versions |
References
- https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0e · Patch, WEB
- https://huntr.com/bounties/f7a87f29-c22a-48e8-9fce-b6d5a273e545 · Exploit, Issue Tracking, Patch, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-5182 · ADVISORY
- https://github.com/mudler/LocalAI · PACKAGE
- https://github.com/advisories/GHSA-cpcx-r2gq-x893 · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 20 Jun 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jun 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 20 Jun 2024)