# CVE-2024-6868: Arbitrary File Write in mudler/LocalAI

- Severity: High 8.1 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/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): 1.54%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-10-29T12:46:54.732Z
- Modified: 2026-06-17T08:18:52.407Z
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## Description

mudler/LocalAI version 2.17.1 allows for arbitrary file write due to improper handling of automatic archive extraction. When model configurations specify additional files as archives (e.g., .tar), these archives are automatically extracted after downloading. This behavior can be exploited to perform a 'tarslip' attack, allowing files to be written to arbitrary locations on the server, bypassing checks that normally restrict files to the models directory. This vulnerability can lead to remote code execution (RCE) by overwriting backend assets used by the server.

(As written by CVE List.)

## Affected

- mudler mudler/localai: from unspecified before 2.18.1
- mudler localai: before 2.18.1; 2.17.1

## Every score

- @huntr_ai: CVSS:3.0 8.1 High `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/752d2376-2d9a-4e17-b462-3c267f9dd229> (exploit, third-party-advisory)
- <https://github.com/mudler/localai/commit/a181dd0ebc5d3092fc50f61674d552604fe8ef9c> (patch)

## Sources

- CVE List: [CVE-2024-6868](https://www.cve.org/CVERecord?id=CVE-2024-6868), CVE Terms of Use, modified 2025-10-15
- NVD: [CVE-2024-6868](https://nvd.nist.gov/vuln/detail/CVE-2024-6868), Public domain, modified 2026-06-17

---

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