CVE-2024-48057
MEDIUM 6.1CVSS 3.1LocalAI Cross-site Scripting vulnerability
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.
- Published
- 4 Nov 2024
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-352CWE-79
- Also known as
- GHSA-ghx4-cgxw-7h9pGO-2024-3253
- Sources
- NVDJSONOSV GHSA-ghx4-cgxw-7h9pJSONOSV GO-2024-3253JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS: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 | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mudler | localaicpe:2.3:a:mudler:localai:*:*:*:*:*:*:*:* |
<= 2.20.1 | |
| OSV | Go | github.com/mudler/LocalAI | <= 2.20.1 | |
| OSV | Go | github.com/mudler/LocalAI | all versions |
References
- https://gist.github.com/AfterSnows/1bd7ee5a3a42dbb5f5ff67f7f9c8ccec · Third Party Advisory, WEB
- https://rumbling-slice-eb0.notion.site/LocalAI-deleted-model-with-storage-XSS-CSRF-vulnerability-in-mudler-localai-101e3cda9e8c80e0ac12fe418d5dd982?pvs=4 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-48057 · ADVISORY
- https://github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515 · WEB
- https://github.com/advisories/GHSA-ghx4-cgxw-7h9p · ADVISORY
- https://github.com/mudler/LocalAI · PACKAGE
- https://github.com/mudler/LocalAI/blob/master/core/http/views/index.html#L75 · WEB
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 4 Nov 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Nov 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 5 Nov 2024)