Security
Headlines
HeadlinesLatestCVEs

Headline

GHSA-wx43-g55g-2jf4: LocalAI Command Injection in audioToWav

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.

ghsa
#vulnerability#git#auth
  1. GitHub Advisory Database
  2. GitHub Reviewed
  3. CVE-2024-2029

LocalAI Command Injection in audioToWav

Critical severity GitHub Reviewed Published Apr 10, 2024 to the GitHub Advisory Database • Updated Apr 10, 2024

Package

gomod github.com/go-skynet/LocalAI (Go)

Affected versions

< 2.10.0

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

  • https://nvd.nist.gov/vuln/detail/CVE-2024-2029
  • mudler/LocalAI@31a4c9c
  • https://huntr.com/bounties/e092528a-ce3b-4e66-9b98-3f56d6b276b0

Published to the GitHub Advisory Database

Apr 10, 2024

Last updated

Apr 10, 2024

ghsa: Latest News

GHSA-2237-5r9w-vm8j: Connect-CMS information that is restricted to viewing is visible