CVE-2026-59707 PUBLISHED

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

Assigner: VulnCheck
Reserved: 06.07.2026 Published: 07.07.2026 Updated: 07.07.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 9.2

Product Status

Vendor LocalAI
Product LocalAI
Versions Default: unaffected
  • affected from 0 to v4.3.1 (incl.)

Credits

  • George Chen reporter

References

Problem Types

  • Server-Side Request Forgery (SSRF) CWE