INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2024-48057

LocalAI Cross-site Scripting vulnerability

CVE-2024-48057 ยท 2024-11-05 low

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Cross-site scripting
Affected
github.com/mudler/LocalAI (Go)
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
0.2% chance of exploitation in 30 days

How it works, in short

Crafted parameters sent to the delete model API store a script that runs in the browser of users who open the homepage. (Our summary, written by a model. The source text is below.)

Details

localai <=2.20.1 is vulnerable to Cross Site Scripting (XSS). When calling the delete model API and passing inappropriate parameters, it can cause a one-time storage XSS, which will trigger the payload when a user accesses the homepage.

References

Source: GitHub Advisory Database, used under CC BY 4.0.