CVE-2024-2029: mudler localai OS Command Injection
Vulnerability summary
CVE-2024-2029 is a critical (CVSS 9.8) OS Command Injection vulnerability in mudler localai. EPSS estimates a 2.88% chance of exploitation in the next 30 days, higher than 86.7% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 10-04-2024PublishedVulnerability first disclosed.
- 01-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · GoEcosystem advisory · calculated9.8CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.88%
Chance of exploitation in the next 30 days
Percentile
87%
Versus all other CVEs
30-day change
0.00 pp
From 2.88% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (huntr.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Mudler2 products
- localai< 2.10.0
- mudler/localai≥ unspecified, < v2.10.0
Github.com/go-skynet1 product
- LocalAI< 2.10.0 | All versions (No fix recorded)
2 vendors · 3 products
References
5 links- github.com/mudler/LocalAIPACKAGE