Skip to content

CVE-2024-2029 Command Injection in mudler/localai

CriticalCVSS 9.8 EPSS 2.9%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total

Description

A command injection vulnerability exists in the TranscriptEndpoint of mudler/localai, specifically within the audioToWav function used for converting audio files to WAV format for transcription. The vulnerability arises due to the lack of sanitization of user-supplied filenames before passing them to ffmpeg via a shell command, allowing an attacker to execute arbitrary commands on the host system. Successful exploitation could lead to unauthorized access, data breaches, or other detrimental impacts, depending on the privileges of the process executing the code.

Upgrade path

3 packages: 2 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
go-skynet github.com/go-skynet/LocalAI(Go) < 2.10.0; All versions 2.10.0 Partially fixed
mudler github.com/mudler/LocalAI < 2.10.0 2.10.0 Fixed
mudler/localai < v2.10.0 v2.10.0 Fixed

Affected products

ProductAffected versionsFixed in
go-skynet github.com/go-skynet/LocalAI(Go) < 2.10.0 2.10.0
go-skynet github.com/go-skynet/LocalAI(Go) All versions No fix listed
mudler/localai < v2.10.0 v2.10.0
mudler github.com/mudler/LocalAI < 2.10.0 2.10.0

References