Black Friday60% off BLACKFRIDAY2026
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
critical·Product Based Web Vulnerabilities·Updated Nov 9, 2026

CVE-2026-59707 Scanner

CVE-2026-59707 Scanner - Server-Side Request Forgery vulnerability in LocalAI

Est. Time~1 minutes
Scan TypeSingle Scan
Targetsdomain, subdomain, ipv4
CostFree
5
Times Used
continuous scan runs
4.2k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
9.2
CVSScritical
Exploitable remotely over the internet · no authentication required.
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.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
LocalAIby LocalAI
0
Updated Nov 6, 2026View on NVD →
Detail

LocalAI is a versatile platform used primarily within development environments to apply machine learning models efficiently. Often employed by developers and system architects, it aids in experimenting with and deploying AI models across various environments. It is especially useful for quickly setting up and testing models before putting them into production. The software helps in processing various types of data and applying machine learning tasks. With its ability to connect different AI models, LocalAI is integral in environments needing robust AI integration and management. The platform aims to streamline machine learning operations, making it a staple for developers in the AI and tech industry.

A Server-Side Request Forgery (SSRF) is a vulnerability that allows an attacker to trick the server into making requests on their behalf. In the context of LocalAI, SSRF occurs when the server does not validate the `url` field in the POST /models/apply endpoint. This vulnerability is critical as it can potentially expose internal services and sensitive metadata. An attacker can exploit this flaw to access internal networks or services that are not otherwise exposed to external networks. Although the attacker may not gain direct data access, responses from these requests can reveal crucial information. As such, this vulnerability significantly increases the risk of data breaches and unauthorized system access.

In LocalAI versions prior to 4.6.0, the POST /models/apply endpoint's `url` field is vulnerable. This endpoint was susceptible because the gallery `url` field was directly passed to the gallery config fetcher without adequate validation. Consequently, an attacker could specify arbitrary URLs that the server would fetch, including those pointing to internal or otherwise inaccessible resources. The fetch results, particularly error messages, would reflect back, inadvertently disclosing information. This flaw essentially allows the attacker to probe the network, identifying accessible internal endpoints, making it a serious security risk.

If exploited, this SSRF vulnerability could allow attackers to interact with internal network resources by having the server make requests on their behalf. It essentially bypasses firewall protections and internal network isolation. Attackers could, for example, access cloud metadata services, potentially leading to sensitive data exposure such as credentials. Similarly, SSRFs can lead to other attack chains if further vulnerabilities are present at the accessed endpoints. It might also be used for lateral movement within the network, escalating to broader network access and potentially threatening the entire environment.

REFERENCES

Solution Advice
  • Upgrade to LocalAI version 4.6.0 or later to ensure the validation of gallery config URLs is enforced.
  • Implement network segmentation to minimize accessible internal endpoints.
  • Regularly audit server logs for any unusual outbound requests.
  • Configure firewall rules to restrict outbound traffic to trusted IP addresses only.
  • Use application-level filtering and validation to scrutinize all incoming URL-based requests.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

12,000+ scanners. Free to start. No credit card required.