{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-3135","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-intensi","descriptionLong":"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.","published":"2024-04-01T18:45:07.253Z","updated":"2026-10-28T02:31:09.399150191Z","reserved":"2024-04-01T14:23:45.909Z","status":"Analyzed","rejected":false,"assigner":"@huntr_ai","metric":{"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","rating":"medium","source":"@huntr_ai"},"metrics":[{"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","rating":"medium","source":"@huntr_ai"},{"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","rating":"medium","source":"huntr.dev"},{"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","rating":"medium","source":"OSV"},{"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","rating":"medium","source":"GitHub"}],"rating":"medium","products":["mudler/localai"],"affectedProducts":[{"vendor":"mudler","product":"mudler/localai","defaultStatus":null,"versions":[{"version":"unspecified","status":"affected","versionType":"custom","lessThanOrEqual":"latest"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/go-skynet/LocalAI","purl":"pkg:golang/github.com/go-skynet/LocalAI","ranges":["<=2.7.0","all versions"],"fixed":[],"advisory":"GHSA-jhvf-7c85-3c9g"}],"cwes":["CWE-352"],"aliases":["GHSA-jhvf-7c85-3c9g","GO-2024-2705"],"references":[{"url":"https://huntr.com/bounties/7afdc4d3-4b68-45ea-96d0-cf9ed3712ae8","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3135.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3135","tags":["advisory"]},{"url":"https://github.com/mudler/LocalAI","tags":["package"]},{"url":"https://github.com/advisories/GHSA-jhvf-7c85-3c9g","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00299,"epssPercentile":0.23024,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-3135","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3135","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-3135","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-jhvf-7c85-3c9g","ok":true,"note":"GHSA-jhvf-7c85-3c9g"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-3135","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}