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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- huntr.com exploit third-party-advisory
- github.com vendor-advisory