CVE-2024-6581

Remote Code Execution due to Stored XSS in parisneo/lollms

Published Oct 29, 2024 CVSS 3.1 · 9.0 Critical EPSS < 1% KEV · Not listed
Description
A vulnerability in the discussion image upload function of the Lollms application, version v9.9, allows for the uploading of SVG files. Due to incomplete filtering in the sanitize_svg function, this can lead to cross-site scripting (XSS) vulnerabilities, which in turn pose a risk of remote code execution. The sanitize_svg function only removes script elements and 'on*' event attributes, but does not account for other potential vectors for XSS within SVG files. This vulnerability can be exploited when authorized users access a malicious URL containing the crafted SVG file.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-0096 A vulnerability in the discussion image upload function of the Lollms application, version v9.9, allows for the uploading of SVG files. Due to incomplete filtering in the sanitize_svg function, this can lead to cross-site scripting (XSS) vulnerabilities, which in turn pose a risk of remote code execution. The sanitize_svg function only removes script elements and 'on*' event attributes, but does not account for other potential vectors for XSS within SVG files. This vulnerability can be exploited when authorized users access a malicious URL containing the crafted SVG file.
Github GHSA Github GHSA GHSA-cm59-8rmv-f2cj Lollms vulnerable to Cross-site Scripting
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00428}

epss

{'score': 0.00449}

Type Values Removed Values Added
First Time appeared Lollms
Lollms lord Of Large Language Models
CPEs cpe:2.3:a:lollms:lord_of_large_language_models:9.9:*:*:*:*:*:*:*
Vendors & Products Lollms
Lollms lord Of Large Language Models
Metrics cvssV3_1

{'score': 9.0, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Parisneo
Parisneo lollms
CPEs cpe:2.3:a:parisneo:lollms:*:*:*:*:*:*:*:*
Vendors & Products Parisneo
Parisneo lollms
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A vulnerability in the discussion image upload function of the Lollms application, version v9.9, allows for the uploading of SVG files. Due to incomplete filtering in the sanitize_svg function, this can lead to cross-site scripting (XSS) vulnerabilities, which in turn pose a risk of remote code execution. The sanitize_svg function only removes script elements and 'on*' event attributes, but does not account for other potential vectors for XSS within SVG files. This vulnerability can be exploited when authorized users access a malicious URL containing the crafted SVG file.
Title Remote Code Execution due to Stored XSS in parisneo/lollms
Weaknesses CWE-79
References
Metrics cvssV3_0

{'score': 6.5, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
@huntr_ai
Published
Updated
Oct 29, 2024, 1:24 PM
Reserved
Jul 8, 2024, 8:40 PM
Status
Analyzed
Published
Oct 29, 2024, 1:15 PM
Modified
Jun 17, 2026, 8:18 AM