CSRF Vulnerability in mudler/LocalAI
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-5616
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 20:27 UTC · Revision 1
Source evidence
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.
osv:CVE-2024-5616
Complete source record
{
"id": "73c55283f43061bae6f17c507f1243615c64318d39134e34ddfc750e873c9213",
"url": "https://osv.dev/vulnerability/CVE-2024-5616",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CSRF Vulnerability in mudler/LocalAI",
"summary": "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.",
"evidence": "osv:CVE-2024-5616",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2024-5616",
"aliases": [
"CVE-2024-5616"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mudler/localai",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "4e1463fec291612a59a16db60b3fd12d4c49d64b"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mudler:localai:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.15.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "4e1463fec291612a59a16db60b3fd12d4c49d64b"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v2.16.0",
"v2.15.0",
"v2.14.0",
"v2.13.0",
"v2.12.3",
"v2.12.1",
"v2.12.0",
"v2.11.0",
"v2.10.1",
"v2.10.0",
"v2.9.0",
"v2.8.2",
"v2.8.1",
"v2.8.0",
"v2.7.0",
"v2.6.1",
"v2.6.0",
"v2.5.1",
"v2.5.0",
"v2.4.1",
"v2.4.0",
"v2.3.1",
"v2.3.0",
"v2.2.0",
"v2.1.0",
"v2.0.0",
"v2.0.0_beta",
"v1.40.0",
"v1.30.0",
"v1.25.0",
"v1.24.1",
"v.1.24.0",
"v1.23.2",
"v1.23.1",
"v1.23.0",
"v1.22.0",
"v1.21.0",
"v1.20.1",
"v1.20.0",
"v1.19.2",
"v1.19.1",
"v1.19.0",
"v1.18.0",
"v1.17.1",
"v1.17.0",
"v1.16.0",
"v1.15.0",
"v1.14.2",
"v1.14.1",
"v1.14.0",
"v1.13.0",
"v1.12.0",
"v1.11.1",
"v1.11.0",
"v1.10.1",
"v1.10.0",
"v1.9.1",
"v1.9.0",
"v1.8.1",
"v1.8.0",
"v1.7.1",
"v1.7.0",
"v1.6.3",
"v1.6.2",
"v1.6.1",
"v1.6.0",
"v1.5.1",
"v1.5.0",
"v1.4.0",
"v1.3.2",
"v1.3.1",
"v1.3.0",
"v1.2.0",
"v1.1.0",
"v1.0",
"v0.10.0",
"v0.9.2",
"v0.9.1",
"v0.9",
"v0.8.1",
"v0.8",
"v0.7",
"v0.6",
"v0.5",
"v0.4",
"v0.3",
"v0.2",
"v0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-5616.json"
}
}
],
"modified": "2026-10-28T02:30:31.924045171Z",
"provider": "osv",
"references": [
"https://huntr.com/bounties/fd753fb6-ba04-4dd8-abef-918fb97120af",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5616.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-5616",
"https://github.com/mudler/localai/commit/4e1463fec291612a59a16db60b3fd12d4c49d64b"
],
"provider_metadata": {
"cwe_ids": [
"CWE-352"
],
"cna_assigner": "@huntr_ai",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5616.json"
}
},
"related_cves": [
{
"value": "CVE-2024-5616",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 498942,
"published_at": "2024-07-06T08:38:02.339+00:00"
}