{"id":"CVE-2024-3135","aliases":["CVE-2024-3135","GHSA-jhvf-7c85-3c9g","GO-2024-2705"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Request Forgery (CSRF) Vulnerability in mudler/localai","summary":"A Cross-Site Request Forgery (CSRF) vulnerability exists in the mudler/localai application, allowing attackers to craft malicious webpages that, when visited by a victim, perform unauthorized actions on the victim's local LocalAI instance without their consent. This vulnerability enables attackers to exhaust system resources, consume credits, and fill disk space by making numerous resource-intensive API calls, such as generating images or uploading files. The vulnerability stems from the application's acceptance of simple request content-types without requiring CSRF tokens or implementing other CSRF mitigation measures. Successful exploitation does not require network access to the vulnerable LocalAI environment.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A Cross-Site Request Forgery (CSRF) vulnerability exists in the mudler/localai application, allowing attackers to craft malicious webpages that, when visited by a victim, perform unauthorized actions on the victim's local LocalAI instance without their consent. This vulnerability enables attackers to exhaust system resources, consume credits, and fill disk space by making numerous resource-intensive API calls, such as generating images or uploading files. The vulnerability stems from the application's acceptance of simple request content-types without requiring CSRF tokens or implementing other CSRF mitigation measures. Successful exploitation does not require network access to the vulnerable LocalAI environment.","source":"cvelist"},{"lang":"en","text":"LocalAI cross-site request forgery vulnerability in github.com/go-skynet/LocalAI","format":"markdown","source":"go"},{"lang":"es","text":"El servidor web carecía de tokens CSRF, lo que permitía a un atacante alojar JavaScript malicioso en un host que, cuando lo visitaba un usuario de LocalAI, podía permitirle al atacante llenar espacio en el disco para denegar el servicio o abusar de los créditos.","source":"nvd"}],"published":"2024-04-01T18:45:07.253Z","modified":"2026-06-17T07:43:22.680Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-352"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"mudler","product":"mudler/localai","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"*","status":"affected"}],"vendor":"mudler","product":"localai","cpe":"cpe:2.3:a:mudler:localai:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"2.7.0"}],"ecosystem":"Go","package":"github.com/go-skynet/LocalAI","purl":"pkg:golang/github.com/go-skynet/LocalAI","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/go-skynet/LocalAI","purl":"pkg:golang/github.com/go-skynet/LocalAI","source":"go"},{"ranges":[{"status":"affected","fixed":"2.17.0"}],"vendor":"mudler","product":"localai","cpe":"cpe:2.3:a:mudler:localai:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://huntr.com/bounties/7afdc4d3-4b68-45ea-96d0-cf9ed3712ae8","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3135","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/mudler/LocalAI","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-jhvf-7c85-3c9g","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-07-17T15:41:37.242Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-3135","url":"https://www.cve.org/CVERecord?id=CVE-2024-3135","licence":"CVE Terms of Use","modified":"2024-08-01T19:32:42.865Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jhvf-7c85-3c9g","url":"https://github.com/advisories/GHSA-jhvf-7c85-3c9g","licence":"CC-BY-4.0","modified":"2024-06-05T16:43:15.641Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2705","url":"https://pkg.go.dev/vuln/GO-2024-2705","licence":"CC-BY-4.0","modified":"2026-03-03T04:55:00.687Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-3135","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3135","licence":"Public domain","modified":"2026-06-17T07:43:22.680Z"}],"updatedAt":"2026-11-25T22:58:38.298Z","epss":{"score":0.00314,"percentile":0.26276,"date":"2026-12-01T12:00:22.000Z"}}