CVE-2024-6868
CVE-2024-6868 is a critical-severity vulnerability in Mudler Localai with a CVSS 3.x base score of 9.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-59.
Key facts
- Severity: Critical (CVSS 3.x base score 9.8)
- EPSS exploit prediction: 2% (71st percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-47862
- Weakness: CWE-59
- Affected product: Mudler Localai
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2024-6868?
- 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.
- How severe is CVE-2024-6868?
- CVE-2024-6868 has a CVSS 3.x base score of 9.8, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2024-6868 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (71st percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-6868?
- CVE-2024-6868 affects Mudler Localai. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-6868?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- Does CVE-2024-6868 have an EU (EUVD) identifier?
- Yes. CVE-2024-6868 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-47862.
- When was CVE-2024-6868 published?
- CVE-2024-6868 was published on 2024-10-29 and last updated on 2026-06-17.
References
- https://github.com/mudler/localai/commit/a181dd0ebc5d3092fc50f61674d552604fe8ef9c
- https://huntr.com/bounties/752d2376-2d9a-4e17-b462-3c267f9dd229
Affected products (1)
- cpe:2.3:a:mudler:localai:2.17.1:*:*:*:*:*:*:*
More vulnerabilities in Mudler Localai
- CVE-2024-5181 — Critical (CVSS 9.8): A command injection vulnerability exists in the mudler/localai version 2.14.0. The vulnerability arises from the…
- CVE-2024-2029 — Critical (CVSS 9.8): A command injection vulnerability exists in the `TranscriptEndpoint` of mudler/localai, specifically within the…
- CVE-2024-5182 — Critical (CVSS 9.1): A path traversal vulnerability exists in mudler/localai version 2.14.0, where an attacker can exploit the `model`…
- CVE-2024-6983 — High (CVSS 8.8): mudler/localai version 2.17.1 is vulnerable to remote code execution. The vulnerability arises because the localai…
- CVE-2024-3135 — Medium (CVSS 6.5): A Cross-Site Request Forgery (CSRF) vulnerability exists in the mudler/localai application, allowing attackers to craft…
- CVE-2024-9900 — Medium (CVSS 6.1): mudler/localai version v2.21.1 contains a Cross-Site Scripting (XSS) vulnerability in its search functionality. The…
All CVEs affecting Mudler Localai →
Other CWE-59 (Improper Link Resolution Before File Access (Link Following)) vulnerabilities
- CVE-2024-37143 — Critical (CVSS 10.0): Dell PowerFlex appliance versions prior to IC 46.381.00 and IC 46.376.00, Dell PowerFlex rack versions prior to RCM…
- CVE-2024-28189 — Critical (CVSS 10.0): Judge0 is an open-source online code execution system. The application uses the UNIX chown command on an untrusted file…
- CVE-2024-28185 — Critical (CVSS 10.0): Judge0 is an open-source online code execution system. The application does not account for symlinks placed inside the…
- CVE-2022-22995 — Critical (CVSS 10.0): The combination of primitives offered by SMB and AFP in their default configuration allows the arbitrary writing of…
- CVE-2014-4480 — Critical (CVSS 10.0): Directory traversal vulnerability in afc in AppleFileConduit in Apple iOS before 8.1.3 and Apple TV before 7.0.3 allows…
- CVE-2002-2374 — Critical (CVSS 10.0): Unspecified vulnerability in pprosetup in Sun PatchPro 2.0 has unknown impact and attack vectors related to "unsafe use…
Browse all CWE-59 (Improper Link Resolution Before File Access (Link Following)) vulnerabilities →