CVE Radar Logo
CVERadar
CVE Radar Logo
CVERadar

CVE-2024-48057

Medium Severity
SVRS
30/100

CVSSv3
NA/10

EPSS
0.00018/1

CVE-2024-48057: A Cross-Site Scripting (XSS) vulnerability exists in localai versions 2.20.1 and earlier. This XSS flaw allows attackers to inject malicious scripts into the application when deleting models via the API.

Specifically, improper parameter handling in the delete model API can lead to a stored XSS attack. The malicious payload is triggered when a user navigates to the homepage.

With an SVRS of 30, this vulnerability poses a moderate risk. While not immediately critical, potential for exploitation exists. Successful exploitation could lead to session hijacking, defacement, or unauthorized actions performed on behalf of the user. It is imperative to patch or mitigate this vulnerability promptly to prevent potential security breaches.

In The Wild
2024-11-04

2024-11-05
Eye Icon
SOCRadar
AI Insight

Description:

CVE-2024-48057 is a Cross-Site Scripting (XSS) vulnerability in localai versions 2.20.1 and earlier. It allows attackers to inject malicious scripts into the victim's browser, potentially leading to account takeover, data theft, or malware execution. The SVRS of 38 indicates a moderate risk, requiring attention but not immediate action.

Key Insights:

  • Exploitation: Active exploits have been published, making this vulnerability a high priority for patching.
  • Threat Actors: No specific threat actors or APT groups have been identified as actively exploiting this vulnerability.
  • CISA Warning: The Cybersecurity and Infrastructure Security Agency (CISA) has not issued a warning for this vulnerability.
  • In the Wild: There is no evidence that this vulnerability is being actively exploited in the wild.

Mitigation Strategies:

  • Update Software: Install the latest version of localai (2.20.2 or later) to patch the vulnerability.
  • Input Validation: Implement strict input validation to prevent malicious parameters from being passed to the delete model API.
  • Content Security Policy (CSP): Configure a CSP to restrict the execution of scripts from untrusted sources.
  • XSS Prevention Techniques: Use techniques such as HTML encoding and output filtering to prevent XSS attacks.

Additional Information:

If users have additional queries regarding this incident, they can use the 'Ask to Analyst' feature, contact SOCRadar directly, or open a support ticket for more information if necessary.

Indicators of Compromise

No IOCs found for this CVE

Exploits

No exploits found for this CVE

Enhance Your CVE Management with SOCRadar Vulnerability Intelligence
Get comprehensive CVE details, real-time notifications, and proactive threat management all in one platform.
CVE Details
Access comprehensive CVE information instantly
Real-time Tracking
Subscribe to CVEs and get instant updates
Exploit Analysis
Monitor related APT groups and threats
IOC Tracking
Analyze and track CVE-related IOCs

News

CVE-2024-48057 | localai up to 2.20.1 Model API cross site scripting (Nessus ID 212587)
vuldb.com2024-12-12
CVE-2024-48057 | localai up to 2.20.1 Model API cross site scripting (Nessus ID 212587) | A vulnerability classified as problematic was found in localai up to 2.20.1. Affected by this vulnerability is an unknown functionality of the component Model API Handler. The manipulation leads to cross site scripting. This vulnerability is known as CVE-2024-48057. The attack can be launched remotely. There is
vuldb.com
rss
forum
news
CVE-2024-48057 | localai up to 2.20.1 Model API cross site scripting
vuldb.com2024-11-05
CVE-2024-48057 | localai up to 2.20.1 Model API cross site scripting | A vulnerability classified as problematic was found in localai up to 2.20.1. Affected by this vulnerability is an unknown functionality of the component Model API Handler. The manipulation leads to cross site scripting. This vulnerability is known as CVE-2024-48057. The attack can be launched remotely. There is no exploit available
vuldb.com
rss
forum
news

Social Media

CVE-2024-48057 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 … https://t.co/zpO09MyNxq
0
1
2

Affected Software

No affected software found for this CVE

References

ReferenceLink
[email protected]https://gist.github.com/AfterSnows/1bd7ee5a3a42dbb5f5ff67f7f9c8ccec
[email protected]https://rumbling-slice-eb0.notion.site/LocalAI-deleted-model-with-storage-XSS-CSRF-vulnerability-in-mudler-localai-101e3cda9e8c80e0ac12fe418d5dd982?pvs=4
GITHUBhttps://rumbling-slice-eb0.notion.site/LocalAI-deleted-model-with-storage-XSS-CSRF-vulnerability-in-mudler-localai-101e3cda9e8c80e0ac12fe418d5dd982?pvs=4

CWE Details

CWE IDCWE NameDescription
CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')The software 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.
CWE-352Cross-Site Request Forgery (CSRF)The web application does not, or can not, sufficiently verify whether a well-formed, valid, consistent request was intentionally provided by the user who submitted the request.

CVE Radar

Real-time CVE Intelligence & Vulnerability Management Platform

CVE Radar provides comprehensive vulnerability intelligence by monitoring CVE databases, security advisories, and threat feeds. Get instant updates on new vulnerabilities, exploit details, and mitigation strategies specific to your assets.

Get Free Vulnerability Intelligence AccessAccess real-time CVE monitoring, exploit analysis, and threat intelligence