CVE-2024-3135: LocalAI cross-site request forgery vulnerability
6.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.26328%
CWE
Published
4/1/2024
Updated
4/16/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/go-skynet/LocalAI | go | <= 2.7.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing CSRF protections on state-changing API endpoints. While specific function names aren't provided in the advisory, the core issue exists in HTTP handlers that process
: 1) POST requests, 2) with simple content-types, 3) for resource-intensive operations (explicitly mentioned: image generation and file uploads
). These characteristics align with typical API handler functions in Go web applications. The high confidence comes from the direct match between described attack vectors (malicious form submissions exhausting resources) and the required handler functionality to implement those API endpoints.