Advisory

GHSA-wx43-g55g-2jf4

Also known as: CVE-2024-2029, GO-2024-2717

Summary

LocalAI Command Injection in audioToWav

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2024-04-10 18:30 UTC
Modified
2024-07-08 21:04 UTC

Affected packages and fixes

github.com/go-skynet/LocalAI

Go · All systems

Affected

  • introduced 0, fixed 2.10.0 (semver)

Fixed versions

2.10.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences