← Back to search

CVE-2026-114493

8.6 HIGHpublic exploit available

Published 2026-10-21 · Updated 2026-10-22

AI risk analysis

Summary
LocalAI versions 4.6.0 through 4.11.0 contain a server-side request forgery (SSRF) vulnerability in the gallery configuration endpoint where only the initial URL is validated; attackers can exploit this via POST /models/apply to make the server fetch internal or cloud metadata endpoints and return their responses as gallery content, leading to exposure of sensitive internal data.
Exploitability
Exploitation is straightforward for remote attackers with network access to the LocalAI instance, requiring only a crafted config URL that redirects to an internal endpoint.
Blast radius
Successful exploitation could expose internal metadata (e.g., cloud instance identity, Kubernetes service accounts, or local service responses), potentially enabling further compromise such as credential theft or lateral movement.
Detection
Defenders should monitor for POST /models/apply requests with config URLs that resolve through HTTP redirects to internal IP ranges (e.g., 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), localhost (127.0.0.0/8, ::1), or metadata endpoints such as 169.254.169.254 or metadata.google.internal; logs showing unusually large or structured responses to such requests may indicate exploitation.
Prioritized remediation
Upgrade to LocalAI v4.12.0 or later, which addresses the SSRF vulnerability by validating the entire redirect chain against an allowlist of safe hosts and blocking redirects to internal or metadata endpoints.
ssrfwebmetadata-exposureredirect-vulnerability

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD description

LocalAI v4.6.0 through v4.11.0 contains a server-side request forgery vulnerability in core/gallery/gallery.go that validates only the initial gallery config URL. Attackers can submit a config URL through POST /models/apply that redirects to internal or cloud metadata addresses, receiving those internal responses as gallery content.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

Weaknesses

CWE-918

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.