CVE-2026-59707

published 7 Jul 2026 · updated 24 Sep 2026

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

9.6CriticalCVSS 8.6EPSS 1%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LocalAI<=v4.3.1

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-59707 severity on Zeptric[![CVE-2026-59707](https://zeptric.io/badge/cve/CVE-2026-59707.svg)](https://zeptric.io/cve/CVE-2026-59707)