{"id":"CVE-2024-2029","published":"2024-04-10T17:08:05Z","modified":"2024-08-01T18:56:22Z","title":"Command Injection in mudler/localai","vendor":"mudler","product":"mudler/localai","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02879,"percentile":0.87181,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://huntr.com/bounties/e092528a-ce3b-4e66-9b98-3f56d6b276b0","tags":[]},{"url":"https://github.com/mudler/localai/commit/31a4c9c9d3abc58de2bdc5305419181c8b33eb1c","tags":[]}],"priority":{"score":24.3,"factors":[{"name":"EPSS percentile","points":17.44},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"mudler","affectedVersions":[{"vendor":"mudler","product":"mudler/localai","versions":[">= unspecified, < v2.10.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-04-10T19:42:34.024842Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/go-skynet/LocalAI","vulnerableRanges":["<2.10.0","all versions"],"patched":["2.10.0"],"from":["GHSA-wx43-g55g-2jf4","GO-2024-2717"],"provenance":"source"}],"summary":{"text":"A command injection flaw exists in the TranscriptEndpoint of mudler/localai, specifically in the audioToWav function that converts audio files to WAV for transcription, where user-supplied filenames are passed unsanitized to ffmpeg through a shell command. An attacker who can reach the endpoint without authentication or user interaction can inject operating system commands that run on the host, with the resulting impact depending on the privileges of the process executing the code.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T15:03:01Z"},"euvd":{"id":"EUVD-2024-1328","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-2029","published":"2024-04-10","fixed":"2.10.0","kev":false},{"cve":"CVE-2024-5182","published":"2024-06-19","fixed":"2.16.0","kev":false,"link":{"from":"CVE-2024-2029","to":"CVE-2024-5182","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/go-skynet/LocalAI","fromFixed":"2.10.0","toFixed":"2.16.0","daysApart":70}]}}],"package":"Go:github.com/go-skynet/LocalAI"}}