{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "2.15.0"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "f69de3be0d274a676f1d1cd302dc4699f1b5aaf0"
            },
            {
              "fixed": "4e1463fec291612a59a16db60b3fd12d4c49d64b"
            }
          ],
          "repo": "https://github.com/mudler/localai",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2024-5616",
  "modified": "2026-03-13T21:50:40.238235879Z",
  "published": "2024-07-06T09:15:02.050Z",
  "references": [
    {
      "type": "FIX",
      "url": "https://github.com/mudler/localai/commit/4e1463fec291612a59a16db60b3fd12d4c49d64b"
    },
    {
      "type": "EVIDENCE",
      "url": "https://huntr.com/bounties/fd753fb6-ba04-4dd8-abef-918fb97120af"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L",
      "type": "CVSS_V3"
    }
  ]
}