{"id":"CVE-2026-59707","state":"PUBLISHED","title":"LocalAI - Server-Side Request Forgery via POST /models/apply","description":"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.","publishedAt":"2026-07-07T20:37:53.194Z","updatedAt":"2026-09-24T14:18:02.507Z","severity":{"score":9.2,"label":"Critical","version":"4.0","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","source":"VulnCheck"},"assigner":"VulnCheck","products":["LocalAI LocalAI"],"affected":[{"vendor":"LocalAI","product":"LocalAI","packageURL":"pkg:golang/github.com/mudler/LocalAI","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"v4.3.1","versionType":"custom"}]}],"references":["https://github.com/mudler/LocalAI/issues/10665","https://github.com/mudler/LocalAI","https://github.com/mudler/LocalAI/commit/f9b968e19d7cbc556d59dceb2e0e450b828a3fda","https://www.vulncheck.com/advisories/localai-server-side-request-forgery-via-post-models-apply"],"weaknesses":["CWE-918"],"ingestedAt":"2026-10-29T20:12:32.778Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/59xxx/CVE-2026-59707.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-59707","state":"PUBLISHED","datePublished":"2026-07-07T20:37:53.194Z","dateUpdated":"2026-09-24T14:18:02.507Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-07-06T15:31:46.187Z"},"containers":{"cna":{"title":"LocalAI - Server-Side Request Forgery via POST /models/apply","descriptions":[{"lang":"en","value":"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":[{"vendor":"LocalAI","product":"LocalAI","packageURL":"pkg:golang/github.com/mudler/LocalAI","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"v4.3.1","versionType":"custom"}]}],"references":[{"url":"https://github.com/mudler/LocalAI/issues/10665","name":"GitHub Issue","tags":["issue-tracking"]},{"url":"https://github.com/mudler/LocalAI","name":"Product","tags":["product"]},{"url":"https://github.com/mudler/LocalAI/commit/f9b968e19d7cbc556d59dceb2e0e450b828a3fda","tags":["patch"],"name":"Patch Commit"},{"url":"https://www.vulncheck.com/advisories/localai-server-side-request-forgery-via-post-models-apply","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","subConfidentialityImpact":"HIGH","vulnIntegrityImpact":"NONE","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"CRITICAL","baseScore":9.2,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","version":"3.1","baseSeverity":"HIGH","baseScore":8.6,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-918","lang":"en","description":"Server-Side Request Forgery (SSRF)","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-09-24T14:18:02.507Z"},"datePublic":"2026-07-03T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:mudler:localai:*:*:*:*:*:*:*:*","versionEndIncluding":"4.3.1"}]}]}],"credits":[{"lang":"en","value":"George Chen","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/mudler/LocalAI/issues/10665","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-08T16:47:31.794452Z","id":"CVE-2026-59707","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-08T17:10:50.946Z"}}]}}}