Live threats

All CVEs / LocalAI

CVE-2026-59707LocalAI

Critical 9.2 No auth needed

Priority
70
CVSS 4.0
9.2
EPSS
—
Auth required
No
Published
Jul 7, 2026
Updated
Oct 25, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-918
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for LocalAI.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/mudler/LocalAI < 1.40.1-0.20260703213242-2cbb3c96b34d 1.40.1-0.20260703213242-2cbb3c96b34d go get github.com/mudler/LocalAI@v1.40.1-0.20260703213242-2cbb3c96b34d
Go github.com/mudler/LocalAI < 1.40.1-0.20260703213242-2cbb3c96b34d 1.40.1-0.20260703213242-2cbb3c96b34d go get github.com/mudler/LocalAI@v1.40.1-0.20260703213242-2cbb3c96b34d

Per OSV / GitHub Advisories (GHSA-8c5q-hx4g-qq23, GO-2026-6645). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.