Advisory

GHSA-8c5q-hx4g-qq23

Also known as: CVE-2026-59707, GO-2026-6645

Summary

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

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-07-07 21:31 UTC
Modified
2026-10-07 17:55 UTC

Affected packages and fixes

github.com/mudler/LocalAI

Go · All systems

Affected

  • introduced 0, fixed 1.40.1-0.20260703213242-2cbb3c96b34d (semver)

Fixed versions

1.40.1-0.20260703213242-2cbb3c96b34d

Fix

  • Fixed version 1.40.1-0.20260703213242-2cbb3c96b34d
    go get github.com/mudler/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences