Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/go-skynet/LocalAI
  4. ›
  5. CVE-2024-2029

CVE-2024-2029: LocalAI Command Injection in audioToWav

April 10, 2024

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.

References

  • github.com/advisories/GHSA-wx43-g55g-2jf4
  • github.com/mudler/LocalAI
  • github.com/mudler/localai/commit/31a4c9c9d3abc58de2bdc5305419181c8b33eb1c
  • huntr.com/bounties/e092528a-ce3b-4e66-9b98-3f56d6b276b0
  • nvd.nist.gov/vuln/detail/CVE-2024-2029

Code Behaviors & Features

Detect and mitigate CVE-2024-2029 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.10.0

Fixed versions

  • 2.10.0

Solution

Upgrade to version 2.10.0 or above.

Impact 9.8 CRITICAL

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

go/github.com/go-skynet/LocalAI/CVE-2024-2029.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:34 +0000.