LocalAI - Server-Side Request Forgery via POST /models/apply
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| LocalAI | LocalAI | up to v4.3.1 | — | No fix listed | CNA |
| — | github.com/mudler/LocalAI (Go) | before 1.40.1-0.20260703213242-2cbb3c96b34d | 1.40.1-0.20260703213242-2cbb3c96b34d | Patch available | GHSA-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
- 2026-10-02 Threatist record created from CVE-2026-59707
- 2026-10-03 Alias added: GHSA-8c5q-hx4g-qq23
- 2026-10-27 EPSS moved to the 50th–90th percentile
References
Patch 1
Other 2
More LocalAI vulnerabilities
- TI-2026-78929 SSRF guard bypass in LocalAI via HTTP redirects CVSS 4.0CRITICAL 9.2
Sources
- CVE-2026-59707 · CVE Program
- CVE-2026-59707 · NVD
- FIRST EPSS
- GHSA-8c5q-hx4g-qq23 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences