CVE-2024-6868 Arbitrary File Write in mudler/LocalAI
Attackers can write arbitrary files via malicious archives, leading to remote code execution by overwriting server assets.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-6868?
CVE-2024-6868 is a high-severity path traversal vulnerability in mudler/localai, published on 29 Oct 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-59
Which versions are affected by CVE-2024-6868?
It affects 1 product.
Products include Mudler Localai.
How do I fix CVE-2024-6868?
No fix has been published for CVE-2024-6868 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-6868 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6868 exists.
Other vulnerabilities in mudler/localai
Sources
Also known as GHSA-2w8h-hch2-v23h.