~ / search / GHSA-wx43-g55g-2jf4

GHSA-wx43-g55g-2jf4

LocalAI Command Injection in audioToWav

Source: GitHub Advisory Database (reviewed) Critical CVE-2024-2029

Packages

EcosystemPackageAffectedFixed in
Go github.com/go-skynet/LocalAI < 2.10.0 2.10.0

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.