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 package | Versions | Reported by |
|---|---|---|
| LocalAI LocalAI | up to v4.3.1 | CVE List |
| github.com/mudler/LocalAI (Go) | before 1.40.1-0.20260703213242-2cbb3c96b34d | GitHub Advisory Database, Go Vulnerability Database |
All scores
| VulnCheck | 9.2critical CVSS:4.0 | 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 |
| VulnCheck | 8.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| GitHub | 8.6critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| GitHub | critical CVSS:4.0 | 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 |
Classification
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
| https://github.com/mudler/LocalAI/issues/10665 | exploit, issue-tracking, report, web | |
| https://github.com/mudler/LocalAI | package, product | |
| https://github.com/mudler/LocalAI/commit/f9b968e19d7cbc556d59dceb2e0e450b828a3fda | fix, patch, web | |
| https://www.vulncheck.com/advisories/localai-server-side-request-forgery-via-post-models-apply | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-59707 | advisory | |
| https://github.com/advisories/GHSA-8c5q-hx4g-qq23 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-59707 changed 2026-09-24 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8c5q-hx4g-qq23 changed 2026-10-07 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-6645 changed 2026-10-07 | CC-BY-4.0 |
| NVD | CVE-2026-59707 changed 2026-10-25 | Public domain |