# CVE-2024-5616: CSRF Vulnerability in mudler/LocalAI

- Severity: Medium 4.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- 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): 0.34%, higher than 20% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-07-06T08:38:02.339Z
- Modified: 2026-06-17T08:16:17.830Z
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## Description

A Cross-Site Request Forgery (CSRF) vulnerability exists in mudler/LocalAI versions up to and including 2.15.0, which allows attackers to trick victims into deleting installed models. By crafting a malicious HTML page, an attacker can cause the deletion of a model, such as 'gpt-4-vision-preview', without the victim's consent. The vulnerability is due to insufficient CSRF protection mechanisms on the model deletion functionality.

(As written by CVE List.)

## Affected

- mudler mudler/localai: from unspecified before 2.17
- mudler localai: before 2.17; up to 2.15.0

## References

- <https://huntr.com/bounties/fd753fb6-ba04-4dd8-abef-918fb97120af> (exploit, third-party-advisory)
- <https://github.com/mudler/localai/commit/4e1463fec291612a59a16db60b3fd12d4c49d64b> (patch)

## Sources

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

---

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