CVE-2024-48057 json
LocalAI Cross-site Scripting vulnerability
published 2024-11-04 2 y ago modified 2026-06-17 4 mo ago also GHSA-ghx4-cgxw-7h9p , GO-2024-3253 , EUVD-2024-3254
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 14%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- govulncheck-vulndb SLE Module for Package Hub 15 SP6, SLE Module for Package Hub 15 SP5, openSUSE Leap 15.6 +1 more 0.0.20241112T145010-150000.1.17.1
suse advisories SUSE-SU-2024:4042-1
- govulncheck-vulndb openSUSE Tumbleweed 0.0.20241106T172143-1.1
opensuse advisories openSUSE-SU-2024:14470-1
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.24% chance of exploitation in the next 30 days, higher than 14% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- rumbling-slice-eb0.notion.site https://rumbling-slice-eb0.notion.site/LocalAI-deleted-model-with-storage-XSS-CSRF-vulnerability-in-mudler-localai-101e3cda9e8c80e0ac12fe418d5dd982?pvs=4 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/mudler/LocalAI | <=2.20.1 all versions |
no fix listed |
Affected products
- mudler localai
Classification
References
-
github.com
/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515
web
-
rumbling-slice-eb0.notion.site
/LocalAI-deleted-model-with-storage-XSS-CSRF-vulnerability-in-mudler-localai-101e3cda9e8c80e0ac12fe418d5dd982?
web, exploit, third-party-advisory
-
gist.github.com
/AfterSnows/1bd7ee5a3a42dbb5f5ff67f7f9c8ccec
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-48057
advisory
-
github.com
/advisories/GHSA-ghx4-cgxw-7h9p
advisory
-
github.com
/mudler/LocalAI
package
-
github.com
/mudler/LocalAI/blob/master/core/http/views/index.html#L75
web
Sources
- CVE List CVE-2024-48057
- GitHub Advisory GHSA-ghx4-cgxw-7h9p
- NVD CVE-2024-48057
- OSV GO-2024-3253
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.