CVE-2026-59707
highpriority · track · 0EPSS 0.005 · 41 %ileEUUSEPSS · scored 2026-10-24
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.7–9.2
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (2)
Products and version ranges known to be affected.
- Go github.com/mudler/LocalAI< 1.40.1-0.20260703213242-2cbb3c96b34dosvUSpkg:golang/github.com/mudler/LocalAI
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-8c5q-hx4g-qq23 LocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLs2026-07-07ghsa · osvUS
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.
- GO-2026-6645LocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLs in github.com/mudler/LocalAI2026-10-07vendor · osvUS
LocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLs in github.com/mudler/LocalAI
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (12)
External citations — patches, advisories, analysis.
- https://github.com/mudler/LocalAIcnnvd
- https://github.com/mudler/LocalAI/commit/f9b968e19d7cbc556d59dceb2e0e450b828a3fdacnnvd
- https://github.com/mudler/LocalAI/issues/10665cnnvd
- https://www.vulncheck.com/advisories/localai-server-side-request-forgery-via-post-models-applycnnvd
- https://github.com/mudler/LocalAIenisa_euvd
- https://github.com/mudler/LocalAI/commit/f9b968e19d7cbc556d59dceb2e0e450b828a3fdaenisa_euvd
- https://github.com/mudler/LocalAI/issues/10665enisa_euvd
- https://www.vulncheck.com/advisories/localai-server-side-request-forgery-via-post-models-applyenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan