Skip to main content
← All vulnerabilities
CVE-2026-59707GO-2026-6645GHSA-8C5Q-HX4G-QQ23

LocalAI - Server-Side Request Forgery via POST /models/apply

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.40.1-0.20260703213242-2cbb3c96b34d
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • LocalAI LocalAI

    through v4.3.1

  • github.com/mudler/LocalAIGo

    fixed in 1.40.1-0.20260703213242-2cbb3c96b34d

References 4

GitHub · mudler/LocalAI

vulncheck.com