Cross-Site Request Forgery (CSRF) Vulnerability in mudler/localai
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Tampering
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- No fix listed
Attack profile from CVSS 3.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-352.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| mudler | mudler/localai | up to latest | — | No fix listed | CNA |
| — | github.com/go-skynet/LocalAI (Go) | up to 2.7.0 | — | No fix listed | GHSA-jhvf-7c85-3c9g |
- mudler/localai Vendormudler Affected up to latest Fixed in — No fix listed CNA
- github.com/go-skynet/LocalAI (Go) Vendor— Affected up to 2.7.0 Fixed in — No fix listed GHSA-jhvf-7c85-3c9g
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2024-3135
- 2026-10-03 Alias added: GHSA-jhvf-7c85-3c9g
References
More mudler Localai vulnerabilities
- TI-2024-04809 Command Injection in mudler/localai CVSS 3.0CRITICAL 9.8
- TI-2024-01889 Command Injection in mudler/localai CVSS 3.0CRITICAL 9.8
- TI-2024-04810 Path Traversal in mudler/localai CVSS 3.1CRITICAL 9.1
- TI-2024-06369 Arbitrary File Write in mudler/LocalAI CVSS 3.1CRITICAL 9.8
- TI-2024-06481 Remote Code Execution in mudler/localai CVSS 3.0HIGH 8.8
- TI-2024-06505 Timing Attack in mudler/localai CVSS 3.1MEDIUM 5.9
Sources
- CVE-2024-3135 · CVE Program
- CVE-2024-3135 · NVD
- FIRST EPSS
- GHSA-jhvf-7c85-3c9g · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences