Skip to content

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

CriticalCVSS 9.8 EPSS 1.5%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
mudler github.com/mudler/LocalAI < 2.18.1; = 2.17.1 2.18.1 Fixed
mudler/localai < 2.18.1 2.18.1 Fixed

Affected products

ProductAffected versionsFixed in
mudler/localai < 2.18.1 2.18.1
mudler github.com/mudler/LocalAI < 2.18.1 2.18.1
mudler github.com/mudler/LocalAI = 2.17.1 No fix listed

References