CVE-2024-6581
criticalpriority · track · 36EPSS 0.007 · 51 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 6.5–9
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
- lollms lord of large language models= 9.9nvdUScpe:2.3:a:lollms:lord_of_large_language_models:*:*:*:*:*:*:*:*
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-cm59-8rmv-f2cjLollms vulnerable to Cross-site Scripting2024-10-29ghsa · osvUS
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.
- PYSEC-2024-1162024-10-29vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (6)
External citations — patches, advisories, analysis.
- https://github.com/parisneo/lollms/commit/328b960a0de2097e13654ac752253e9541521dddcnnvd
- https://huntr.com/bounties/ad68ecd6-44e2-449b-8e7e-f2b71b1b43c7cnnvd
- https://github.com/parisneo/lollms/commit/328b960a0de2097e13654ac752253e9541521dddenisa_euvd
- https://huntr.com/bounties/ad68ecd6-44e2-449b-8e7e-f2b71b1b43c7enisa_euvd
- https://github.com/parisneo/lollms/commit/328b960a0de2097e13654ac752253e9541521dddPatchnvd
- https://huntr.com/bounties/ad68ecd6-44e2-449b-8e7e-f2b71b1b43c7ExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan