Read the docs
TI-2026-42580 Aliases CVE-2026-59707GHSA-8c5q-hx4g-qq23

LocalAI - Server-Side Request Forgery via POST /models/apply

Priority HIGH 79CWE-918Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-918 and the CVSS impact.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01383 72nd percentileScored 2026-11-07
Fix Fixed github.com/mudler/LocalAI (Go): 1.40.1-0.20260703213242-2cbb3c96b34d

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
LocalAILocalAIup to v4.3.1—No fix listedCNA
—github.com/mudler/LocalAI (Go)before 1.40.1-0.20260703213242-2cbb3c96b34d1.40.1-0.20260703213242-2cbb3c96b34dPatch availableGHSA-8c5q-hx4g-qq23
  • LocalAI VendorLocalAI Affected up to v4.3.1 Fixed in — No fix listed CNA
  • github.com/mudler/LocalAI (Go) Vendor— Affected before 1.40.1-0.20260703213242-2cbb3c96b34d Fixed in 1.40.1-0.20260703213242-2cbb3c96b34d Patch available GHSA-8c5q-hx4g-qq23

Remediation

  • Fix · GHSA-8c5q-hx4g-qq23 github.com/mudler/LocalAI (Go) Fixed in 1.40.1-0.20260703213242-2cbb3c96b34d Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-59707
  2. 2026-10-03 Alias added: GHSA-8c5q-hx4g-qq23
  3. 2026-10-27 EPSS moved to the 50th–90th percentile

References

  • TI-2026-78929 SSRF guard bypass in LocalAI via HTTP redirects CVSS 4.0CRITICAL 9.2

Sources