CVE-2026-59707
JSON

9.2critical

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

Severity
9.2critical CVSS:4.0 by VulnCheck
Exploit likelihood
1.59% (higher than 76% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-8c5q-hx4g-qq23GO-2026-6645

Description

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.

Affected

Product or packageVersionsReported by
LocalAI LocalAIup to v4.3.1CVE List
github.com/mudler/LocalAI (Go)before 1.40.1-0.20260703213242-2cbb3c96b34dGitHub Advisory Database, Go Vulnerability Database

All scores

VulnCheck9.2critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
VulnCheck8.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
GitHub8.6critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N

Classification

CWE-918

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

Go Vulnerability Database

LocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLs in github.com/mudler/LocalAI

NVD (es)

LocalAI contiene una vulnerabilidad de falsificación de petición del lado del servidor no autenticada en el endpoint POST /models/apply que permite a los atacantes obtener URLs internas arbitrarias. El endpoint pasa campos de URL de galería no saneados directamente a gallery.GetGalleryConfigFromURLWithContext sin una validación adecuada, lo que permite a los atacantes forzar al servidor a emitir peticiones HTTP GET a rangos privados y de loopback con contenido de respuesta parcial filtrado a través de mensajes de error.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-59707 changed 2026-09-24CVE Terms of Use
GitHub Advisory DatabaseGHSA-8c5q-hx4g-qq23 changed 2026-10-07CC-BY-4.0
Go Vulnerability DatabaseGO-2026-6645 changed 2026-10-07CC-BY-4.0
NVDCVE-2026-59707 changed 2026-10-25Public domain