Skip to content
CriticalVulnerability

GHSA-8c5q-hx4g-qq23: LocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLs

Published
Record updated
View JSON
Affected
  • github.com/mudler/LocalAI < 1.40.1-0.20260703213242-2cbb3c96b34d
Fixed in
1.40.1-0.20260703213242-2cbb3c96b34d
  • released July 3, 2026, 4 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.6%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

LocalAI's unauthenticated POST /models/apply endpoint passes unsanitized gallery URL fields directly to gallery.GetGalleryConfigFromURLWithContext without proper validation. An attacker can force the server to send HTTP GET requests to private and loopback address ranges, with partial response content leaked through error messages.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.