CVE-2024-6095 SSRF and Partial LFI in /models/apply Endpoint in mudler/localai
An attacker can exploit SSRF and partial LFI in the /models/apply endpoint to access internal servers and read local files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-6095?
CVE-2024-6095 is a medium-severity server-side request forgery vulnerability in mudler/localai, published on 6 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A vulnerability in the /models/apply endpoint of mudler/localai versions 2.15.0 allows for Server-Side Request Forgery (SSRF) and partial Local File Inclusion (LFI). The endpoint supports both http(s):// and file:// schemes, where the latter can lead to LFI. However, the output is limited due to the length of the error message. This vulnerability can be exploited by an attacker with network access to the LocalAI instance, potentially allowing unauthorized access to internal HTTP(s) servers and partial reading of local files. The issue is fixed in version 2.17.
Weakness: CWE-918
Which versions are affected by CVE-2024-6095?
It affects 1 product.
Products include Mudler Localai.
How do I fix CVE-2024-6095?
No fix has been published for CVE-2024-6095 yet. Limit exposure of the affected software until one is available.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2024-6095 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6095 exists.
Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.
Other vulnerabilities in mudler/localai
Sources
Also known as GHSA-fgv5-qx89-qjrh.