GitHub Advisoryadvisory · Go
GHSA-wx43-g55g-2jf4 LocalAI Command Injection in audioToWav
CRITICAL
Official page ↗
- Aliases
- CVE-2024-2029
- Ecosystem
- Go
- Packages
- github.com/go-skynet/LocalAI
- Severity
- Critical
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-78
- Reviewed
- 2024-04-10
Affected packages
• Go github.com/go-skynet/LocalAI: < 2.10.0 → fixed in 2.10.0
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.
Related
Alias · CVE (1)
- CVE-2024-2029 A command injection vulnerability exists in the `TranscriptEndpoint` of mudler/localai, specifically within the `audioToWav` function used… vulnerability
Weakness · CWE (1)
- CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness