# CVE-2024-6095: SSRF and Partial LFI in /models/apply Endpoint in mudler/localai

- Severity: Medium 5.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.65%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-07-06T17:48:46.735Z
- Modified: 2026-06-17T08:17:16.520Z
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- mudler mudler/localai: from unspecified before 2.17
- mudler localai: from 2.15.0 before 2.17.0; before 2.17.0

## Every score

- @huntr_ai: CVSS:3.0 5.8 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N`

## References

- <https://huntr.com/bounties/4799262d-72dc-43c8-bc99-81d0dce996dc> (exploit, third-party-advisory)
- <https://github.com/mudler/localai/commit/2fc6fe806b903ac0a70218b21b5c84443a1b0866> (patch)

## Sources

- CVE List: [CVE-2024-6095](https://www.cve.org/CVERecord?id=CVE-2024-6095), CVE Terms of Use, modified 2024-08-01
- NVD: [CVE-2024-6095](https://nvd.nist.gov/vuln/detail/CVE-2024-6095), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-6095 · Whole record: https://cve.day/CVE-2024-6095.json · Rebuilt by cve.day 2026-11-25T22:58:42.543Z
