{"cve":"CVE-2024-3135","nvd":{"published":"2024-04-01T19:15:46.257","modified":"2026-06-17T07:43:22.680","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-352"],"references":["https://huntr.com/bounties/7afdc4d3-4b68-45ea-96d0-cf9ed3712ae8","https://huntr.com/bounties/7afdc4d3-4b68-45ea-96d0-cf9ed3712ae8"],"products":["mudler:localai"],"source":"nvd","synced_at":"2026-10-19T21:47:51.568503435+00:00"},"epss":{"cve":"CVE-2024-3135","score":0.00314,"percentile":0.24381,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-jhvf-7c85-3c9g","url":"https://osv.dev/vulnerability/GHSA-jhvf-7c85-3c9g","summary":"LocalAI cross-site request forgery vulnerability","modified":"2024-06-05T16:43:15.641403Z","packages":[{"ecosystem":"Go","name":"github.com/go-skynet/LocalAI","purl":"pkg:golang/github.com/go-skynet/LocalAI","ranges":["<=2.7.0"],"fixed":[]}]},{"id":"GO-2024-2705","url":"https://osv.dev/vulnerability/GO-2024-2705","summary":"LocalAI cross-site request forgery vulnerability in github.com/go-skynet/LocalAI","modified":"2026-03-03T04:55:00.687949Z","packages":[{"ecosystem":"Go","name":"github.com/go-skynet/LocalAI","purl":"pkg:golang/github.com/go-skynet/LocalAI","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}