Skip to content
OpenAdvisories
Critical · 9.8 CVE-2024-2029 EUVD-2024-1328GHSA-wx43-g55g-2jf4GO-2024-2717

Command Injection in mudler/localai

Published Apr 10, 2024 · Updated Aug 1, 2024 · Assigned by @huntr_ai

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.

Affected products

VendorProductAffectedFixed
mudler mudler/localai unspecified – < v2.10.0 v2.10.0

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/go-skynet/LocalAI < 2.10.0 2.10.0 GHSA-wx43-g55g-2jf4
Go github.com/go-skynet/LocalAI all versions — GO-2024-2717

References