SSRF in Localai
CVE-2026-59707
- CVSS v3
- 8.6 High
- Public exploits
- None known
- EPSS
- 0.014 · 72.9th percentile
- Published
- 2026-07-07
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.
Vulnerability class: SSRF (Server-Side Request Forgery)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.6 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Changed
S:C - Confidentiality
- High
C:H - Integrity
- None
I:N - Availability
- None
A:N
EPSS exploit prediction
EPSS 0.014, 72.9th percentile (last changed ); up from 0.005 30 days earlier. About EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.014 · change: +0.009
Affected products
- Localai — versions 0
Weakness classification (CWE)
References
- GitHub Issue (issue-tracking)
- Product (product)
- Patch Commit (patch)
- www.vulncheck.com/advisories/localai-server-side-request-forgery-via-post-model… (third-party-advisory)