CVE-2024-48057
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.
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
Exploits
News
Social Media
Affected Software
References
CWE Details
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.