Skip to main content
Public proof of conceptFix available

CVE-2026-59707

A public proof of concept exists; no exploitation attested.

  • Published2026-07-07
  • Fixed in1.40.1-0.20260703213242-2cbb3c96b34d
  • WeaknessCWE-918

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-07-0721:17CVE publishedNVD

Versions per branch

OSV
mudler/LocalAI
BranchAffectedFixed in
1.40< 1.40.1-0.20260703213242-2cbb3c96b34d1.40.1-0.20260703213242-2cbb3c96b34d

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As VulnCheck, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • LocalAIother versions: not affected
    Affected
    • ≤ v4.3.1no fix statedcustom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-09-24

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • govulncheck-vulndbSUSE:Linux Enterprise Server for SAP applications 16.0all versions · fixed in 0.0.20261105T234957-160000.1.1
  • govulncheck-vulndbSUSE:Linux Enterprise Server 16.0all versions · fixed in 0.0.20261105T234957-160000.1.1
  • govulncheck-vulndbopenSUSE:Leap 16.0all versions · fixed in 0.0.20261105T234957-160000.1.1

Full record on NVD

Fix

  1. Update mudler/LocalAI to 1.40.1-0.20260703213242-2cbb3c96b34d

Detection

read 2026-11-19 10:48 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
CVSS 4.0 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
Published
2026-07-07
Last Modified
2026-10-25
NVD status
Deferred
GitHub Advisory
GHSA-8c5q-hx4g-qq23

Frequently asked questions

What is CVE-2026-59707?

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.

Is CVE-2026-59707 actively exploited?

A proof-of-concept exploit exists for CVE-2026-59707, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2026-59707?

CVE-2026-59707 has a CVSS v3 base score of 8.6 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N.

Running mudler/LocalAI? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record