CVE-2024-48057
JSON

6.1medium

LocalAI Cross-site Scripting vulnerability

Severity
6.1medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.24% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-ghx4-cgxw-7h9pGO-2024-3253

Description

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
mudler localaiup to 2.20.1CVE List, NVD
github.com/mudler/LocalAI (Go)up to 2.20.1, all versionsGitHub Advisory Database, Go Vulnerability Database

All scores

CISA-ADP6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub6.1low CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHublow CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P

Classification

CWE-79CWE-352

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

Go Vulnerability Database

LocalAI Cross-site Scripting vulnerability in github.com/mudler/LocalAI

NVD (es)

localai &lt;=2.20.1 es vulnerable a ataques de cross site scripting (XSS). Al llamar a la API de eliminación de modelo y pasar parámetros inadecuados, puede provocar un ataque XSS de almacenamiento único, que activará el payload cuando un usuario acceda a la página de inicio.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-48057 changed 2024-11-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-ghx4-cgxw-7h9p changed 2025-03-20CC-BY-4.0
Go Vulnerability DatabaseGO-2024-3253 changed 2026-03-03CC-BY-4.0
NVDCVE-2024-48057 changed 2026-06-17Public domain