---
title: "CVE-2024-2029: LocalAI Command Injection in audioToWav"
url: https://erroneo.us/security/cve/CVE-2024-2029/
description: "CVE-2024-2029 (github.com/go-skynet/LocalAI (Go)): A command injection vulnerability exists in the TranscriptEndpoint of mudler/localai, specifically within…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-04-10
date_modified: 2024-08-07
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-2029"
kev: false
cvss: 9.3
epss: 0.02879
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-2029: LocalAI Command Injection in audioToWav

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 2.9% , percentile 87: FIRST’s model estimates a 2.9% chance of exploitation activity in the next 30 days, higher than 87% of all scored CVEs (elevated). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes github.com/go-skynet/LocalAI (Go) < 2.10.0, fixed in 2.10.0 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- Go `github.com/go-skynet/LocalAI` < 2.10.0 → fixed: 2.10.0

## Affected products (CVE record)

- mudler mudler/localai: unspecified < v2.10.0

## Severity

- @huntr_ai CVSS 3.0: 9.8 `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub CVSS 4.0: 9.3 `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`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 2.88% probability of exploitation activity in the next 30 days; percentile 87.

## Sources

- [GitHub Advisory GHSA-wx43-g55g-2jf4](https://github.com/advisories/GHSA-wx43-g55g-2jf4)
- [CVE.org record CVE-2024-2029](https://www.cve.org/CVERecord?id=CVE-2024-2029)
- [NVD entry CVE-2024-2029](https://nvd.nist.gov/vuln/detail/CVE-2024-2029)
- [huntr.com](https://huntr.com/bounties/e092528a-ce3b-4e66-9b98-3f56d6b276b0)
- [github.com](https://github.com/mudler/localai/commit/31a4c9c9d3abc58de2bdc5305419181c8b33eb1c)

---
Source page: https://erroneo.us/security/cve/CVE-2024-2029/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
