{"id":"CVE-2024-5616","state":"PUBLISHED","title":"CSRF Vulnerability in mudler/LocalAI","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.","publishedAt":"2024-07-06T08:38:02.339Z","updatedAt":"2024-08-01T21:18:06.438Z","severity":{"score":4.3,"label":"Medium","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","source":"@huntr_ai"},"assigner":"@huntr_ai","products":["mudler mudler/localai"],"affected":[{"vendor":"mudler","product":"mudler/localai","versions":[{"version":"unspecified","status":"affected","lessThan":"2.17","versionType":"custom"}]}],"references":["https://huntr.com/bounties/fd753fb6-ba04-4dd8-abef-918fb97120af","https://github.com/mudler/localai/commit/4e1463fec291612a59a16db60b3fd12d4c49d64b"],"weaknesses":["CWE-352"],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/5xxx/CVE-2024-5616.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-5616","state":"PUBLISHED","datePublished":"2024-07-06T08:38:02.339Z","dateUpdated":"2024-08-01T21:18:06.438Z","assignerShortName":"@huntr_ai","assignerOrgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateReserved":"2024-06-04T02:49:35.920Z"},"containers":{"cna":{"title":"CSRF Vulnerability in mudler/LocalAI","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"mudler","product":"mudler/localai","versions":[{"version":"unspecified","status":"affected","lessThan":"2.17","versionType":"custom"}]}],"references":[{"url":"https://huntr.com/bounties/fd753fb6-ba04-4dd8-abef-918fb97120af"},{"url":"https://github.com/mudler/localai/commit/4e1463fec291612a59a16db60b3fd12d4c49d64b"}],"metrics":[{"cvssV3_0":{"version":"3.0","attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","baseScore":4.3,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-352","type":"CWE","lang":"en","description":"CWE-352 Cross-Site Request Forgery (CSRF)"}]}],"providerMetadata":{"shortName":"@huntr_ai","orgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateUpdated":"2024-07-06T08:38:02.339Z"},"source":{"advisory":"fd753fb6-ba04-4dd8-abef-918fb97120af","discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"mudler","product":"localai","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"2.17","versionType":"custom"}],"cpes":["cpe:2.3:a:mudler:localai:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-07-22T17:54:12.569883Z","id":"CVE-2024-5616","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-07-22T17:56:07.120Z"}},{"title":"CVE Program Container","references":[{"url":"https://huntr.com/bounties/fd753fb6-ba04-4dd8-abef-918fb97120af","tags":["x_transferred"]},{"url":"https://github.com/mudler/localai/commit/4e1463fec291612a59a16db60b3fd12d4c49d64b","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-01T21:18:06.438Z"}}]}}}