Lucene search

K
githubGitHub Advisory DatabaseGHSA-WX43-G55G-2JF4
HistoryApr 10, 2024 - 6:30 p.m.

LocalAI Command Injection in audioToWav

2024-04-1018:30:48
CWE-78
GitHub Advisory Database
github.com
14
localai
command injection
transcriptendpoint
audiotowav
vulnerability
sanitization
user-supplied filenames
ffmpeg
shell command
unauthorized access
data breaches
privileges

CVSS3

9.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

AI Score

8.1

Confidence

High

EPSS

0

Percentile

9.6%

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 configurations

Vulners
Node
go-skynetlocalaiRange<2.10.0
VendorProductVersionCPE
go-skynetlocalai*cpe:2.3:a:go-skynet:localai:*:*:*:*:*:*:*:*

CVSS3

9.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

AI Score

8.1

Confidence

High

EPSS

0

Percentile

9.6%

Related for GHSA-WX43-G55G-2JF4