Vulnerability · Published Oct 29, 2024 · Assigned by @huntr_ai

CVE-2024-6581Remote Code Execution due to Stored XSS in parisneo/lollms

Medium 6.5

In plain English

A medium-severity cross-site scripting in parisneo/lollms from parisneo. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities).

Severity (CVSS 3.0)6.5Medium
Exploit odds (30 days)0.7%top 48.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIlollmsno fix listedGHSA-cm59-8rmv-f2cj
PyPIlollmsno fix listedPYSEC-2024-116

Affected products (as reported)

VendorProductVersions
parisneo parisneo/lollms unspecified – before 9.9

Weakness: CWE-79 · Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L

References