Vulnerability · Published Apr 10, 2024 · Assigned by @huntr_ai

CVE-2024-2029Command Injection in mudler/localai

Critical 9.8

In plain English

A critical-severity OS command injection in mudler/localai from mudler. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.9% (higher than 87% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)9.8Critical
Exploit odds (30 days)2.9%top 13.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/go-skynet/LocalAI2.10.0GHSA-wx43-g55g-2jf4
Gogithub.com/go-skynet/LocalAIno fix listedGO-2024-2717

Affected products (as reported)

VendorProductVersions
mudler mudler/localai unspecified – before v2.10.0

Weakness: CWE-78 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References