CVE-2024-2029Mudler Localai
Critical 9.8 No auth needed
Follow: this CVE · Mudler · Mudler Localai We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.0
- 9.8
- EPSS
- 4.3% probability of exploitation in 30 days · percentile 92
- Auth required
- No
- Published
- Apr 10, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-78
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Localai.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/go-skynet/LocalAI |
< 2.10.0 |
2.10.0 |
go get github.com/go-skynet/LocalAI@v2.10.0 |
| Go | github.com/go-skynet/LocalAI |
all |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-wx43-g55g-2jf4, GO-2024-2717). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mudler | localai | < 2.10.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- huntr.com Exploit Third Party Advisory