CVE-2024-6581 json
Remote Code Execution due to Stored XSS in parisneo/lollms
published 2024-10-29 2 y ago modified 2026-06-17 4 mo ago also GHSA-cm59-8rmv-f2cj , PYSEC-2024-116 , EUVD-2024-0096
- cvss
- 6.5
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.65% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/ad68ecd6-44e2-449b-8e7e-f2b71b1b43c7 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 6.5 | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L |
| NVD | 3.1 | 9.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 3.0 | 6.5 | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L |
| OSV | 3.1 | 9.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | lollms | <=9.5.1 all versions |
no fix listed |
Affected products
- parisneo parisneo/lollms
- parisneo lollms
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/parisneo/lollms/commit/328b960a0de2097e13654ac752253e9541521ddd
web, patch
-
huntr.com
/bounties/ad68ecd6-44e2-449b-8e7e-f2b71b1b43c7
web, exploit, third-party-advisory, evidence
-
nvd.nist.gov
/vuln/detail/CVE-2024-6581
advisory
-
github.com
/parisneo/lollms
package
-
github.com
/pypa/advisory-database/tree/main/vulns/lollms/PYSEC-2024-116.yaml
web
-
github.com
/advisories/GHSA-cm59-8rmv-f2cj
advisory
Sources
- CVE List CVE-2024-6581
- GitHub Advisory GHSA-cm59-8rmv-f2cj
- NVD CVE-2024-6581
- OSV PYSEC-2024-116
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.