CVE-2024-6095 json
SSRF and Partial LFI in /models/apply Endpoint in mudler/localai
published 2024-07-06 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-47247
- cvss
- 5.8
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known, plus a Nuclei check
Summary
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.
Patch / fix
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
2.65% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template LocalAI - Partial Local File Read nuclei detection template
- huntr.com https://huntr.com/bounties/4799262d-72dc-43c8-bc99-81d0dce996dc referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 5.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N |
| NVD | 3.1 | 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N |
Affected products
- mudler mudler/localai
- mudler localai
Classification
- Weakness
-
- CWE-918 Server-Side Request Forgery
References
-
github.com
/mudler/localai/commit/2fc6fe806b903ac0a70218b21b5c84443a1b0866
patch
-
huntr.com
/bounties/4799262d-72dc-43c8-bc99-81d0dce996dc
exploit, third-party-advisory
Sources
- CVE List CVE-2024-6095
- NVD CVE-2024-6095
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.