# CVE-2024-3135: Cross-Site Request Forgery (CSRF) Vulnerability in mudler/localai

- Severity: Medium 6.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-04-01T18:45:07.253Z
- Modified: 2026-06-17T07:43:22.680Z
- Also known as: GHSA-jhvf-7c85-3c9g, GO-2024-2705
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- mudler mudler/localai: from unspecified up to latest
- mudler localai: up to *; before 2.17.0
- github.com/go-skynet/LocalAI (Go): up to 2.7.0; all versions

## Every score

- @huntr_ai: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://huntr.com/bounties/7afdc4d3-4b68-45ea-96d0-cf9ed3712ae8> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-3135> (advisory)
- <https://github.com/mudler/LocalAI> (package)
- <https://github.com/advisories/GHSA-jhvf-7c85-3c9g> (advisory)

## Sources

- CVE List: [CVE-2024-3135](https://www.cve.org/CVERecord?id=CVE-2024-3135), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-jhvf-7c85-3c9g](https://github.com/advisories/GHSA-jhvf-7c85-3c9g), CC-BY-4.0, modified 2024-06-05
- Go Vulnerability Database: [GO-2024-2705](https://pkg.go.dev/vuln/GO-2024-2705), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-3135](https://nvd.nist.gov/vuln/detail/CVE-2024-3135), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-3135 · Whole record: https://cve.day/CVE-2024-3135.json · Rebuilt by cve.day 2026-11-25T22:58:38.298Z
