CVE-2024-2029
CRITICAL 9.8CVSS 3.0LocalAI Command Injection in audioToWav
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.
- Published
- 10 Apr 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-78
- Also known as
- GHSA-wx43-g55g-2jf4GO-2024-2717
- Sources
- NVDJSONOSV GHSA-wx43-g55g-2jf4JSONOSV GO-2024-2717JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mudler | localaicpe:2.3:a:mudler:localai:*:*:*:*:*:*:*:* |
< 2.10.0 | 2.10.0 |
| OSV | Go | github.com/go-skynet/LocalAI | < 2.10.0 | 2.10.0 |
| OSV | Go | github.com/go-skynet/LocalAI | all versions |
References
- https://github.com/mudler/localai/commit/31a4c9c9d3abc58de2bdc5305419181c8b33eb1c · Patch, WEB
- https://huntr.com/bounties/e092528a-ce3b-4e66-9b98-3f56d6b276b0 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-2029 · ADVISORY
- https://github.com/mudler/LocalAI · PACKAGE
- https://github.com/advisories/GHSA-wx43-g55g-2jf4 · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 10 Apr 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Jun 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Apr 2024)