PT-2024-37382 · Unknown · Mudler/Localai

Published

2024-07-06

·

Updated

2024-07-09

·

CVE-2024-6095

CVSS v3.1

5.8

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Name of the Vulnerable Software and Affected Versions: mudler/localai versions 2.15.0
Description: A vulnerability in the "/models/apply" endpoint allows for Server-Side Request Forgery (SSRF) and partial Local File Inclusion (LFI). The endpoint supports both http(s):// and file:// schemes, where the latter can lead to LFI. However, the output is limited due to the length of the error message. This issue can be exploited by an attacker with network access to the LocalAI instance, potentially allowing unauthorized access to internal HTTP(s) servers and partial reading of local files.
Recommendations: For mudler/localai version 2.15.0, update to version 2.17 to resolve the issue. As a temporary workaround, consider restricting access to the "/models/apply" endpoint until the update is applied. Additionally, limiting the use of the file:// scheme in this endpoint can help minimize the risk of LFI.

Exploit

Fix

SSRF

Weakness Enumeration

Related Identifiers

CVE-2024-6095

Affected Products

Mudler/Localai