---
cve: "CVE-2026-59707"
severity: "CRITICAL"
cvss: 9.2
epss: "0.5%"
vendor: "LocalAI"
kev: false
exploited: false
published: "2026-07-07 21:17:29"
tags: [cve, security, critical]
source: tsecurity.de CVE-Dossier
exported: "2026-10-22T22:31:16+02:00"
---

# CVE-2026-59707

> 9.2 CRITICAL · 🧪 PoC

## Beschreibung

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.

## CNA-Record (Kanon, cvelistV5)

- CNA: **VulnCheck**
- State: PUBLISHED
- Stand: 2026-09-24 14:18:02
- CNA-CVSS: **9.2** (`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`)

## CISA-Anreicherung (vulnrichment/ADP)

- CISA-SSVC (Coordinator, v2.0.3):
  - Exploitation: **poc**
  - Automatable: **yes**
  - Technical Impact: **partial**

## CVSS-Vektor

```
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
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |
| UI Interaktion | Keine | bad |

## Schwachstellen-Klasse

- **CWE-918** — Server-Side Request Forgery (SSRF)
  The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.

## Angriffsmuster (CAPEC)

- [CAPEC-664 — Server Side Request Forgery](https://capec.mitre.org/data/definitions/664.html) _(Severity: High)_

## Patch verfügbar (OSV)

- f9b968e19d7cbc556d59dceb2e0e450b828a3fda (Commit)

## Referenzen

- <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>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/sicherheitsluecken/cve-2026-59707/) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI WID (CSAF)_
