Skip to content
Heist/ feed
Critical

LocalAI - Server-Side Request Forgery via POST /models/apply

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-59707

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-59707

LocalAI

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "LocalAI",
    "product": "LocalAI",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "versionType": "custom",
        "lessThanOrEqual": "v4.3.1"
      }
    ],
    "packageURL": "pkg:golang/github.com/mudler/LocalAI",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-59707

Source reference: /cveMetadata/cveId

Publisher severity

critical

Source reference: /containers/cna/metrics

Event
#891 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement