SCA: security update for github.com/mudler/LocalAI (GHSA-8c5q-hx4g-qq23)

critical Tenable Self-Hosted Container Security Plugin ID 472202

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- LocalAI contains an unauthenticated server-side request forgery vulnerability in the POST /models/apply
endpoint that allows attackers to fetch arbitrary internal URLs. The endpoint passes unsanitized gallery
URL fields directly to gallery.GetGalleryConfigFromURLWithContext without proper validation, enabling
attackers to force the server to issue HTTP GET requests to private and loopback ranges with partial
response content leaked through error messages. (CVE-2026-59707)

Solution

Update the github.com/mudler/LocalAI library and its related packages to version 1.40.1-0.20260703213242-2cbb3c96b34d or later.

See Also

https://github.com/advisories/GHSA-8c5q-hx4g-qq23

Plugin Details

Severity: Critical

ID: 472202

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 10/3/2026

Updated: 10/3/2026

Risk Information

VPR

Risk Factor: Low

Score: 3.3

Percentile: 51.2

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2026-59707

CVSS v3

Risk Factor: High

Base Score: 8.6

Temporal Score: 7.5

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Critical

Base Score: 9.2

Threat Score: 7.7

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 7/7/2026

Vulnerability Publication Date: 7/7/2026

Reference Information

CVE: CVE-2026-59707

cwe: CWE-918