NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2024-2029: LocalAI Command Injection in audioToWav

criticalCVSS 4.0 9.3 · 3.0 9.8GHSA-wx43-g55g-2jf4

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.

Published Apr 10, 2024 · Updated Aug 7, 2024

Affected packages

github.com/go-skynet/LocalAI

Ecosystem
Go
Affected
< 2.10.0
Fixed in
2.10.0
Check
go list -m github.com/go-skynet/LocalAI

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology