# CVE-2024-5182: Path Traversal in mudler/localai

- Severity: High 7.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 25.5%, higher than 97% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-19T23:30:38.219Z
- Modified: 2026-06-17T08:15:21.753Z
- Also known as: GHSA-cpcx-r2gq-x893, GO-2024-2938
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- mudler mudler/localai: from unspecified before 2.16.0
- mudler localai: before 2.16.0
- github.com/go-skynet/LocalAI (Go): before 2.16.0; all versions

## Every score

- @huntr_ai: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://huntr.com/bounties/f7a87f29-c22a-48e8-9fce-b6d5a273e545> (exploit, issue-tracking, patch, web)
- <https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0e> (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)

## Sources

- CVE List: [CVE-2024-5182](https://www.cve.org/CVERecord?id=CVE-2024-5182), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-cpcx-r2gq-x893](https://github.com/advisories/GHSA-cpcx-r2gq-x893), CC-BY-4.0, modified 2024-07-08
- Go Vulnerability Database: [GO-2024-2938](https://pkg.go.dev/vuln/GO-2024-2938), CC-BY-4.0, modified 2024-07-09
- NVD: [CVE-2024-5182](https://nvd.nist.gov/vuln/detail/CVE-2024-5182), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-5182 · Whole record: https://cve.day/CVE-2024-5182.json · Rebuilt by cve.day 2026-11-25T22:58:42.058Z
