{"id":"CVE-2026-59707","published":"2026-07-07T20:37:53Z","modified":"2026-09-24T14:18:02Z","title":"LocalAI - Server-Side Request Forgery via POST /models/apply","vendor":"LocalAI","product":"LocalAI","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01383,"percentile":0.72854,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/mudler/LocalAI/issues/10665","tags":["issue-tracking"]},{"url":"https://github.com/mudler/LocalAI","tags":["product"]},{"url":"https://github.com/mudler/LocalAI/commit/f9b968e19d7cbc556d59dceb2e0e450b828a3fda","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/localai-server-side-request-forgery-via-post-models-apply","tags":["third-party-advisory"]}],"priority":{"score":25.6,"factors":[{"name":"EPSS percentile","points":14.57},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.02}]},"exploitSources":{"nuclei":[{"id":"CVE-2026-59707","name":"LocalAI < 4.6.0 - Server-Side Request Forgery","severity":"critical","path":"http/cves/2026/CVE-2026-59707.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-59707.yaml"}],"provenance":"source"},"vendorSlug":"localai","affectedVersions":[{"vendor":"LocalAI","product":"LocalAI","versions":["<= v4.3.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-08T16:47:31.794452Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/mudler/LocalAI","vulnerableRanges":["<1.40.1-0.20260703213242-2cbb3c96b34d"],"patched":["1.40.1-0.20260703213242-2cbb3c96b34d"],"from":["GHSA-8c5q-hx4g-qq23","GO-2026-6645"],"provenance":"source"}],"summary":{"text":"LocalAI contains a server-side request forgery flaw in its POST /models/apply endpoint, where unsanitized gallery URL fields are passed directly to the gallery configuration fetch routine without validation. An unauthenticated remote attacker can make the server issue HTTP GET requests to arbitrary internal, private, and loopback addresses, with partial response content leaked back through error messages.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:23:37Z"},"euvd":{"id":"EUVD-2026-42097","exploited":false,"provenance":"source"}}