{"id":"CVE-2024-3135","aliases":["EUVD-2024-1234","GHSA-jhvf-7c85-3c9g","GO-2024-2705"],"status":"published","title":"Cross-Site Request Forgery (CSRF) Vulnerability in mudler/localai","description":"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.","severity":{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00314,"percentile":0.2466,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-352"],"published":"2024-04-01T18:45:07Z","modified":"2026-10-28T02:31:09Z","affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/go-skynet/LocalAI","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.7.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/go-skynet/LocalAI","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"2.7.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/go-skynet/LocalAI","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}],"products":[{"vendor":"mudler","product":"localai"},{"vendor":"mudler","product":"mudler/localai"}],"references":[{"url":"https://huntr.com/bounties/7afdc4d3-4b68-45ea-96d0-cf9ed3712ae8","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3135","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-jhvf-7c85-3c9g","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3135.json","tags":["advisory"]},{"url":"https://github.com/mudler/LocalAI","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-3135","title":"Cross-Site Request Forgery (CSRF) Vulnerability in mudler/localai","description":"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.","status":"published","published":"2024-04-01T18:45:07.253Z","modified":"2024-08-01T19:32:42.865Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"cna"}],"cwes":["CWE-352"],"updated_at":"2026-11-02T14:34:10.613319Z"}],"euvd":[{"id":"EUVD-2024-1234","description":"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.","status":"published","published":"2024-04-01T18:45:07Z","modified":"2024-08-01T19:32:42Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-03T03:50:39.455816Z"}],"ghsa":[{"id":"GHSA-jhvf-7c85-3c9g","title":"LocalAI cross-site request forgery vulnerability","description":"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.","status":"published","published":"2024-04-01T21:30:46Z","modified":"2024-04-16T15:49:37Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-352"],"updated_at":"2026-11-02T14:37:43.62603Z"}],"nvd":[{"id":"CVE-2024-3135","description":"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.","status":"published","published":"2024-04-01T19:15:46.257Z","modified":"2026-06-17T07:43:22.68Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"secondary"}],"cwes":["CWE-352"],"updated_at":"2026-11-02T14:09:46.373977Z"}],"osv":[{"id":"CVE-2024-3135","title":"Cross-Site Request Forgery (CSRF) Vulnerability in mudler/localai","description":"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.","status":"published","published":"2024-04-01T18:45:07.253Z","modified":"2026-10-28T02:31:09.399150191Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-352"],"updated_at":"2026-11-02T15:44:40.06138Z"},{"id":"GHSA-jhvf-7c85-3c9g","title":"LocalAI cross-site request forgery vulnerability","description":"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.","status":"published","published":"2024-04-01T21:30:46Z","modified":"2024-06-05T16:43:15.641403Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-352"],"updated_at":"2026-11-02T15:46:50.336262Z"},{"id":"GO-2024-2705","title":"LocalAI cross-site request forgery vulnerability in github.com/go-skynet/LocalAI","description":"LocalAI cross-site request forgery vulnerability in github.com/go-skynet/LocalAI","status":"published","published":"2024-06-05T15:10:52Z","modified":"2026-03-03T04:55:00.687949Z","updated_at":"2026-11-02T15:47:01.453823Z"}]}}
