Loading...
Skip to main content

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

CRITICAL

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

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

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 (97 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, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: go (1).

PackageEcosystemAffectedFixed In
github.com/mudler/LocalAI
go
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. 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

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

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

Related CVEs

  • CVE-2026-107806
    CRITICAL

    Nginx UI: Authenticated Remote Code Execution via Backup Restore App Config Overwrite

  • CVE-2026-68582
    CRITICAL

    Vikunja: Link-share token reads any tenant's kanban buckets and enumerates usernames/IDs instance-wide (BOLA)

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies