# CVE-2024-2029: Command Injection in mudler/localai

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.0, CNA) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 4.34% (percentile 92, 2026-11-26)
- **CWE:** CWE-78
- **Aliases:** GHSA-wx43-g55g-2jf4, GO-2024-2717
- **Published:** 2024-04-10T17:08:05.727Z
- **Modified:** 2026-06-17T07:23:35.550Z

## Who should check

- Projects that depend on Go package github.com/go-skynet/LocalAI (\< 2.10.0)
- Anyone running mudler/localai \>= unspecified, \< v2.10.0

## 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.

## Affected and fixed versions

- Go `github.com/go-skynet/LocalAI`: affected \< 2.10.0; fixed 2.10.0 (osv)
- mudler/localai: \>= unspecified, \< v2.10.0 (cvelist)

## Mitigation

- Upgrade github.com/go-skynet/LocalAI to 2.10.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-2029. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-2029.md
Affected: github.com/go-skynet/LocalAI < 2.10.0
Fixed in: 2.10.0

Steps:
1. Search this machine and project for github.com/go-skynet/LocalAI (Go), mudler/localai: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-2029 being exploited?

There is no confirmed exploitation: CVE-2024-2029 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 4.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-2029?

Critical: CVSS 9.8 (v3.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-2029?

github.com/go-skynet/LocalAI \< 2.10.0.

### Is there a fix for CVE-2024-2029?

Yes. Fixed in 2.10.0. Upgrade github.com/go-skynet/LocalAI to 2.10.0 or later.

### How do I check if I'm affected by CVE-2024-2029?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-2029>
- vendor: <https://github.com/advisories/GHSA-wx43-g55g-2jf4>
- patch: <https://github.com/mudler/localai/commit/31a4c9c9d3abc58de2bdc5305419181c8b33eb1c>
- exploit: <https://huntr.com/bounties/e092528a-ce3b-4e66-9b98-3f56d6b276b0>
- other: <https://github.com/mudler/LocalAI>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-2029>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-wx43-g55g-2jf4> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-2717> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-2029> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-2029>
