Vulnerability · Published Apr 10, 2024 · Assigned by @huntr_ai
CVE-2024-2029Command Injection in mudler/localai
Critical 9.8
In plain English
A critical-severity OS command injection in mudler/localai from mudler. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.9% (higher than 87% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/go-skynet/LocalAI | 2.10.0 | GHSA-wx43-g55g-2jf4 |
| Go | github.com/go-skynet/LocalAI | no fix listed | GO-2024-2717 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| mudler | mudler/localai | unspecified – before v2.10.0 |
Weakness: CWE-78 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H