{"cve":"CVE-2024-2029","nvd":{"published":"2024-04-10T17:15:53.880","modified":"2026-06-17T07:23:35.550","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-78"],"references":["https://github.com/mudler/localai/commit/31a4c9c9d3abc58de2bdc5305419181c8b33eb1c","https://huntr.com/bounties/e092528a-ce3b-4e66-9b98-3f56d6b276b0","https://github.com/mudler/localai/commit/31a4c9c9d3abc58de2bdc5305419181c8b33eb1c","https://huntr.com/bounties/e092528a-ce3b-4e66-9b98-3f56d6b276b0"],"products":["mudler:localai"],"source":"nvd","synced_at":"2026-10-19T21:48:32.179249784+00:00"},"epss":{"cve":"CVE-2024-2029","score":0.02879,"percentile":0.86849,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-wx43-g55g-2jf4","url":"https://osv.dev/vulnerability/GHSA-wx43-g55g-2jf4","summary":"LocalAI Command Injection in audioToWav","modified":"2024-07-08T21:04:48Z","packages":[{"ecosystem":"Go","name":"github.com/go-skynet/LocalAI","purl":"pkg:golang/github.com/go-skynet/LocalAI","ranges":["<2.10.0"],"fixed":["2.10.0"]}]},{"id":"GO-2024-2717","url":"https://osv.dev/vulnerability/GO-2024-2717","summary":"LocalAI Command Injection in audioToWav in github.com/go-skynet/LocalAI","modified":"2024-07-09T19:33:56Z","packages":[{"ecosystem":"Go","name":"github.com/go-skynet/LocalAI","purl":"pkg:golang/github.com/go-skynet/LocalAI","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}