{"schemaVersion":3,"id":"CVE-2024-48057","aliases":["GHSA-ghx4-cgxw-7h9p","GO-2024-3253"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2024-11-04T00:00:00.000Z","modified":"2024-11-05T17:28:51.570Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.1,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Go","score":5.3,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00235,"percentile":0.13553,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":-0.009999999999999983,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00245},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00235,"percentile":0.13553}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00245,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00235,"percentile":0.13553}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_01357CDD4EF04B9A","name":"Exploit Reference (rumbling-slice-eb0.notion.site)","source":"reference","url":"https://rumbling-slice-eb0.notion.site/LocalAI-deleted-model-with-storage-XSS-CSRF-vulnerability-in-mudler-localai-101e3cda9e8c80e0ac12fe418d5dd982?pvs=4","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-352","name":"Cross-Site Request Forgery (CSRF)","description":"The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.","type":"weakness","status":"Stable","abstraction":"Compound","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/352.html"}],"affected":[{"vendor":"github.com/mudler","product":"LocalAI","name":"github.com/mudler/LocalAI","label":"LocalAI","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/mudler/LocalAI","purlType":"golang","versions":[{"text":"≤ 2.20.1","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"≤ 2.20.1 | All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"mudler","product":"localai","name":"localai","label":"localai","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.20.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 2.20.1","eol":null,"hubHref":"/vendor/mudler/localai"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://rumbling-slice-eb0.notion.site/LocalAI-deleted-model-with-storage-XSS-CSRF-vulnerability-in-mudler-localai-101e3cda9e8c80e0ac12fe418d5dd982?pvs=4","label":"rumbling-slice-eb0.notion.site/LocalAI-deleted-model-with-storage-XSS-CSRF-vulnerability-in-mudler-localai-101e3cda9e8c80e0ac12fe418d5dd982","hostname":"rumbling-slice-eb0.notion.site","tags":["WEB","Exploit","Third Party Advisory"]},{"url":"https://gist.github.com/AfterSnows/1bd7ee5a3a42dbb5f5ff67f7f9c8ccec","label":"gist.github.com/AfterSnows/1bd7ee5a3a42dbb5f5ff67f7f9c8ccec","hostname":"gist.github.com","tags":["WEB","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-48057","label":"nvd.nist.gov/vuln/detail/CVE-2024-48057","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515","label":"github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-ghx4-cgxw-7h9p","label":"github.com/advisories/GHSA-ghx4-cgxw-7h9p","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/mudler/LocalAI","label":"github.com/mudler/LocalAI","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/mudler/LocalAI/blob/master/core/http/views/index.html#L75","label":"github.com/mudler/LocalAI/blob/master/core/http/views/index.html","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:14470-1","SUSE-SU-2024:4042-1"],"duplicates":["CVE-2024-9901"],"related":["OPENSUSE-SU-2024:14470-1","SUSE-SU-2024:4042-1"]},"timeline":[{"kind":"published","date":"2024-11-04T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-11-05T17:28:51.570Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":34,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T13:25:02.528Z","stale":false,"partial":false}}