CyberRota Analysis
AI-GeneratedLocalAI is vulnerable due to an unauthenticated server-side request forgery (SSRF) in the POST /models/apply endpoint, which allows attackers to exploit unsanitized gallery URL fields. This flaw can lead to unauthorized access to internal URLs, potentially exposing sensitive information through error message responses. Organizations using LocalAI should prioritize patching this vulnerability to mitigate the risk of internal network exposure and data leakage.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD 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.