Skip to main content

CVE-2026-59707 — Vulnerability in github.com/mudler/LocalAI

CRITICAL

LocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLs

Published July 7, 2026Updated October 7, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.52%). Schedule for your next planned update.

Does your project use an affected github.com/mudler/LocalAI version?

Paste your go.sum to check it for CVE-2026-59707 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

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.

Advisory Timeline

  • First published July 7, 2026 (142 days ago).
  • Last revised October 7, 2026 — 92 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/mudler/LocalAI to 1.40.1-0.20260703213242-2cbb3c96b34d or later
go get github.com/mudler/LocalAI@v1.40.1-0.20260703213242-2cbb3c96b34d

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: Go (1).

PackageFixed In
github.com/mudler/LocalAI Go · Affected: All versions1.40.1-0.20260703213242-2cbb3c96b34d

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-918
    Server-Side Request Forgery (SSRF)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

Frequently Asked Questions

What is CVE-2026-59707?
LocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLs. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 8.6/10).
How do I check if my project is affected by CVE-2026-59707?
CVE-2026-59707 affects github.com/mudler/LocalAI. It has a 1.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-59707 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.6

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
1.52%
EPSS percentile: 74.8

This is an above-median EPSS score — 74.8% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-8c5q-hx4g-qq23
GO-2026-6645

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum