Skip to content
CriticalVulnerability

CVE-2024-6868: mudler/LocalAI arbitrary file write through automatic archive extraction

Identifier
CVE-2024-6868
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.5%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

mudler/LocalAI version 2.17.1 allows arbitrary file write because it mishandles automatic archive extraction. When model configurations list archive files such as .tar, the server extracts them after download, and an attacker can exploit this with a 'tarslip' attack to write files outside the models directory. The flaw can lead to remote code execution by overwriting backend assets the server uses.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.