{"id":"CVE-2024-48057","published":"2024-11-04T00:00:00Z","modified":"2024-11-05T17:28:51Z","title":"localai <=2.20.1 is vulnerable to Cross Site Scripting (XSS)","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00235,"percentile":0.14681,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://rumbling-slice-eb0.notion.site/LocalAI-deleted-model-with-storage-XSS-CSRF-vulnerability-in-mudler-localai-101e3cda9e8c80e0ac12fe418d5dd982?pvs=4","tags":[]},{"url":"https://gist.github.com/AfterSnows/1bd7ee5a3a42dbb5f5ff67f7f9c8ccec","tags":[]}],"priority":{"score":7.2,"factors":[{"name":"EPSS percentile","points":2.94},{"name":"CVSS severity","points":4.27}]},"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-11-05T17:27:06.367104Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/mudler/LocalAI","vulnerableRanges":["<=2.20.1","all versions"],"patched":[],"from":["GHSA-ghx4-cgxw-7h9p","GO-2024-3253"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-3254","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mudler-localai-cve-2024-5616","parents":[{"from":"CVE-2024-6868","to":"CVE-2024-48057","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["core/http/elements/gallery.go","core/http/routes/ui.go"],"commits":["https://github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515","https://github.com/mudler/localai/commit/a181dd0ebc5d3092fc50f61674d552604fe8ef9c"],"basis":"rarely changed file"}]},{"from":"CVE-2024-7010","to":"CVE-2024-48057","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["core/http/middleware/auth.go","core/http/routes/ui.go"],"commits":["https://github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515","https://github.com/mudler/localai/commit/db1159b6511e8fa09e594f9db0fec6ab4e142468"],"basis":"shared function","functions":["RegisterUIRoutes"]}]}]}}