CVE-2026-59707
published critical CVSS 4.0 · 9.2LocalAI - Server-Side Request Forgery via POST /models/apply
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| LocalAI | — | LocalAI0 through v4.3.1 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.2 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.6 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| LocalAI | LocalAI | 0 through v4.3.1 (affected · custom)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-918 Server-Side Request Forgery (SSRF)
References
4- Product https://github.com/mudler/LocalAI
- Patch Commit https://github.com/mudler/LocalAI/commit/f9b968e19d7cbc556d59dceb2e0e450b828a3fda
- GitHub Issue https://github.com/mudler/LocalAI/issues/10665
- https://www.vulncheck.com/advisories/localai-server-side-request-forgery-via-post-models-apply
Provider assertions
2VulnCheck · cna
LocalAI - Server-Side Request Forgery via POST /models/apply
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e490ebdbc53e34ea60ecc1ba142c105053da1844d6bd015c1b27ed1e823b6984
- Ingested
- 30 Sep 2026, 15:26:36 UTC
- Source record
- Official CVE record